Step 2: Up and Running
Now that the QFX5130-32CD is powered on, let’s do some initial configuration to get it up and running on the network. It’s simple to provision and manage the QFX5130 using the CLI.
Plug and Play
The QFX5130-32CD switch ships with factory-default settings that enable plug-and-play operation. The default settings enable the Link Layer Discovery Protocol (LLDP). These settings load as soon as you power on the QFX5130-32CD switch.
Customize the Basic Configuration
You can easily customize the factory-default configuration using CLI commands. Initially, you must make changes through the console port. After you configure the management port, you can access the device using SSH to make additional configuration changes. You can revert to the factory-default configuration whenever you want.
Have the following information ready before you begin to configure custom settings for the switch:
Root authentication password
Management port IP address
Default gateway IP address
(Optional) SNMP read community, location, and contact information
- Verify that your laptop or desktop PC has these default
serial port settings:
- Connect the console port on the QFX5130-32CD to a laptop
or desktop PC using the supplied RJ-45 cable and RJ-45 to DB-9 adapter.
The console (
CON) port is located on the upper right corner of the port panel.
If your laptop or desktop doesn't have a serial port, use a serial-to-USB adapter (not provided).
- At the Junos OS login prompt, type root to log in. You don't need to enter a password. If the software booted
before you connected the laptop or desktop 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 for the root administration user account.
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 (“ ”).
root@# set system host-name host-name
- Configure the IP address and prefix length for the management
port on the switch. On the QFX5130-32CD, the management port
re0:mgmt-0is the lower RJ-45 port on the right side of the port panel and is labeled
Although the CLI permits you to configure two management Ethernet interfaces within the same subnet, only one interface is usable and supported at any point of time.
root@# set interfaces re0:mgmt-0 unit 0 family inet address address/prefix-length
- Create a routing instance.
root@# edit routing-instances mgmt_junos
root@# set routing-instances mgmt_junos routing-options static route 0.0.0.0/0 next-hop 10.102.70.254
- Configure the static routes to remote prefixes.
root@# set routing-options static route remote-prefix next-hop destination-ip
- Enable the management instance.
root@# set system management-instance
- Enable Telnet service if needed.
root@# set system services telnet
When Telnet is enabled, you cannot log in to the QFX5130-32CD through Telnet using root credentials. Root login is allowed only for SSH access.
- Enable SSH service.
root@# set system services ssh
- To allow users to log in to the switch as root through
SSH, include the root-login statement.
[edit system services ssh]
root@# root-login (allow | deny | deny-password)
By default, users are not allowed to log in to the switch as root through SSH.
- Commit the configuration. Your changes become the active
configuration for the switch.