Step 3: Performing Initial Software Configuration

The LN2600 router is shipped with the Junos OS preinstalled and ready to be configured when the LN2600 router is powered on. When the device boots, it attempts to start the image on the included internal NAND flash drive. You configure the LN2600 router by issuing Junos OS command-line interface (CLI) commands on a console device attached to the RJ-45 console port on the LN2600 router. These procedures connect a router to the network but do not enable it to forward traffic. For complete information about enabling the router to forward traffic, including examples, see the Junos OS configuration guides.

Gather the following information before you configure the device:

To configure the software:

  1. Verify that the device is powered on.
  2. Log in as the root user. There is no password.
    Amnesiac (ttyu0)login: root--- JUNOS 12.1X45-D10 built 2013-07-04 06:04:36 UTC
  3. Start the CLI.
    root@% cli root>
  4. Enter configuration mode.
    root> configureEntering configuration mode[edit]root#
  5. Set the root authentication password by entering a cleartext password, or an encrypted password, or an SSH public key string (DSA or RSA).
    [edit]root# set system root-authentication plain-text-passwordNew password: password Retype new password: password
  6. Configure an administrator account on the device. Here admin is the administrator account name.
    [edit]root# set system login user admin class super-user
  7. Configure the password for the administrator account.
    [edit]root# set system login user admin authentication plain-text-password New password: passwordRetype new password: password[edit]root#
  8. Commit the configuration to activate it on the device.
    root# commitcommit complete
  9. Log out as root.
    [edit]root# exitExiting configuration moderoot> exitroot@% logoutAmnesiac (ttyu0)
  10. Log in as the administrator you configured in step 6.
    login: adminpassword: password- - - JUNOS 12.1X45-D10 built 2013-07-04 06:04:36 UTCadmin> configureEntering configuration mode[edit]admin#
  11. Configure the name of the device. If the name includes spaces, enclose the name in double quotation marks (“ ”).
    configure [edit]admin@# set system host-name hostname
  12. Configure the IP address and prefix length for the device’s Ethernet interface (ge-0/0/0).
    [edit]admin@# set interfaces ge-0/0/0 unit 0 family inet address address/prefix-length
  13. Configure the traffic interfaces (ge-0/0/1–ge-0/0/7).
    [edit]admin@# set interfaces ge-0/0/1 unit 0 family inet address address/prefix-length admin@# set interfaces ge-0/0/5 unit 0 family inet address address/prefix-length
  14. Optionally, configure the default route.
    [edit]admin@# set routing-options static route 0.0.0.0/0 next-hop gateway
  15. Configure basic security zones and bind them to traffic interfaces.
    [edit]admin@# set security zones security-zone HOST interfaces all
  16. Configure basic security policies.
    [edit]admin@# set security forwarding-options family inet6 mode flow-basedadmin@# set security policies default-policy permit-alladmin@# set security zones security-zone HOST host-inbound-traffic system-services any-serviceadmin@# set security zones security-zone HOST host-inbound-traffic protocols all
  17. Check the configuration for validity.
    [edit]admin@# commit checkconfiguration check succeeds
  18. Commit the configuration to activate it on the device.
    [edit]admin@# commitcommit complete
  19. Optionally, display the configuration to verify that it is correct.
    admin@# show
  20. When you have finished configuring the device, exit configuration mode.
    [edit]admin@host# exitadmin@host>