Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?

Step 2: Up and Running

 

Now that the MX150 is powered on, let’s do some initial configuration to get it up and running on the network. The MX150 already has factory-default settings configured right out of the box. These settings load as soon as you power it on. You can easily customize the default configuration with just a few CLI commands. We walk you how to do that here.

The MX150 also supports zero-touch provisioning (ZTP), which autoinstalls a software image and device-specific configuration file when you connect the MX150 and other devices on your network. To use ZTP, you’ll need to configure settings on a DHCP server. For more information, see Zero Touch Provisioning Using DHCP Options.

Connect and Configure

Before you begin connecting and configuring your MX150, verify that your laptop or PC is set to these defaults:

  • Baud Rate—9600

  • Flow Control—None

  • Data—8

  • Parity—None

  • Stop Bits—1

  • DCD State—Disregard

If ZTP is not enabled, the MX150 boots with the preinstalled factory-default configuration. You’ll need to change a few settings through the CLI to get the MX150 up and running on your network. Here’s how:

  1. Connect the RJ-45 console port (labeled CON on the front panel) to a laptop or PC using the supplied RJ-45 cable and RJ-45 to DB-9 adapter. The CLI displays a login prompt.Note

    Alternately, you can use a USB cable to connect to the mini-USB console port on the front panel. To use the mini-USB console port, you’ll need to set it as the active console port. See Configuring the Console Port Type (CLI Procedure).

  2. Log in as root. You don’t need to enter a password. If the software boots before you connect the cable to the console port, you might need to press the Enter key for the prompt to appear.
  3. Start the CLI.
    root% cli
  4. Enter configuration mode.
    root> configure
  5. Add a password to the root administration user account. Enter a plain-text password.
    [edit]
    root# set system root-authentication plain-text-password
    New password: password
    Retype new password: password
  6. Delete the DHCP configuration so that you can configure the IP address and prefix length for the management interface.
    [edit]
    root# delete interfaces fxp0 unit 0 family inet dhcp
  7. Configure the IPv4 or IPv6 IP address and prefix length for the management interface.

    For IPv4:

    [edit]
    root# set interfaces fxp0 unit 0 family inet address address/prefix-length


    fxp0 is the management interface.

    Note

    fxp0 is on the front panel of the MX150.

    For IPv6:

    [edit]
    root# set interface fxp0 family inet6 address address v6_address


    fxp0 is the management interface.

    Note

    fxp0 is on the front panel of the MX150.

  8. Configure the default gateway.
    [edit]
    root# set routing-options static route default next-hop address


  9. Enable SSH service for the root user.
    [edit]
    root# set system services ssh root-login allow
  10. Commit the configuration.
    [edit]
    root# commit