If for any reason the current active configuration fails, you can revert to the default factory configuration. You can also roll back to a previous configuration, as described in Loading a Previous Configuration File (CLI Procedure), or revert to the rescue configuration, as described in Reverting to the Rescue Configuration for the EX Series Switch.
The default factory configuration contains the basic configuration settings. This is the first configuration of the switch and it is loaded when the switch is first installed and powered on.
You can revert to the default factory configuration by using the Menu button to the right of the LCD on the front panel of the switch 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 the commands.)
![]() | 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. |
To set the switch to the default factory configuration, use the LCD panel and buttons on the front panel of the switch as shown in Figure 1. If the switch model does not have an LCD panel, use one of the CLI commands described in the following sections.
Use the LCD panel to revert to the default factory configuration if you want to run EZsetup. When you use the CLI to revert to the default factory configuration, the configuration for the root password is retained and you cannot run EZSetup.
Figure 1: EX Series Switch LCD Panel

![]() | Note: If you want to convert an EX3300, EX4200, or EX4500 switch from a member of a multimember Virtual Chassis configuration to a standalone switch, first disconnect the cables connected to the Virtual Chassis ports (VCPs). See Disconnecting a Fiber-Optic Cable from an EX Series Switch, Disconnecting a Virtual Chassis Cable from an EX4200 Switch, or Disconnecting a Virtual Chassis Cable from an EX4500 Switch. The Menu button procedure deletes all modified configuration parameters, including Virtual Chassis parameters such as member ID, mastership priority, and setting of VCP uplinks. |
To revert to the default factory configuration by using the LCD panel:
The request system zeroize command is a standard Junos OS operational mode command.
Issuing this command 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 default factory 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 default factory configuration by using the request system zeroize command:
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)![]() | Note: After running the request system zeroize command, you cannot access the switch through the management Ethernet interface. Instead, log in through the console as root and start the Junos OS CLI by typing cli at the prompt. |
The load factory-default command is a standard Junos OS configuration command. Issuing this configuration command replaces the current active configuration with the default factory configuration.
Use the LCD panel to revert to the default factory configuration if you want to run EZSetup. When you use the CLI to revert to the default factory configuration, the configuration for the root password is retained and you cannot run EZSetup.
![]() | Note: The load factory-default command by itself is not supported on EX3300, EX4200, and EX4500 switches configured in a Virtual Chassis with multiple members. |
To revert to the default factory configuration by using the load factory-default command: