October 22, 2010
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:
- Power the switch on and hold down the mode button located on the left side of the front panel.
- Issue the flash_init command.
- Issue the load_helper command.
- Issue the dir flash: command Note: Make sure to type a colon “:” after the dir flash.
- Type rename flash:config.text flash:config.old to backup the configuration file.
- Issue the boot command to reboot the switch.
- Enter “n” at the prompt to abort the initial configuration dialog.
- At the switch prompt, type enable to enter the privileged mode.
- Type rename flash:config.old flash:config.text to rename the configuration file with its original name.
- Type copy flash:config.text system:running-config Copy the configuration file into memory.
- Type conf T.
- Type enable secret <new_secret_password>
- Type enable password <new_enable_password>
- Type line vty 0 15
- Type password <new_vty_password>
- Type login
- Type line con 0
- Type password <new_vty_password>
- Type write memory.