The router is shipped with the Junos OS preinstalled and ready to be configured when the router is powered on. There are three copies of the software: one on a CompactFlash card (if installed) in the Routing Engine, one on the hard disk in the Routing Engine, and one on a PC card that can be inserted into the slot in the Routing Engine faceplate.
When the router boots, it first attempts to start the image on the PC card. If a PC card is not inserted into the Routing Engine or the attempt otherwise fails, the router next tries the CompactFlash card (if installed), and finally the hard disk.
You configure the router by issuing Junos OS command-line interface (CLI) commands, either on a console device attached to the CONSOLE port on the Routing Engine, or over a telnet connection to a network connected to the MGMT port on the Routing Engine.
Gather the following information before configuring the router:
This procedure connects one 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 OS configuration guides.
To configure the software:
Amnesiac <ttyd0>
login: root
[edit]
root# set system login user user-name authentication plain-text-password
New Password: password
Retype new password: password
[edit]
root# set system login user user-name class super-user
![]() | Note: The DNS server does not use the host name to resolve to the correct IP address. This host name is used to display the name of the routing engine in the CLI. For example, this host name shows on the command line prompt when the user is logged on to the CLI: user-name@host-name> |
[edit]
root# set system name-server address
[edit]
root# set system backup-router address
[edit] root# set routing-options static route remote-subnet next-hop destination-IP retain no-readvertise
[edit]
set system services telnet
![]() | Note: To reinstall the Junos OS, you boot the router from the removable media. Do not insert the removable media during normal operations. The router does not operate normally when it is booted from the removable media. |
When the router boots from the storage media (removable media, CompactFlash card, or hard disk) it expands its search in the /config directory of the routing platform for the following files in the following order: juniper.conf (the main configuration file), rescue.conf (the rescue configuration file), and juniper.conf.1 (the first rollback configuration file). When the search finds the first configuration file that can be loaded properly, the file loads and the search ends. If none of the file can be loaded properly, the routing platform does not function properly. If the router boots from an alternate boot device, the Junos OS displays a message indication this when you log in to the router.