Perform the Initial Configuration for the MX10004 Router
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 asmx10016-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:
- 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.
-
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
-
-
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.
login: root
-
Start the CLI.
root@% cli
-
Enter configuration mode.
root> configure
-
Add a password to the root administration user account.
[edit] root@#
set system root-authentication plain-text-password
New password: password Retype new password: passwordNote:Optionally, instead of configuring the root password at the
[edit system]
hierarchy level, you can use a configuration group to strengthen security. -
(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.
[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.
[edit] root@#
set groups group-name system host-name host-name
For Example:
[edit] root@#
set groups re0 system host-name alpha-router0
[edit] root@#
set groups re1 system host-name alpha-router1
-
Configure the default gateway.
[edit] root@#
set routing-options static route default next-hop address
-
Configure the IP address and prefix length for the router management
interface.
[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.
[edit] root@#
set groups group-name interfaces em0 unit 0 family inet address address/prefix-length
For Example:
[edit] root@#
set groups re0 interfaces em0 unit 0 family inet address address/prefix-length
[edit] root@#
set groups re1 interfaces em0 unit 0 family inet address address/prefix-length
-
(Optional) Configure the static routes to remote prefixes with access to the
management port.
[edit] root@#
set routing-options static route remote-prefix next-hop destination-ip retain no-readvertise
For example:
[edit] root@#
set routing-options static route 192.168.0.0/24 next-hop 10.0.3.2 retain no-readvertise
-
(Optional) Enable Telnet service.
[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. -
(Optional) If you used one or more configuration groups, apply the
configuration groups, substituting the appropriate group name.
[edit] root@#
set apply-groups group name
For example:
[edit] root@#
set apply-groups global
global is a group where user log in details, routes, and other information is stored.
[edit] root@#
set apply-groups re0
[edit] root@#
set apply-groups re1
-
Commit the configuration to activate it on the router.
[edit] root@# commit