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 EX4300

EX4300 Default Configuration

Each EX Series switch is programmed with a factory default configuration that contains the values set for each configuration parameter when the switch is shipped. The default configuration file sets values for system parameters such as syslog and commit, configures Ethernet switching on all interfaces, enables IGMP snooping, and enables the LLDP and RSTP protocols.

Note:
  • The factory default configuration file has more interfaces for models that have more ports.

  • The poe statement does not appear for models without PoE+ ports.

Interfaces ge-0/0/0 through ge-0/0/23 are network port interfaces. Interfaces ge-0/2/0 through ge-0/2/3 and xe-0/2/0 through xe-0/2/3 are SFP/SFP+ uplink module port interfaces.

When you commit changes to the configuration, a new configuration file is created, which 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.

The following is the factory-default configuration file for an EX4300-48P switch with 48 ports with PoE capability that runs Junos OS Release 18.3R3 or later.

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

The following is the factory-default configuration file for an EX4300-48MP switch that runs Junos OS Release 19.1R2 or later.

Connecting and Configuring an EX Series Switch (CLI Procedure)

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

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.

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. If your laptop doesn't have a serial port, use a serial to USB adapter.
    Note:

    We no longer include the RJ-45 console cable with the DB-9 adapter as part of the device package. If the console cable and adapter are not included in your device package, or if you need a different type of adapter, you can order the following separately:

    • RJ-45 to DB-9 adapter (JNP-CBL-RJ45-DB9)

    • RJ-45 to USB-A adapter (JNP-CBL-RJ45-USBA)

    • RJ-45 to USB-C adapter (JNP-CBL-RJ45-USBC)

    If you want to use RJ-45 to USB-A or RJ-45 to USB-C adapter you must have X64 (64-Bit) Virtual COM port (VCP) driver installed on your PC. See, https://ftdichip.com/drivers/vcp-drivers/ to download the driver.

  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.

Note:

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 SwitchLCD 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 SwitchesLCD 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 switch—Connect the cable to the port labeled MGMT on the rear panel 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.

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

Configuring the LCD Panel on EX Series Switches (CLI Procedure)

This topic applies to hardware devices in the EX Series product family, which includes switches and the XRE200 External Routing Engine, that support the LCD panel interface.

The LCD panel on the front panel of EX Series switches displays a variety of information about the switch in the Status menu and provides the Maintenance menu to enable you to perform basic operations such as initial setup and reboot. You can disable these menus or individual menu options if you do not want switch users to use them. You can also set a custom message that will be displayed on the panel.

Disabling or Enabling Menus and Menu Options on the LCD Panel

By default, the Maintenance menu, the Status menu, and the options in those menus in the LCD panel are enabled. Users can configure and troubleshoot the switch by using the Maintenance menu and view certain details about the switch by using the Status menu.

If you do not want users to be able to use those menus or some of the menu options, you can disable the menus or individual menu options. You can reenable the menus or menu options.

Issue the show chassis lcd menu operational mode command to see the menus or menu options that are currently enabled.

Note:

On some platforms, you must specify an FPC slot number in these commands. See the lcd-menu statement for details.

To disable a menu:

To enable a menu:

To disable a menu option:

To enable a menu option:

Configuring a Custom Display Message

You can configure the second line of the LCD to display a custom message temporarily for 5 minutes or permanently.

To display a custom message temporarily:

  • On an EX3200 switch, a standalone EX3300 switch, a standalone EX4200 switch, a standalone EX4300 switch except EX4300-48MP and EX4300-48MP-S switches, a standalone EX4500 switch, a standalone EX4550 switch, an EX6200 switch, an EX8200 switch, or an XRE200 External Routing Engine:

  • On an EX3300, EX4200, EX4300, EX4500, or EX4550 switch in a Virtual Chassis configuration:

To display a custom message permanently:

  • On an EX3200 switch, a standalone EX3300 switch, a standalone EX4200 switch, a standalone EX4300 switch except EX4300-48MP and EX4300-48MP-S switches, a standalone EX4500 switch, a standalone EX4550 switch, an EX6200 switch, an EX8200 switch, or an XRE200 External Routing Engine:

  • On an EX3300, EX4200, EX4300 except EX4300-48MP and EX4300-48MP-S, EX4500, or EX4550 switch in a Virtual Chassis configuration:

Note:

The buttons on the LCD panel are disabled when the LCD is configured to display a custom message.

To disable the display of the custom message:

You can view the custom message by issuing the show chassis lcd command.

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 Recovering the Root Password on Switches.

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 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. Using the zeroize command will destroy Junos and OAM partitions and the switch may not boot. To recover from a failed software installation, see Recovering from a Failed Software Installation.

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


  1. 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 primary-role 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 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 PanelEX 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, primary-role priority, and setting of VCP uplinks) on other members. See Disconnect 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 Factory-Default Configuration Using the Factory Reset/Mode button on EX2300, EX3400, and EX4300-48MP Switches

To set the EX2300 switches except the EX2300-24MP and EX2300-48MP switches, EX2300-C switches, EX3400 switches, and EX4300-48MP 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, primary-role priority, and setting of VCP uplinks) on other members (see Disconnect 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

Change History Table

Feature support is determined by the platform and release you are using. Use Feature Explorer to determine if a feature is supported on your platform.

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