Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?

header-navigation
keyboard_arrow_up
close
keyboard_arrow_left
list Table of Contents
file_download PDF
{ "lLangCode": "en", "lName": "English", "lCountryCode": "us", "transcode": "en_US" }
English
keyboard_arrow_right

Perform the Initial Configuration for the MX10004 Router

date_range 06-Oct-23

Before you begin configuring the router:

  • Ensure that the Routing Control Board (RCB) has the Junos OS Release 22.3R1 or later operating system installed.

  • If you want to use an RCB that has Junos OS release prior to 22.3R1 or if the show version command displays the router model as mx10016-olive, you must use the USB install method (not the CLI method) to upgrade the Junos OS release on the RCB to 22.3R1 or later.

You must perform the initial configuration of an MX10004 router through the console port using the command-line interface (CLI).

To connect and configure the router from the console:

  1. Connect the console port to a laptop or PC using the RJ-45 cable and RJ-45 to DB-9 adapter. The console (CON) port is located on the Routing and Control Board of the router.
  2. Verify that your laptop or PC has the following default values:
    • Baud Rate—9600

    • Flow Control—None

    • Data—8

    • Parity—None

    • Stop Bits—1

    • DCD State—Disregard

  3. Log in as root. There is no password. If the software boots before you connect to the console port, you might need to press the Enter key for the prompt to appear.
    content_copy zoom_out_map
    login: root
  4. Start the CLI.
    content_copy zoom_out_map
    root@% cli
  5. Enter configuration mode.
    content_copy zoom_out_map
    root> configure
  6. Add a password to the root administration user account.
    content_copy zoom_out_map
    [edit]
    root@# set system root-authentication plain-text-password
    New password: password
    Retype new password: password
    Note:

    Optionally, instead of configuring the root password at the [edit system] hierarchy level, you can use a configuration group to strengthen security.

  7. (Optional) Configure the name of the router. If the name includes spaces, enclose the name in quotation marks (“ ”).

    You can configure the router name at the [edit system] hierarchy level.

    content_copy zoom_out_map
    [edit]
    root@# set system host-name host-name

    If your MX10004 router has two RCBs, it is recommended you use a configuration group. You can use group-name as re0 or re1.

    content_copy zoom_out_map
    [edit]
    root@# set groups group-name system host-name host-name

    For Example:

    content_copy zoom_out_map
    [edit]
    root@# set groups re0 system host-name alpha-router0

    content_copy zoom_out_map
    [edit]
    root@# set groups re1 system host-name alpha-router1
  8. Configure the default gateway.
    content_copy zoom_out_map
    [edit]
    root@# set routing-options static route default next-hop address
  9. Configure the IP address and prefix length for the router management interface.
    content_copy zoom_out_map
    [edit]
    root@# set interfaces em0 unit 0 family inet address address/prefix-length
    Note:

    The management port, em0 (MGMT for RJ-45 connections) is found on the front of the RCBs of the MX10004 router.

    If your MX10004 router has two RCBs, you can configure each RCB with a separate IP address for the management Ethernet interface.

    You can use group-name as re0 or re1.

    content_copy zoom_out_map
    [edit]
    root@# set groups group-name interfaces em0 unit 0 family inet address address/prefix-length

    For Example:

    content_copy zoom_out_map
    [edit]
    root@# set groups re0 interfaces em0 unit 0 family inet address address/prefix-length

    content_copy zoom_out_map
    [edit]
    root@# set groups re1 interfaces em0 unit 0 family inet address address/prefix-length
  10. (Optional) Configure the static routes to remote prefixes with access to the management port.
    content_copy zoom_out_map
    [edit]
    root@# set routing-options static route remote-prefix next-hop destination-ip retain no-readvertise

    For example:

    content_copy zoom_out_map
    [edit]
    root@# set routing-options static route 192.168.0.0/24 next-hop 10.0.3.2 retain no-readvertise
  11. (Optional) Enable Telnet service.
    content_copy zoom_out_map
    [edit]
    root@# set system services telnet 
    Note:

    When Telnet is enabled, you cannot log in to an MX10004 through Telnet using root credentials. Root login is allowed only for SSH access.

  12. (Optional) If you used one or more configuration groups, apply the configuration groups, substituting the appropriate group name.
    content_copy zoom_out_map
    [edit]
    root@# set apply-groups group name

    For example:

    content_copy zoom_out_map
    [edit]
    root@# set apply-groups global

    global is a group where user log in details, routes, and other information is stored.

    content_copy zoom_out_map
    [edit]
    root@# set apply-groups re0

    content_copy zoom_out_map
    [edit]
    root@# set apply-groups re1
  13. Commit the configuration to activate it on the router.
    content_copy zoom_out_map
    [edit] 
    root@# commit
footer-navigation