Start the CLI using console.
root# cli
root@>
Enter configuration mode.
root@>configure
[edit]
root@#
Set the root authentication password by entering a cleartext password, an encrypted password.
[edit]
root@# set system root-authentication plain-text-password
New password: password
Retype new password: password
Configure an administrator account on the device.
[edit]
root@# set system login user admin class super-user authentication plain-text-password
Commit the configuration to activate it on the device.
[edit]
root@# commit
Log in as the administrative user you configured.
Configure the name of the device. If the name includes spaces, enclose the name in quotation marks (“ ”).
admin@>configure
[edit]
admin@# set system host-name TheSwitch
Configure the traffic interface.
[edit]
admin@TheSwitch# set interfaces ge-0/0/1 unit 0 family inet address address/prefix-length
Configure the default route.
[edit]
admin@TheSwitch# set routing-options static route 0.0.0.0/0 next-hop gateway
Check the configuration for validity.
[edit]
admin@TheSwitch# commit check
configuration check succeeds
Commit the configuration to activate it on the device.
[edit]
admin@TheSwitch# commit
commit complete