Initially Configuring the M7i Router

 

The router is shipped with the Junos OS preinstalled and ready to be configured when the router is powered on.

The default boot order for the M7i Multiservice Edge Router is different from other Juniper Networks routers, because the default configuration of the Routing Engine on the M7i router does not include an CompactFlash card.

If the Routing Engine does not have an CompactFlash card, two copies of the Junos OS are preinstalled on the router: one on a PC card that can be inserted into the slot in the Routing Engine faceplate, and one on a rotating hard disk in the Routing Engine. When the router boots, it first attempts to access the software image on the PC card. If a PC card is not inserted into the Routing Engine or the attempt otherwise fails, the router tries the hard disk.

If the Routing Engine has an CompactFlash card, three copies of the Junos OS are preinstalled on the router and the boot order is as follows. The router first attempts to access 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, 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:

  • Name the router will use on the network

  • Domain name the router will use

  • IP address and prefix length information for the Ethernet interface

  • IP address of a default router

  • IP address of a DNS server

  • Password for the root user

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 OS configuration guides.

To configure the software:

  1. Verify that the router is powered on as described in Powering On the M7i Router.
  2. Log in as the “root” user. There is no password.
  3. Start the CLI.
  4. Enter configuration mode.
  5. Configure the name of the router. If the name includes spaces, enclose the name in quotation marks (“ ”).
  6. Configure the router’s domain name.
  7. Configure the IP address and prefix length for the router’s Ethernet interface.
  8. Configure the IP address of a DNS server.
  9. Set the root authentication password by entering either a clear-text password, an encrypted password, or an SSH public key string (DSA or RSA).

    or

    or

    or

  10. Optionally, display the configuration to verify that it is correct.
  11. Commit the configuration to activate it on the router.
  12. Optionally, configure additional properties by adding the necessary configuration statements. Then commit the changes to activate them on the router.
  13. When you have finished configuring the router, exit configuration mode.
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, internal 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.