TechLibrary

Navigation Back up to About Overview

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 by using the command-line interface (CLI) and the other is by using the J-Web interface.

Note: EX2200-24T-4G-DC switches do not support switch connection and configuration through the J-Web interface.

This topic describes the CLI procedure.

Note: To run the ezsetup script, the switch must have the factory default configuration as the active configuration. If you have configured anything on the switch and want to run ezsetup, revert to the factory default configuration. See Reverting to the Default Factory Configuration for the EX Series Switch.

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 connect and configure the switch from the console by using the CLI:

  1. Connect the console port to a laptop or PC by 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.

    For the location of the console port on different EX Series switches:

    Note: In EX2200-C, EX4300, and EX4550 switches, you can also use the Mini-USB Type-B console port to connect to a laptop or PC.

  2. At the Junos OS shell prompt root%, type ezsetup.
  3. Enter the hostname. This is optional.
  4. Enter the root password you plan to use for this device. You are prompted to re-enter the root password.
  5. 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 by using root credentials. Root login is allowed only for SSH access.

  6. Use the Management Options page to select the management scenario:

    Note: On EX4500, EX6200, and EX8200 switches, only the out-of-band management option is available.

    • Configure in-band management. In in-band management, you configure a network interface or an uplink module (expansion module) interface as the management interface and connect it to the management device.
      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. In out-of-band management, you use a dedicated management channel (MGMT port) to connect to the management device. Specify the IP address and gateway of the management interface. Use this IP address to connect to the switch.
  7. Specify the SNMP read community, location, and contact to configure SNMP parameters. These parameters are optional.
  8. Specify the system date and time. Select the time zone from the list. These options are optional.
  9. The configured parameters are displayed. Enter yes to commit the configuration. The configuration is committed as the active configuration for the switch.
  10. (For EX4500 switches only) Enter the operational mode command request chassis pic-mode intraconnect to set the PIC mode to intraconnect.

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.

Published: 2014-09-29