How to recover password on Cisco 2960 switch, here are the detail steps:1. Start Hyper Terminal and the connection interface will be shown
2. Turn off the switch power
3. Press the MODE button while turning on the power.
4. When the sys light of the switch on the left flash slowly (you can also find part of the red light flashed), press the “mode” button until the sys light is not flashing (it is steady on), otherwise, release the button in advance will directly be into the normal startup, and you must jump back to step 2 again.
5. You can release the Mode button and then some indications will be shown in system:
The system has been interrupted prior to initializing the flash file system. The following commands will initialize the flash file system, and finish loading the operating
system software: flash_init /Initialize the flash
file system load_helper /Load help file
boot /Boot device into the normal mode
Steps:
switch:
Switch:flash_init
Switch:dir flash: /View Flash file name to confirm the file name config.text
Switch:rename flash:config.text flash:oldconfig.text /Rename the configuration file
Switch:boot /Start the switch manually
As the configuration file has been corrected, configuration dialogue will be shown for the switch can not find the default config.text, select “n” and press Enter, and then we'll bypass the original password and enter into the following indication:
Switch> Switch>en /Into privileged mode
Switch#rename flash:oldconfig.text flash:config.text /Recover configuration file of the switch
Switch#copy flash:config.text system:running-config /Save the configuration into DRAM
Switch#config t /Then you can set a new password for the cisco
Switch(config)# enable password cisco
Switch(config)# enable secret CISCO
Switch(config)#line con 0
Switch(config)#password cisco
Switch#copy run start
Or you can use the following method to temporarily delete the password and set later
Switch(config)#no enable password /Cancel the former password on privileged mode password
Switch(config)#no enable secret /Cancel the secret password
Switch(config)#exit
Switch#copy run start /Cope the current configuration file back to Flash