[
Contents]
[
Prev]
[
Next]
[
Report an Error]
Step 8: Perform Initial Software Configuration
This procedure connects the router to the network but does not enable
it to forward traffic. For complete information about enabling the router
to forward traffic, including examples, see the JUNOS Internet software configuration
guides.
To configure the software, follow this procedure:
- Verify that the router is powered on as described
in 7: Power On the Router.
- Log in as the “root” user. There is no password.
- Start the CLI.
- Enter configuration mode.
- cli> configure
- [edit]
- root@#
- Configure the
name of the router. If the name includes spaces, enclose the name in
quotation marks (“ ”).
- [edit]
- root@# set system host-name host-name
- Configure the router's domain name.
- [edit]
- root@# set system domain-name domain-name
- Configure the IP address and prefix length for
the router's Ethernet interface.
- [edit]
- root@# set interfaces fxp0 unit 0 family inet address address/prefix-length
- Configure the IP address of a backup router,
which is used only while the routing protocol is not running.
- [edit]
- root@# set system backup-router address
- Configure the IP address of a DNS server.
- [edit]
- root@# set system name-server address
- Set the root authentication password by entering
either a clear-text password, an encrypted password, or an SSH public key
string (DSA or RSA).
- [edit]
- root@# set system root-authentication plain-text-password
- New password: password
- Retype new password: password
or
- [edit]
- root@# set system root-authentication encrypted-password encrypted-password
or
- [edit]
- root@# set system root-authentication ssh-dsa public-key
or
- [edit]
- root@# set system root-authentication ssh-rsa public-key
- Optionally, display the configuration to verify
that it is correct.
- [edit]
- root@# show
-
- system {
- host-name host-name;
- domain-name domain-name;
- backup-router address;
-
- root-authentication {
-
authentication-method (password | public-key);
- }
-
- name-server {
-
address;
- }
- }
-
- interfaces {
-
- fxp0 {
-
- unit 0 {
-
- family inet {
- address address/prefix-length;
- }
- }
- }
- }
- Commit the configuration
to activate it on the router.
- Optionally,
configure additional properties by adding the necessary configuration statements.
Then commit the changes to activate them on the router.
- When you have finished configuring the router,
exit configuration mode.
- [edit]
- root@host# exit
- root@host>
[
Contents]
[
Prev]
[
Next]
[
Report an Error]