Password recovery procedure for switches

Posted by: admin  :  Category: Other

To recover the password on the Cisco 2900XL, 3500XL, 2940, 2950, 2960, 2970, 3550, 3560, and 3750 series switches follow the following procedure.

Before we start password recovery procedure we need to attach a computer running terminal emulation software such as hyper-term or PuTTY to the console port of the Cisco device using a roll over cable. Set the terminal software to use the following communication settings.

  • Bits per second (baud): 9600
  • Data bits: 8
  • Parity: None
  • Stop bits: 1
  • Flow Control: Xon/Xoff

Password Recovery Procedure:

  1. Power the switch on and hold down the mode button located on the left side of the front panel.
  2. Issue the flash_init command.
  3. Issue the load_helper command.
  4. Issue the dir flash: command  Note: Make sure to type a colon “:” after the dir flash.
  5. Type rename flash:config.text flash:config.old to backup the configuration file.
  6. Issue the boot command to reboot the switch.
  7. Enter “n” at the prompt to abort the initial configuration dialog.
  8. At the switch prompt, type enable to enter the privileged mode.
  9. Type rename flash:config.old flash:config.text to rename the configuration file with its original name.
  10. Type copy flash:config.text system:running-config Copy the configuration file into memory.
  11. Type conf T.
  12. Type enable secret <new_secret_password>
  13. Type enable password <new_enable_password>
  14. Type line vty 0 15
  15. Type password <new_vty_password>
  16. Type login
  17. Type line con 0
  18. Type password <new_vty_password>
  19. Type write memory. 

Leave a Reply

What is 14 + 8 ?
Please leave these two fields as-is:
IMPORTANT! To be able to proceed, you need to solve the following simple math (so we know that you are a human) :-)

* Site Meter