Step 2: Up and Running
Now that the EX4300 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 EX4300 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.
Juniper Networks Contrail Service Orchestration (CSO). To use CSO, you’ll need an authentication code. See SD-WAN Deployment Overview in the Contrail Service Orchestration (CSO) Deployment Guide.
CLI commands
Plug and Play
The EX4300 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 values for system parameters such as syslog and commit
Configures Ethernet switching on all interfaces
Enables IGMP snooping
Enables the LLDP and RSTP protocols
These settings load as soon as you power on the EX4300 switch. If you want to see what’s in the factory-default configuration file for your EX4300 switch, see EX4300 Switch Default Configuration.
Customize the Basic Configuration Using the CLI
Have these values handy before you begin to customize 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 EX4300 switch to a laptop or desktop PC using the Ethernet cable and the RJ-45 to DB-9 serial port adapter (not provided). If your laptop or desktop PC 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 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 switches running current Junos software are enabled for Zero Touch Provisioning (ZTP). However, when you configure an EX 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-passwordNew password: passwordRetype 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 dhcproot# set interfaces vme unit 0 family inet address address/prefix-length
Note The management port vme (labeled
MGMT
) is on the front panel of the EX4300 switch. - 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
login 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