Connecting and Configuring an EX Series Switch (CLI Procedure)
There are two ways to connect and configure an EX Series switch: one method is through the console using the CLI and the other is using the J-Web interface. This topic describes the CLI procedure.
Before you begin connecting and configuring an EX Series switch through the console using the CLI, set the following parameter values in the console server or PC:
- Baud Rate—9600
- Flow Control—None
- Data—8
- Parity—None
- Stop Bits—1
- DCD State—Disregard
To configure the switch from the console:
- Connect the console port to a laptop or PC using
the RJ-45 to DB-9 serial port adapter. The RJ-45 cable and RJ-45 to
DB-9 serial port adapter are supplied with the switch. The console
port in EX3200 and EX4200 switches is located on the rear panel of
the switch. The console port in EX8208 switches is located on the
Switch Fabric and Routing Engine (SRE) module in slot SRE0 on the
switch chassis. The console port in EX8216 switches is located on
the Routing Engine (RE) module in slot RE0 on the switch chassis.

Note: Ensure that the switch is in factory default mode. The ezsetup script will work through the shell prompt only if the switch is in factory default mode. You can transition the switch into factory default mode using the LCD panel. See LCD Panel in an EX8200 Switch or LCD Panel in EX3200 and EX4200 Switches.
- At the JUNOS shell prompt root%, type ezsetup.
- Enter the hostname. This is optional.
- Enter the root password you plan to use for this device. You are prompted to re-enter the root password.
- Enter yes to enable
services like Telnet and SSH. By default, Telnet is not enabled and
SSH is enabled.

Note: When Telnet is enabled, you will not be able to log in to an EX Series switch through Telnet using root credentials. Root login is allowed only for SSH access.
- Next, select one of the switch management options:
- EX3200 or EX4200 switch
- Configure in-band management. In this scenario
you have the following two options:
- Use the default VLAN.
- Create a new VLAN—If you select this option, you are prompted to specify the VLAN name, VLAN ID, management IP address, and default gateway. Select the ports that must be part of this VLAN.
- Configure out-of-band management. Specify the IP address and gateway of the management interface. Use this IP address to connect to the switch.
- Configure in-band management. In this scenario
you have the following two options:
- EX8200 switch—Configure out-of-band management. Specify the IP address and gateway of the management interface. Use this IP address to connect to the switch.
- EX3200 or EX4200 switch
- Specify the SNMP Read Community, Location, and Contact to configure SNMP parameters. These parameters are optional.
- Specify the system date and time. Select the time zone from the list. These options are optional.
The configured parameters are displayed. Enter yes to commit the configuration.
The configuration is committed as the active configuration for the switch. You can now log in with the CLI or the J-Web interface to continue configuring the switch. If you use the J-Web interface to continue configuring the switch, the Web session is redirected to the new management IP address. If the connection cannot be made, the J-Web interface displays instructions for starting a J-Web session.





