This procedure connects the switch to the network, but does not enable it to forward
traffic. For complete information about enabling the switch to forward traffic, including
examples, see the Junos OS configuration guides.
To configure the software:
1. Verify that the switch is powered on.
2. Log in as the root user. There is no password.
3. Start the CLI.
root# cli
root@>
4. Enter configuration mode.
cli> configure
[edit]
root@#
5. Set the root authentication password by entering either a clear-text password, an
encrypted password, or an SSH public key string (DSA or RSA).
[edit]
root@# set system root-authentication plain-text-password
New password: password
Retype new password: password
or
[edit]
root@# set system root-authentication encrypted-password encrypted-password
or
[edit]
root@# set system root-authentication ssh-dsa public-key
or
[edit]
root@# set system root-authentication ssh-rsa public-key
6. Configure the name of the switch. If the name includes spaces, enclose the name in
quotation marks (“ ”).
[edit]
root@# set system host-name host-name
7. Create a user account.
[edit]
root@# set system login user user-name authentication plain-text-password
New password: password
Retype new password: password
8. Set the user account class to super-user.
[edit]
root@# set system login user user-name class super-user
9. Configure the switch’s domain name.
199Copyright © 2017, Juniper Networks, Inc.
Chapter 14: Performing Initial Configuration