4. Enter configuration mode.
root> configure
5. Add a password to the root administration user account.
[edit]
root@# set system root-authentication plain-text-password
New password: password
Retype new password: password
6. (Optional) Configure the name of the router. If the name includes spaces, enclose the name in quotation marks (“ ”).
[edit]
root@# set system host-name host-name
7. Configure the default gateway.
•
For standard Junos OS systems:
[edit]
root@# set routing-options static route default next-hop address
•
For Junos OS Evolved system:
[edit]
root@# set system management-instance
root@# set routing-instances mgmt_junos routing-optins static route prefix/prefix-length next-hop
default-gateway-ip-address
8. Configure the IP address and prefix length for the router management interface.
•
For standard Junos OS systems:
[edit]
root@# set interfaces em0 unit 0 family inet address ip-address/prefix-length
•
For Junos OS Evolved systems:
[edit]
root@# set interfaces re0:mgmt-0 unit 0 family inet address ip-address/prefix-length
CAUTION: Although the CLI permits you to configure two management Ethernet interfaces
within the same subnet, only one interface is usable and supported.
43