Guide That Contains This Content
[+] Expand All
[-] Collapse All

    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 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. An Ethernet cable that has an RJ-45 connector at either end and an 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, EX2300, EX3400, EX4300, and EX4550 switches, you can also use the Mini-USB Type-B console port to connect to a laptop or PC. See Connecting an EX Series Switch to a Management Console by Using the Mini-USB Type-B Console Port.

    2. At the Junos OS shell prompt root%, type ezsetup.
    3. Enter the hostname. This is optional.
    4. Enter the root password you want to use for the device. Reenter the root password when prompted.
    5. Enable services such as SSH and Telnet.

      Note: You will not be able to log in to the switch as the root user through Telnet. Root login is allowed only through SSH.

      • The default option for SSH is yes. Select this to enable SSH.
      • The default option for Telnet is no. Change this to yes to enable Telnet.
    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 automatically created VLAN default for management—Select this option to configure all data interfaces as members of the default VLAN. Specify the management IP address and the default gateway.
        • Create a new VLAN for management—Select this option to create a management VLAN. 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—Configure the management port. 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.

    Modified: 2017-06-15