To configure the software for the first time, follow these steps:
The JUNOS software boots automatically. The boot process is complete when you see the login: prompt on the console.
Initially, the root user account requires no password. You can see that you are the root user, because the prompt on the routing platform shows the username root@#.
- root@# cli
- root@>
- cli> configure
- [edit]
- root@#
- [edit]
- root@# set system host-name hostname
- [edit]
- root@# set system domain-name domain-name
- [edit]
- root@# set interfaces fxp0 unit 0 family inet
address address/prefix-length
For routing platforms with two Routing Engines, the backup Routing Engine, RE1, uses the backup router as a default gateway after the routing platform boots. This enables you to access the backup Routing Engine. (RE0 is the default master Routing Engine.)
- [edit]
- root@# set system backup-router address
- [edit]
- root@# set system name-server address
Choose one of the following:
- [edit]
- root@# set system root-authentication plain-text-password
- New password: type password
- Retype new password: retype password
- [edit]
- root@# set system root-authentication encrypted-password encrypted-password
- [edit]
- root@# set system root-authentication ssh-rsa key
- [edit]
- root@ show
- system {
- host-name hostname;
- 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 ;
- }
- }
- }
- }
- }
- [edit]
- root@# commit
After committing the configuration, you see the newly configured hostname appear after the username in the prompt—for example, user@host#.
JUNOS software defaults are now set on the routing platform.
If you want to configure additional JUNOS software properties at this time, remain in the CLI configuration mode and add the necessary configuration statements. For more information about how to configure additional properties, see Configuring Software Properties and System Management. You will need to commit your configuration changes to activate them on the routing platform.
- [edit]
- root@ hostname# exit
- root@hostname>
After you have installed the software on the routing platform, 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 device will be out of sync with the configuration on the primary boot device.
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 routing platform’s CompactFlash card, and the /altroot and /altconfig file systems are on the routing platform’s hard disk.
![]() |
Note: After you issue the request system snapshot command, you cannot return to the previous version of the software, because the running copy and the backup copy of the software are identical. |