How to Factory Reset a Juniper Switch (EX, QFX, SRX)
If you need to reset a Juniper switch because of a forgotten password, old configuration, or second-hand hardware, performing a factory reset is often the fastest and safest solution.
This guide explains how to factory reset Juniper EX, QFX, and SRX switches, what each reset method actually does, and what to expect after the reboot. It’s written for network engineers and IT administrators who want a clean starting point without unnecessary confusion.
What Does a Juniper Factory Reset Do?
A factory reset restores a Juniper device to its default configuration state. Depending on the method you choose, it may:
Remove all user-defined configurations
Reset administrative credentials
Clear system logs and user files
Return the device to a clean, ready-to-configure condition
Important: A factory reset does not downgrade or reinstall Junos OS. The operating system remains unchanged unless you manually reinstall it.
Method 1: Factory Reset Using CLI (Recommended)
If you still have console or SSH access, the CLI method is the most reliable and predictable.
Option A: Reset Configuration Only
Use this when you want to clear the configuration but keep system files and logs.
cli
load factory-default
commit
The switch reloads with the default configuration.
Option B: Full Factory Reset (System Zeroize)
Use this when security or ownership is a concern, such as with used or decommissioned hardware.
cli
request system zeroize
This removes:
Configuration files
Logs
User-created data
The device reboots automatically after completion.
Method 2: Factory Reset Using the Hardware Reset Button
Many Juniper EX switches include a RESET CONFIG button that allows recovery when CLI access is unavailable.
Typical behavior:
Hold ~10 seconds: restore factory-default configuration
Hold ~15 seconds: perform a full system zeroize
Exact timing may vary by model, so always verify for your specific device.
This method is best used when the switch is locked or inaccessible remotely.
Method 3: Factory Reset Using J-Web Interface
If web management is enabled, you can reset the device through J-Web:
Log in to J-Web
Navigate to Maintain > Factory Default
Confirm the reset
This method resets the configuration through the GUI and is useful for remote management scenarios.
Default Login After Factory Reset
After a factory reset, Juniper switches return to the default credentials:
Username: root
Password: none
You will be prompted to set a new root password before committing any configuration changes.
Failing to set a password immediately is a common cause of post-reset access issues.
When Should You Factory Reset a Juniper Switch?
A factory reset is commonly used in these scenarios:
Forgotten password or locked device
Second-hand or refurbished hardware
Network migration or redeployment
Lab testing and training environments
Persistent configuration issues
If the problem can’t be resolved through configuration changes alone, a reset is often the cleanest solution.
Comparison of Juniper Factory Reset Methods
| Method | What It Resets | Removes OS | Best Use Case |
|---|---|---|---|
| load factory-default | Configuration only | No | Quick rebuilds, lab use |
| request system zeroize | Config + logs + user files | No | Security-sensitive resets |
| Reset button | Varies by duration | No | No CLI access |
| J-Web reset | Configuration | No | Remote GUI management |
Frequently Asked Questions
Q1.What’s the difference between load factory-default and request system zeroize?
The first resets only the configuration. The second wipes all local data, including logs and user files.
Q2.Will a factory reset downgrade Junos OS?
No. The Junos version remains the same.
Q3.How do I reset a Juniper EX2200 switch?
Use the RESET CONFIG button or run request system zeroize from the CLI.
Q4.Can I reset a Juniper switch remotely?
Yes, if SSH or J-Web access is available. Otherwise, console access is required.
Final Notes
Factory resetting a Juniper switch is a straightforward process once you understand the differences between reset methods. Choosing the correct approach helps avoid unnecessary data loss and reduces downtime during redeployment.
After any reset, secure the device immediately by setting strong credentials and verifying management access before putting it back into production.
评论
发表评论