19 Jan, 2019

Password Recovery and Save the Configuration as Before in Cisco Switch

You need to follow the following steps:

  • Hold down the mode button located on the left side of the front panel, while you reconnect the power cable to the switch.
  • Release the mode button after 5 seconds when the status LED goes out.
  • When you release mode button, the SYST LED blinks amber.

Switch: flash_init (Initialize Flash file system)
Switch: load_helper
Switch: dir flash: (display contents)
Switch: rename flash:config.text flash:config-new.text
Switch: boot
Switch# rename flash:config-new.text flash:config.text
Switch# copy flash:config.text system:running-config
Switch# configure terminal
Switch(config)# enable secret cisco

Now change the enable password that you did not have

Switch: copy run start

Note:: You need to change all kind of passwords that you did not have before like console password, telnet password, enable password etc.