Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?

Configure Junos OS on the EX4400

 

EX4400 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 appears only in models with ports that support PoE-bt.

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 Revert to the Factory-Default Configuration for the EX Series Switch.

The following is the factory-default configuration file for an EX4400-24P switch with 24 ports that support PoE-bt. The factory-default configuration file for the other EX4400 models is similar.

Connect and Configure an EX4400 Switch

We ship the EX4400 switch with Junos OS preinstalled and ready to be configured when the switch is powered on. You must perform the initial configuration of the EX4400 through the console port (labeled CON) on the rear panel of the switch by using the command-line interface (CLI).

Before you connect and configure an EX4400, set the following parameter values on the console server or PC:

  • Baud Rate—9600

  • Data—8

  • Flow Control—None

  • Parity—None

  • Stop Bits—1

  • DCD State—Disregard

Ensure that you have the following parts and tools available:

  • An Ethernet cable with an RJ-45 connector attached—provided

  • An RJ-45 to DB-9 serial port adapter—provided

  • A laptop or PC, with a serial port—not provided

Have the following information available before you configure custom settings for the switch:

  • Root password

  • IP address of the default gateway

  • IP address of the management port

  • IP address of a DNS server

  • (Optional) Hostname

  • (Optional) IP address of a backup router

  • (Optional) SNMP read community, location, and contact to configure SNMP parameters

  • (Optional) Static routes to remote subnets with access to the management port

  • (Optional) Static routes to remote prefixes with access to the management port

This procedure describes how to perform the initial configuration on the switch and to connect it to the network. For the complete information about enabling the switch to forward traffic, including examples, see the Junos OS configuration guides.

To perform the initial configuration on the switch and to connect it to the network:

  1. Power on the switch.
  2. Connect the console port (labeled CON) on the rear panel of the switch to a management host such as a laptop or PC by using an RJ-45 to DB-9 serial port adapter.
  3. At the Junos OS login prompt, type root to log in. You don't need to enter a password. If the software boots before you connect to the console port, you might need to press the Enter key for the prompt to appear.
  4. Start the CLI.
  5. Enter configuration mode.
  6. Add a password to the root administration user account. Enter a plain-text password, an encrypted password, or an SSH public key string.

    or

    or

    or

    or

  7. (Optional) Configure the hostname of the switch. If the name includes spaces, enclose the name in double quotation marks (“ ”).
  8. (Optional) Create a user account.
  9. (Optional) Set the user account class to super-user.
  10. (Optional) Configure the domain name of the switch.
  11. Configure the default gateway.
  12. Configure the IP address and prefix length for the management interface on the switch.
    Note

    The management port me0 (labeled MGMT) is located on the rear panel of the switch.

  13. (Optional) Configure the IP address of a backup router, which is used only while the routing protocol is not running.
  14. Configure the IP address of a DNS server.
  15. (Optional) Configure the static routes to remote subnets with access to the management port. Access to the management port is limited to the local subnet.
  16. (Optional) Configure the static routes to remote prefixes with access to the management port.
  17. Configure the SSH service.
  18. Configure in-band management or out-of-band management:

    • With in-band management, you can configure a network port interface as the management interface and connect it to the management device. In this scenario, you can do either of the following:

      • Use the automatically created VLAN named default for management of all data interfaces as members of the default VLAN. Specify the management IP address and the default gateway.

      • Create a new management VLAN. Specify the VLAN name, VLAN ID, management IP address, and default gateway. Select the ports that must be part of this VLAN.

    • With out-of-band management, you use a dedicated management channel 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.

  19. (Optional) Specify the SNMP read community, location, and contact to configure SNMP parameters.
  20. (Optional) Specify the system date and time. Select the time zone from the list. The configured parameters are displayed.
  21. Enter yes to commit the configuration. The configuration is committed as the active configuration for the switch.
  22. (Optional) Display the configuration to verify that it is correct.
  23. (Optional) Configure additional properties by adding the necessary configuration statements.
  24. Commit the configuration to activate it on the switch.
  25. When you have finished configuring the switch, exit configuration mode.

You can now log in by using the CLI and continue configuring the switch.

Revert to the Factory-Default 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 about 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 an 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 settings.

These procedures are described in the following sections:

Revert 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 does 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 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.

Revert to the Factory-Default Configuration Using the Factory Reset/Mode Button on EX2300, EX3400, EX4300-48MP, and EX4400 Switches

To set the EX2300 switches (except the EX2300-24MP and EX2300-48MP switches), EX2300-C switches, EX3400 switches, EX4300-48MP switches, and EX4400 switches to the factory-default configuration, use the Factory Reset/Mode button located on the far right 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 green.
  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 blinks green.

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 following 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 following commands:

  1. [edit]

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

    user@switch# commit

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

To set EX Series switches that have an LCD panel to the factory-default configuration, 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 other sections in this topic.

Figure 1: 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, 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 RESTORE DEFAULT? message appears.
  5. Press Enter. The panel 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).

Revert 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 on a secondary device. Using the zeroize command will destroy Junos OS 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. 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.