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

Basic Connection and Configuration with the CLI

For CLI access, you connect from your management PC or laptop to the Services Router through the console port. (For information about the CLI, see JUNOS CLI Basics.)

Step 1. Connecting, Logging In, and Starting the CLI

You are prompted for a username and password. The default username is root. Because no password is initially required, press Enter at the password prompt for a first-time login.

To access a Services Router with the CLI:

  1. Turn off power to the management PC or laptop.
  2. Connect one end of the console cable to the serial port adapter, plug the adapter into a serial port on the PC or laptop, and plug the other end of the cable into the console port on the Services Router.
  3. Turn on power to the PC or laptop.
  4. On the PC or laptop, start the terminal emulation program (such as Microsoft Windows HyperTerminal), select the COM port, and configure the following port settings: 9600 (bits per second), 8 (data bits), none (parity), 1 (stop bits), and none (flow control).
  5. Press the POWER button on the router, and verify that the POWER LED turns green.
  6. Wait for the system to boot, and when presented with a login prompt, log in as root, and press Enter at the Password prompt.

    When you have been authenticated through the CLI, you enter the UNIX shell:

    routername (ttyd0)
    

    login: root
    Password:
    JUNOS 8.5R1 20070628.0 built 08:11:01  UTC
    root@%
    
  7. At the % prompt, type the cli command and press Enter. The prompt changes to an angle bracket (>) when you enter CLI operational mode.
    root@% cli
    root>

For complete instructions, see the JUNOS Software with Enhanced Services Hardware Guide.

Step 2. Configuring Basic Settings with the CLI

In CLI configuration mode, you use the set command to enable features, and the delete command to disable them. The commands you enter do not update the active configuration on the router until you use the commit command.

To configure basic settings with the CLI:

  1. From the CLI, enter configuration mode:
  2. Set the IP addresses of the built-in Ethernet ports. For example:

    The unit number is the logical interface number. IP addresses are configured on the logical interface. Setting the protocol family to inet specifies the routing table of IPv4 addresses.

  3. Set a default route (default gateway) for IPv4 packets. For example:
  4. Configure one or more static routes:
  5. Set the hostname. For example:
  6. Save your configuration settings and activate them on the Services Router:

    For complete instructions, see the JUNOS Software Interfaces and Routing Configuration Guide.

Step 3. Installing JUNOS Software with Enhanced Services

For information explaining how to install JUNOS software with enhanced services if your Services Router is running the JUNOS software, see the JUNOS Software with Enhanced Services Migration Guide. For information explaining how to upgrade the software if you have already installed JUNOS software with enhanced services, see the JUNOS Software Administration Guide.

Step 4. Adding Licenses with the CLI

If you purchased one or more licenses, you received an envelope with instructions for obtaining license keys from the Web. To enable each license on the router, you must add the license key. You can add one or more license keys from the CLI.

To add a license key and enable a license:

  1. Follow the instructions in your license envelope to generate the license key from the Web site.
  2. Copy the license key onto the router with the CLI:
    1. Type the following command, and press Enter:
        root> request system license add terminal
    2. When prompted, copy and paste the license key from the Web site at the command line, separating multiple license keys with a blank line.
    3. To exit license key entry, press Ctrl+D.

For complete instructions, see the JUNOS Software Administration Guide.


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