Connecting and Configuring an EX Series Switch (J-Web Procedure)
You can configure an EX Series switch using either the J-Web interface or the console using the CLI.
Starting in Junos OS Release 22.3R1, J-Web supports EX4400 switches.
Starting in Junos OS Release 22.4R1, J-Web supports EX4100 and EX4100-F switches.
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
Here’s how to configure Junos OS for the first time starting from the factory default configuration:
-
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
-
- Power on the device.
- Connect the Ethernet cable from the Ethernet port on the
PC to the switch.
EX2200, EX3200, or EX4200 switch—Connect the cable to port 0 (ge-0/0/0) on the front panel of the switch.
EX3300, EX4100, and EX4100-F switches—Connect the cable to the port labeled MGMT on the rear panel of the switch.
EX4500 or EX4550 switch—Connect the cable to the port labeled MGMT on the front panel (LCD panel side) of the switch.
EX4650 or EX4400 switches—Connect the cable to the port labeled CON on the rear panel of the switch.
EX6200 switch—Connect the cable to one of the ports labeled MGMT on the Switch Fabric and Routing Engine (SRE) module in slot 4 or 5 in an EX6210 switch.
EX8200 switch—Connect the cable to the port labeled MGMT on the Switch Fabric and Routing Engine (SRE) module in slot SRE0 in an EX8208 switch or on the Routing Engine (RE) module in slot RE0 in an EX8216 switch.
-
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.
-
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 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 login remotely. In
this step, you enable the SSH service and also enable root login through
SSH.
{master:0}[edit] root# set system services ssh root-login allow
-
Configure the Web management access.
{master:0}[edit] root# set system services web-management https system-generated-certificate
-
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.
-
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
-
From the laptop or PC, open a Web browser, type the IP address that you
configured in the Step11 in the address field, and then press
Enter.
The J-Web Login page appears.
-
Enter the root username and password and click Login to
view the Configure Options page.
You can continue to configure the switch.