Knowledge Search


×
 

SRX Getting Started - Factory Reset (on SRX and J Series devices)

  [KB15725] Show Article Properties


Summary:

This article describes how to return the configuration on a SRX or J Series device to the factory default version (configuration file that is shipped with the device).

For other topics about SRX, go to the SRX Getting Started main page.

Symptoms:

How to reset the configuration to the factory default.

Cause:

Solution:

There are three ways to reset an SRX and J-Series device to its factory default configuration.


Using the Reset Config Button

Note: The Reset Config button is available only on the SRX Branch and J-Series devices.

You can use the Reset Config button on the front panel of the SRX and J-Series device to reset the device to its factory default configuration. The Reset Config button is recessed to prevent it from being pressed accidentally; so you need to insert a small probe (for example, a straightened paper clip) to press the button.

Caution: If you use the Reset Config button to reset the device to its factory default configuration, all the configuration files, including the rescue configuration and backup configurations, will be deleted.

For instructions, refer to the following links:



Using the load factory-default Command

If you are still able to logon to the device via the CLI, you can use the load factory-default command to return the device to its factory default configuration. This command loads and commits the factory configuration; but this command does not delete other configuration files on the device.

For more information about this command, refer to the following link:

http://www.juniper.net/techpubs/software/junos-security/junos-security10.0/junos-security-admin-guide/factory-defaults-router-context-to-secure-context-section.html#factory-defaults-router-context-to-secure-context-section

  1. Type the load factory-default command:
    root@host# load factory-default
  1. Use the set system root-authentication plain-text-password command to set a new root password for the device:
    root@host# set system root-authentication plain-text-password
  2. Type the root password and retype it to confirm it:
    New password:
    Retype new password:
         
Caution: Prior to committing the changes, if an IP address is not assigned for the 'ge-0/0/0' interface, create a local user account and type the routing information; either via the CLI configuration or DHCP. The SRX device will no longer be remotely accessible.

To manage the SRX device, you must connect a PC or laptop to the physical console or attach the PC or laptop to a subnet that is directly connected to the ge-0/0/0 interface, which is assigned an IP address of '192.168.2.1'.
  1. Use the commit and-quit command to commit the configuration and exit the configuration mode, if the configuration contains no errors and the commit is successful:
    root@host# commit and-quit
    
    After the commit, the factory default configuration will be the running configuration.



Using the Root Password Recovery Process

If you are unable to logon to the device, use the root password recovery process to reset the device to its factory default configuration. You must have console access to use the password recovery process.

For instructions on how to recover the root password on SRX Series, refer to:
http://www.juniper.net/techpubs/en_US/junos12.1x44/topics/task/operational/security-root-password-srx-series-device-recovering.html.


For instructions on how to recover the root password on J-Series, refer to:
http://www.juniper.net/techpubs/en_US/junos12.1x44/topics/task/operational/security-root-password-j-series-device-recovering.html.


For SRX Branch devices that run Junos OS 10.0R1 or later, password recovery may fail, due to the watchdog timeout, when in the single-user mode. For more information, refer to KB17565 - [SRX] Root password recovery not working with Junos versions 10.0R1 or later.

Related Links: