To connect and configure the switch from the
console:
-
Connect the console port to a laptop or PC using an RJ-45 cable and RJ-45
to DB-9 adapter (not provided). The console (CON)
port is located on the management panel of the switch.
-
Log in as root. There is no password. If the
software booted before you connected to the console port, you might need to
press the Enter key for the prompt to appear.
-
Start the CLI.
-
Enter configuration mode.
-
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
-
(Optional) 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
-
Configure the default gateway.
[edit]
root@# set routing-options static route default next-hop address
-
Configure the IP address and prefix length for the switch management
interface.
[edit]
root@# set interfaces em0 unit 0 family inet address address/prefix-length
Note:
The RJ-45 management port, em0, and SFP management port, em1, are
found on the management panel of the QFX10002. They are both labeled
MGMT.
-
(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
-
Enable Telnet service.
[edit]
root@# set system services telnet
-
Commit the configuration to activate it on the switch.