Support Support Downloads Knowledge Base Case Manager My Juniper Community

Knowledge Base

Search our Knowledge Base sites to find answers to your questions.

Ask All Knowledge Base Sites All Knowledge Base Sites JunosE Defect (KA)Knowledge BaseSecurity AdvisoriesTechnical BulletinsTechnotes Sign in to display secure content and recently viewed articles

[EX] How to return to factory-default configuration



Article ID: KB17126 KB Last Updated: 04 Feb 2020Version: 6.0

This article provides information about the methods to reset EX2200 switches to the factory-default configuration. Due to physical hardware differences, the EX2200 factory-default reset procedure differs from the EX3200 and EX4200 series switches.

  • In Junos 11.1 or later, the method to reset to the factory default configuration for EX2200, is to use the request system zeroize Junos CLI command to erase all data, including configuration and log files.

  • After executing the command, the EX2200 will be rebooted with the factory default configuration.

  • In Junos versions prior to 11.1, the request system zeroize Junos CLI command did not work as expected.

The  request system zeroize Junos CLI command erases all data, including configuration and log files, as shown below:

lab@EX2200> request system ?
Possible completions:
certificate Manage X509 certificates
configuration Request operation on system configuration
halt Halt the system
license Manage feature licenses
logout Forcibly end user's CLI login session
power-off Power off the system
reboot Reboot the system
scripts Manage scripts (commit, op, event)
services Request service applications information
snapshot Archive data and executable areas
software Perform system software extension or upgrade
storage Request operation on system storage
CurrentlyErase all data, including configuration and log files  <--
lab@EX2200> request system

However, there was an issue with this command; as per PR511216, the command does not work as expected in Junos versions prior to 11.1. Even if it is executed, the existing configuration is still available.


For Junos versions prior to 11.1, the recommendation is to use one of the following methods to return EX2200 to factory-defaults:

Execute the following commands:

lab@EX2200> request system configuration rescue delete
lab@EX2200> start shell user root
root@EX2200% cd /config
root@EX2200% rm -rf juniper.conf*
root@EX2200% cd /config/db/config
root@EX2200% rm -rf juniper.conf.*
root@EX2200% reboot



Install using TFTP or external USB from loader prompt:

Example: loader> install --format source

For more information, refer to:

Modification History:

2020-02-03: Minor, non-technical edit.

Related Links

Comment on this article > Affected Products Browse the Knowledge Base for more articles related to these product categories. Select a category to begin.

Getting Up and Running with Junos

Getting Up and Running with Junos Security Alerts and Vulnerabilities Product Alerts and Software Release Notices Problem Report (PR) Search Tool EOL Notices and Bulletins JTAC User Guide Customer Care User Guide Pathfinder SRX High Availability Configurator SRX VPN Configurator Training Courses and Videos End User Licence Agreement Global Search