root@% cli
Set a Root Password and an Optional Hostname
1. 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
2. (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
3. (Optional) Create a user account.
[edit]
root# set system login user user-name authentication plain-text-password
New password: password
Retype new password: password
4. (Optional) Set the user account class to super-user.
[edit]
root# set system login user user-name class super-user
Configure the Default Gateway and Ethernet Interface
1. Configure the default gateway.
[edit]
root@# set system management-instance
root@# set routing-instances mgmt_junos routing-options static route 0.0.0.0/0 next-hop default-gateway-ip-address
2. Configure the IP address and prefix length for the router management interface.
[edit]
root@# set interfaces re0:mgmt-0 unit 0 family inet address ip-address/prefix-length
9