Step 2: Up and Running
Now that the EX4100 and EX4100-F switch is powered on, let’s do some initial configuration to get the switch up and running on your network. It’s simple to provision and manage the switch and other devices on your network. Choose the configuration tool that’s right for you:
-
Juniper Mist. To use Mist, you’ll need an account on the Mist Cloud Platform. See Overview of Connecting Mist Access Points and Juniper EX Series Switches.
-
CLI commands
Plug and Play
EX4100 and EX4100-F switches already have factory-default settings configured right out of the box to make them plug-and-play devices. The default settings are stored in a configuration file that:
-
Sets Ethernet switching and storm control on all interfaces
-
Sets Power over Ethernet (PoE+/PoE++) on all RJ-45 ports of models that provide PoE+/PoE++
-
Enables the following protocols:
-
Internet Group Management Protocol (IGMP) snooping
-
Rapid Spanning Tree Protocol (RSTP)
-
Link Layer Discovery Protocol (LLDP)
-
Link Layer Discovery Protocol-Media Endpoint Discovery (LLDP-MED)
-
These settings are loaded as soon as you power on the switch. If you want to see what’s in the factory-default configuration file for your switch, see EX4100 and EX4100-F Default Configuration.
Customize the Basic Configuration Using the CLI
Have these values handy before you begin customizing settings for the switch:
-
Hostname
-
Root authentication password
-
Management port IP address
-
Default gateway IP address
-
(Optional) DNS server and SNMP read community
-
Verify that the serial port settings for your laptop or desktop PC are set to the default:
-
Baud rate—9600
-
Flow control—None
-
Data—8
-
Parity—None
-
Stop bits—1
-
DCD state—Disregard
-
-
Connect the console port on the EX4100 and EX4100-F switch to a laptop or desktop PC using the Ethernet cable and the RJ-45 to DB-9 serial port adapter that came in the box with the switch. If your laptop or desktop PC doesn't have a serial port, use a serial-to-USB adapter (not provided).
-
At the Junos OS log in prompt, type root to log in. You don't need to enter a password. If the software boots before you connect your laptop or desktop PC to the console port, you might need to press the Enter key for the prompt to appear.
Note:EX Series switches running current Junos software are enabled for Zero Touch Provisioning (ZTP). However, when you configure an EX Series switch for the very first time, you’ll need to disable ZTP. We show you how to do that here. If you see any ZTP-related messages on the console, just ignore them.
FreeBSD/arm (w) (ttyu0): login: root
-
Start the CLI.
root@:RE:0% cli {master:0} root>
-
Enter configuration mode.
{master:0} root> configure {master:0}[edit] root#
-
Delete the ZTP configuration. Factory default configurations can vary over different releases. You may see a message that the statement does not exist. Don’t worry, it’s safe to proceed.
{master:0}[edit] root# delete chassis auto-image-upgrade
-
Add a password to the root administration user account. Enter a plain-text password, an encrypted password, or an SSH public key string. In this example, we show you how to enter a plain-text password.
{master:0}[edit] root# set system root-authentication plain-text-password New password: password Retype new password: password
-
Activate the current configuration to stop ZTP messages on the console.
{master:0}[edit] root# commit configuration check succeeds commit complete
-
Configure the hostname.
{master:0}[edit] root# set system host-name name
-
Configure the IP address and prefix length for the management interface on the switch. As part of this step, you remove the factory default DHCP setting for the management interface.
{master:0}[edit] root# delete interfaces vme unit 0 family inet dhcp root# set interfaces vme unit 0 family inet address address/prefix-length
-
Configure the default gateway for the management network.
{master:0}[edit] root# set routing-options static route 0/0 next-hop address
-
Configure the SSH service. By default the root user cannot log in remotely. In this step you enable the SSH service and also enable root login via SSH.
{master:0}[edit] root# set system services ssh root-login allow
-
Optional: Configure the IP address of a DNS server.
{master:0}[edit] root# set system name-server address
-
Optional: Configure an SNMP read community.
{master:0}[edit] root# set snmp community community_name
-
Optional: Continue customizing the configuration using the CLI. See the Getting Started Guide for Junos OS for more details.
-
Commit the configuration to activate it on the switch.
{master:0}[edit] root# commit
-
When you’ve finished configuring the switch, exit configuration mode.
{master:0}[edit] root# exit {master:0} root@name