[Contents] [Prev] [Next] [Index] [Report an Error]


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):
  4. root# cli
    
    root@>
    
    
    
  5. Enter configuration mode:
  6. cli> configure
    
    [edit]
    
    root@#
    
    
    
  7. Configure the name of the machine. If the name includes spaces, enclose the entire name in quotation marks ("  ").
  8. [edit]
    
    root@# set system host-name host-name
    
    
    
  9. Configure the machine's domain name:
  10. [edit]
    
    root@# set system domain-name domain-name
    
    
    
  11. Configure the IP address and prefix length for the router's management Ethernet interface:
  12. [edit]
    
    root@# set interfaces fxp0 unit 0 family inet address address/prefix-length
    
    
    
  13. 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.
  14. [edit]
    
    root@# set system backup-router address
    
    
    
  15. Configure the IP address of a DNS server:
  16. [edit]
    
    root@# set system name-server address
    
    
    
  17. 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 

  1. Optionally, display the configuration statements:
  2. [edit]
    
    root@ show
    
    system {
    
        host-name host-name;
    
        domain-name domain.name;
    
        backup-router address;
    
        root-authentication {
    
            (encrypted-password "password" | public-key);
    
            ssh-rsa "public-key";
    
            ssh-dsa "public-key";
    
        }
    
        name-server {
    
            address;
    
    }
    
    interfaces {
    
        fxp0 {
    
            unit 0 {
    
                family inet {
    
                    address address;
    
                }
    
            }
    
        }
    
    }
    
    
    
  3. Commit the configuration, which activates the configuration on the router:
  4. [edit]
    
    root@# commit
    
    
    
  5. 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:
  6. [edit]
    
    root@host-name# commit
    
    
    
  7. When you have completed configuring the router, exit from configuration mode:
  8. [edit]
    
    root@host-name# exit
    
    root@host-name> 
    
    
    
  9. 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 to 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 disk.

NOTE: 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] [Report an Error]