Huawei S5700 Factory Reset and Password Recovery (BootROM Guide) - 夜莺博客

Huawei S5700 Factory Reset and Password Recovery (BootROM Guide)

Factory resetting a Huawei S5700 or S5735 is a task every network engineer eventually faces — forgotten password, decommissioning, or a config so broken it is easier to start over. Unlike Cisco IOS, Huawei's VRP gives you two different reset commands with different scopes, and password recovery requires the BootROM menu rather than a config register trick. This field-tested guide covers CLI reset, BootROM password recovery, and the physical-button options, plus the security steps you must take after the reset.

Part 1: Factory Reset via CLI

If you still have console, Telnet or SSH access, back up the current configuration first:

display current-configuration

Then choose the right reset command:

reset factory-configuration     # full reset to factory defaults
reset saved-configuration       # clear stored startup config only
reset saved-configuration all   # clears additional related config files

Reboot to apply the reset — and when asked "Save the current configuration? [Y/N]", answer N, or you will overwrite the startup config and undo the reset.

Part 2: BootROM Password Recovery

  1. Connect via console cable (9600 baud) and power-cycle the switch.
  2. When "Press Ctrl+B to enter Boot Menu" appears, press Ctrl+B.
  3. Enter the BootROM password (defaults: Admin@huawei.com or huawei depending on model/version).
  4. Select "Clear password for console user" (menu option 7 on many S-Series models), confirm with Y, and reboot.
  5. Log in without a password, then run the reset commands above if you need a full factory state.

Part 3: Physical Button (Limited Models)

Some models include a PNP button — pressing and holding it for more than 6 seconds restores factory defaults and reboots. This is the same as reset factory-configuration and does not delete the protected directory or protected/$_default.cfg. Button behavior varies by hardware revision, so prefer BootROM for predictable results.

After the Reset: Security First

After reset, the switch loads default credentials (commonly admin / admin@huawei.com). If the switch stays connected to the network during this window it is a glaring vulnerability — disconnect it, change the password immediately with super password, re-enable SSH (stelnet server enable), patch the firmware, and only then reconnect. Resetting a stack member also erases its stack settings — disconnect stacking cables first if that is not intended.

Related Articles on This Site

See also Huawei switch factory reset methods, Cisco IOS password recovery and Junos password recovery guide.

原文链接:https://hi-network.com/huawei-s5735-factory-reset-guide.html