[Contents] [Prev] [Next] [Index]


Configure the Software Initially

You can configure the router from a system console connected to the router's console port or by using Telnet to access the router remotely.

Before you configure the software for the first time, you need the following information:

To configure the software for the first time, follow these steps:

  1. Power on the router. The JUNOS software boots automatically.
  2. Log in as the user "root." There is no password.
  3. Start the command-line interface (CLI):
     root# cli
     root@>
     
    
  4. Enter configuration mode:
     cli> configure
     [edit]
     root@#
     
    
  5. Configure the name of the machine. If the name includes spaces, enclose the entire name in quotation marks (" ").
     [edit]
     root@# set system host-name host-name
     
    
  6. Configure the machine's domain name:
     [edit]
     root@# set system domain-name domain-name
     
    
  7. Configure the IP address and prefix length for the router's management Ethernet interface:
     [edit]
     root@# set interfaces fxp0 unit 0 family inet address address/prefix-length
     
    
  8. Configure the IP address of a default router. This system is called the backup router because it is used only while the routing protocol process is not running.
     [edit]
     root@# set system backup-router address
     
    
  9. Configure the IP address of a DNS server:
     [edit]
     root@# set system name-server address
     
    
  10. Set the root password, entering either a clear-text password that the system will encrypt, a password that is already encrypted, or an SSH public key string.
    To enter a clear-text password, use the following command to set the root password:
     [edit]
     root@# set system root-authentication plain-text-password 
     New password: type password
     Retype new password: retype password
     
    
    To enter a password that is already encrypted, use the following command to set the root password:
     [edit]
     root@# set system root-authentication encrypted-password encrypted-password 
     
    
    To enter an SSH public string, use the following command to set the root password:
     [edit]
     root@# set system root-authentication ssh-rsa key 
     
    
  11. Optionally, display the configuration statements:
     [edit]
     root@ show
     system {
     	 host-name host-name;
     	 domain-name domain.name;
     	 backup-router address;
     	 name-server {
     	 	 address;
     }
     interfaces {
     	 fxp0 {
     	 	 unit 0 {
     	 	 	 family inet {
     	 	 	 	 address address;
     	 	 	 }
     	 	 }
     	 }
     }
     
    
  12. Commit the configuration, which activates the configuration on the router:
     [edit]
     root@# commit
     
    
  13. If you want to configure additional properties at this time, remain in configuration mode and add the necessary configuration statements. Then commit the changes to activate them on the router:
     [edit]
     root@host-name# commit
     
    
  14. When you have completed configuring the router, exit from configuration mode:
     [edit]
     root@host-name# exit
     root@host-name> 
    
  15. After you have installed the software on the router, committed the configuration, and are satisfied that the new configuration is successfully running, you should issue the request system snapshot command to back up the new software onto the /altconfig file system. If you do not issue the request system snapshot command, the configuration on the alternate boot drive will be out of sync with the configuration on the primary boot drive.
    The request system snapshot command causes the root file system to be backed up to /altroot, and /config to be backed up to /altconfig. The root and /config file systems are on the router's flash drive and the /altroot and /altconfig file systems are on the router's hard drive.

     


    After you issue this command, you cannot return to the previous version of the software, because the running and backup copies of the software are identical.

     



[Contents] [Prev] [Next] [Index]