Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?

Configuring Junos OS on the EX3400

 

EX3400 Switch Default Configuration

Each EX Series switch is programmed with a factory-default configuration that contains the values set for each configuration parameter when a switch is shipped.

The EX3400 switch default configuration:

  • Sets Ethernet switching and storm control on all interfaces

  • Sets Power over Ethernet (PoE) on all RJ-45 ports of models that provide PoE

  • Enables the following protocols:

    • Internet Group Management Protocol (IGMP) snooping

    • Rapid Spanning Tree Protocol (RSTP)

    • Link Layer Discovery Protocol (LLDP)

    • Link Layer Discovery Protocol Media Endpoint Discovery (LLDP-MED)

When you commit changes to the configuration, a new configuration file is created that becomes the active configuration. You can always revert to the factory-default configuration. See Reverting to the Default Factory Configuration for the EX Series Switch.

Note

The factory-default configuration file is different for different EX3400 switch models.

The number of interfaces in the default configuration file depends on the number of ports in the EX3400 switch.

The poe statement does not appear for models without PoE.

The four uplink ports on the front panel of EX3400 switches are listed as ge-0/2/0 through ge-0/2/3 and xe-0/2/0 through xe-0/2/3.

The following is the factory-default configuration file for an EX3400 switch with 24 ports with PoE capability that runs Junos OS Release 18.2R3 or later.

The following is the factory-default configuration file for an EX3400 switch with 48 ports with PoE capability that runs a version of Junos OS release earlier than 18.2R3.

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 EX2300 and EX3400 switches, you cannot create a new VLAN for management.

    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.

Connecting and Configuring an EX Series Switch (J-Web 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.

Starting in Junos OS Release 19.2R1, J-Web supports EX4650 switches.

Note

You cannot connect to and perform initial configuration of EX2200-24T-4G-DC, EX4300-48MP, EX4300-48MP-S switches, and EX4600 switches using EZSetup procedure from the J-Web interface. For EX2200-24T-4G-DC switches, you must use EZSetup from the switch console. For EX4300-48MP, EX4300-48MP-S, and EX4600 switches, you must use the CLI procedure through the switch console.

This topic describes the J-Web procedure.

Note

Before you begin the configuration, enable a DHCP client on the management PC that you will connect to the switch so that the PC can obtain an IP address dynamically.

Read the following steps before you begin the configuration. You must complete the initial configuration by using EZSetup within 10 minutes. The switch exits EZSetup after 10 minutes and reverts to the factory default configuration, and the PC loses connectivity to the switch.

  • EX2200 and EX2200-C switch—The LEDs on the network ports on the front panel blink when the switch is in the initial setup mode.

  • EX3200, EX3300, EX4200, EX4300 switches except EX4300-48MP and EX4300-48MP-S switches, EX4500, EX4550, EX6200, or EX8200 switch—The LCD panel displays a count-down timer when the switch is in initial setup mode.

    Note

    There is no LCD panel on EX4300-48MP and EX4300-48MP-S switches.

To connect and configure the switch by using the J-Web interface:

  1. Transition the switch into initial setup mode:
    • EX2200 and EX2200-C switch—Press the mode button located on the lower right corner of the front panel for 10 seconds.

    • EX3200, EX3300, EX4200, EX4300 switches except EX4300-48MP and EX4300-48MP-S switches, EX4500, EX4550, EX6200, or EX8200 switch—Use the Menu and Enter buttons located to the right of the LCD panel (see Figure 1 or Figure 2):

      Figure 1: LCD Panel in an EX3200, EX4200, EX4500, EX4550, or EX8200 Switch
      LCD Panel in an EX3200,
EX4200, EX4500, EX4550, or EX8200 Switch
      Figure 2: LCD Panel in an EX4300 Switches Except EX4300-48MP and EX4300-48MP-S Switches
      LCD Panel in an EX4300
Switches Except EX4300-48MP and EX4300-48MP-S Switches
        1
      LCD panel
        3
      LCD panel Menu button
        2
      LCD panel Enter button
        4
      Chassis status LEDs
      1. Press the Menu button until you see MAINTENANCE MENU. Then press the Enter button.

      2. Press Menu until you see ENTER EZSetup. Then press Enter.

        If EZSetup does not appear as an option in the menu, select Factory Default to return the switch to the factory default configuration. EZSetup is displayed in the menu of standalone switches only when a switch is set to the factory default configuration.

      3. Press Enter to confirm setup and continue with EZSetup.

  2. 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, EX4500, or EX4550 switch—Connect the cable to the port labeled MGMT on the front panel (LCD panel side) of the switch.

    • EX4300 switches except EX4300-48MP and EX4300-48MP-S switches—Connect the cable to the port labeled MGMT on the rear panel of the switch.

    • EX4650 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.

    These ports are configured as the DHCP server with the default IP address, 192.168.1.1. The switch can assign an IP address to the management PC in the IP address range 192.168.1.2 through 192.168.1.253.

  3. From the PC, open a Web browser, type http://192.168.1.1 in the address field, and press Enter.
  4. On the J-Web login page, type root as the username, leave the password field blank, and click Login.
  5. On the Introduction page, click Next.
  6. On the Basic Settings page, modify the hostname, the root password, and date and time settings:
    • Enter the hostname. This is optional.

    • Enter a password and reenter the password.

    • Specify the time zone.

    • Synchronize the date and time settings of the switch with the management PC or set them manually by selecting the appropriate option button. This is optional.

    Click Next.

  7. Use the Management Options page to select the management scenario:Note

    On EX2300 and EX3400 switches, you cannot create a new VLAN for management.

    On EX4500, EX6210, 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.

  8. Click Next.
  9. On the Manage Access page, you can select options to enable Telnet, SSH, and SNMP services. For SNMP, you can configure the read community, location, and contact.
  10. Click Next. The Summary screen displays the configured settings.
  11. Click Finish. The configuration is committed as the active switch configuration.Note

    After the configuration is committed, the connectivity between the PC and the switch might be lost. To renew the connection, release and renew the IP address by executing the appropriate commands on the management PC or by removing and reinserting the Ethernet cable.

  12. (For EX4500 switches only) In the CLI, enter the request chassis pic-mode intraconnect operational mode command to set the PIC mode to intraconnect.

You can now log in by using 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.

Reverting to the Default Factory Configuration for the EX Series Switch

With EX Series switches, if for any reason the current active configuration fails, you can revert to the factory-default configuration.

You can also roll back to a previous configuration, as described in Rolling Back Junos OS Configuration Changes, or revert to the rescue configuration, as described in Reverting to the Rescue Configuration for the EX Series Switch.

Tip

If you have lost the root password, it is not necessary to revert to the factory-default configuration to reset it. See Troubleshooting Loss of the Root Password.

The factory-default configuration contains the basic configuration settings for the switch. This is the first configuration of the switch and it is loaded when the switch is first powered on. For the factory-default configuration file for your switch, see the hardware documentation for your switch.

Tip

You can run the EZsetup script to complete the initial configuration of the switch after reverting to the factory-default configuration. (The EZsetup script is available only on fixed configuration switches, it is not available on modular switches.) For information on completing the initial configuration using either the CLI or the J-Web interface, see Connecting and Configuring an EX Series Switch (CLI Procedure) or Connecting and Configuring an EX Series Switch (J-Web Procedure).

You can revert to the factory-default configuration by using the Menu button to the right of the LCD panel on switches with LCD panel or by using the request system zeroize operational command or the load factory-default configuration command. (If your switch model does not have an LCD panel, use these commands.) You can also use the load factory-default command to revert to the factory-default configuration file that contains all default settings except the root password setting, which is retained.

These procedures are described in the following sections:

Reverting to the Factory-Default Configuration Using the EX Series Switch LCD Panel

To set the switch to the factory-default configuration, for EX Series switches, you can use the LCD panel and buttons on the front panel of the switch. If the EX Series switch model does not have an LCD panel, use one of the procedures described in the following sections.

Figure 3: EX Series Switch LCD Panel
EX Series Switch LCD Panel
Note

To revert a member switch of a Virtual Chassis to the factory-default configuration, first disconnect the cables connected to the Virtual Chassis ports (VCPs) to avoid affecting Virtual Chassis configuration parameters (member ID, mastership priority, and setting of VCP uplinks) on other members. See Disconnecting a Fiber-Optic Cable, Disconnecting a Virtual Chassis Cable from an EX4200 Switch, or Disconnecting a Virtual Chassis Cable from an EX4500 Switch.

To revert to the factory-default configuration by using the LCD panel:

  1. Press the Menu button until you see MAINTENANCE MENU on the panel.
  2. Press the Enter button.
  3. Press Menu until you see FACTORY DEFAULT.
  4. Press Enter. The display says RESTORE DEFAULT?
  5. Press Enter. The screen flashes FACTORY DEFAULT IN PROGRESS and returns to the idle menu.
  6. Complete the initial configuration of the switch. See Connecting and Configuring an EX Series Switch (CLI Procedure) or Connecting and Configuring an EX Series Switch (J-Web Procedure).

Reverting to the EX Series Switch Factory-Default Configuration Using the request system zeroize Command

The request system zeroize command is a standard Junos OS operational mode command that removes all configuration information and resets all key values. The operation unlinks all user-created data files, including customized configuration and log files, from their directories. The switch then reboots and reverts to the factory-default configuration.

To completely erase user-created data so that it is unrecoverable, use the request system zeroize media command.

Caution

Before issuing request system zeroize, use the request system snapshot command to back up the files currently used to run the switch to a secondary device.

To revert to the factory-default configuration by using the request system zeroize command:

  1. user@switch> request system zeroize

    warning: System will be rebooted and may not boot without configuration

    Erase all data, including configuration and log files? [yes,no] (yes)
  2. Type yes to remove configuration and log files and revert to the factory-default configuration.Note

    The auto-image-upgrade statement is added under the [edit chassis] hierarchy level when you use this procedure, and thus the automatic image upgrade feature is made available on the switch.

Reverting to the EX Series Switch Factory-Default Configuration Using the load factory-default Command

The load factory-default command is a standard Junos OS configuration command that replaces the current active configuration with the factory-default configuration (except the root password setting, which by default is not set but which you must set in order to commit the new configuration in this procedure).

If you want to run the EZsetup script to complete the initial configuration of the switch after you revert to the factory-default configuration, do not use the load factory-default command. Instead do the reversion using either the LCD panel or the request system zeroize command. If you use the load factory-default command to revert to the factory-default configuration, the configuration for the root password is retained and the EZsetup script will not run. (The EZsetup script is available only on fixed configuration switches, it is not available on modular switches.)

Note

The load factory-default command by itself is not supported on EX3300, EX4200, EX4500, and EX4550 switches configured in a Virtual Chassis.

To revert to the factory-default configuration by using the load factory-default command:

Note

If you use this procedure, you must delete the system commit factory settings, set the root password, and commit the configuration. These steps are not required when you revert to the factory-default configuration by using request system zeroize. Also, the auto-image-upgrade statement is not added to the configuration when you use this procedure; it is added to the configuration when you use request system zeroize.

  1. [edit]

    user@switch# load factory-default
  2. [edit]

    user@switch# delete system commit factory-settings
  3. [edit]

    user@switch# set system root-authentication plain-text-password
  4. [edit]

    user@switch# commit
  5. Check the member ID and mastership priority with the show virtual-chassis command and check to see whether there are remaining settings for uplink VCPs by using the show virtual-chassis vc-port command.

Reverting to the Factory-Default Configuration Using the Factory Reset/Mode button on EX2300 and EX3400 Switches

To set the EX2300 switches except the EX2300-24MP and EX2300-48MP switches, EX2300-C switches, and EX3400 switches to the factory-default configuration, use the Factory Reset/Mode button located on the far right side of the front panel.

Note

To revert a member switch of a Virtual Chassis to the factory-default configuration, disconnect the cables connected to the VCPs to avoid affecting Virtual Chassis configuration parameters (member ID, mastership priority, and setting of VCP uplinks) on other members. See Disconnecting a Fiber-Optic Cable.

To revert to the factory-default configuration by using the Factory Reset/Mode button:

  1. Press the Factory Reset/Mode button for 10 seconds. The switch transitions into factory-default configuration, the console displays committing factory default configuration, and the Link/Activity LED on the RJ-45 network ports and the uplink ports is lit steadily in green color.
  2. Press the Factory Reset/Mode button for 10 more seconds. The switch transitions into initial setup mode, the console displays committing ezsetup config, and the Link/Activity LED on the RJ-45 network ports and the uplink ports blink in green color.

The Factory Reset/Mode button is enabled by default. You can disable the button using the CLI.

To disable the Factory Reset/Mode button, run the commands:

  1. [edit]

    user@switch# set chassis config-button no-clear
  2. [edit]

    user@switch# commit

To enable the Factory Reset/Mode button, run the commands:

  1. [edit]

    user@switch# delete chassis config-button no-clear
  2. [edit]

    user@switch# commit
Release History Table
Release
Description
Starting in Junos OS Release 19.2R1, J-Web supports EX4650 switches.