How to recover password on a cisco 2950, 2960 switch


Published on

How to recover password on a cisco 2950, 2960 switch

Published in: Technology, Education
  • Be the first to comment

No Downloads
Total views
On SlideShare
From Embeds
Number of Embeds
Embeds 0
No embeds

No notes for slide

How to recover password on a cisco 2950, 2960 switch

  1. 1. How to Recover Password on a Cisco 2950/2960 Switch?How to recovery your password on a Cisco 2950 or a Cisco 2960 switch? Again these instructionsassume you have console and physical access to the device. Also just as a FYI, the up arrowdoesn’t show your last command when you are in the following screens.If you hit the up arrow it will move your cursor up the screen. Without any further ado:1. Unplug the switch so that it is powered off.2. While holding the “mode” button down for 5 seconds, plug the switch back in so that thedevice power’s up.3. The SYST light switch will blink green/amber and you will see the boot screen on the console.
  2. 2. 4. Type “flash_init”; this will initialize the flash in the switch so you can access its file system.5. Type “load_helper”.6. Type “dir flash:” to display the contents of flash. Look for the file named config.text, this is thestart-up config.7. Rename the config file so that it won’t load. The extension of the file can simply be changedfrom config.text to config.old. Type the following command as “rename flash:/config.textflash:/config.old”.8. Reboot the device by typing “reset”. Type “y” for yest and press enter.
  3. 3. 9. The switch will reboot and reload the IOS. If everything was done correctly the “SystemConfiguration Dialog” should come up (this happens because the switch didn’t find a start-upconfiguration in the flash.) Type “n” to skip this part.10. Once at the user EXEC mode type “enable” to get into the privilege EXEC mode.11. Once in the privilege EXEC mode. Type “dir flash:” to review your flash contents you will seethe file that we previously name config.old. You will need to change that back to config.text if youwant to retrieve youryour original settings. If you you don’t want retrieve your original settingsyou can simply type “copy run start” and the switch will create a new config.text file.12. Type “rename flash:/config.old flash:/config.text”. After you press enter, another line will askyou to confirm the file name. Press enter again.13. Type “dir flash:” again to confirm that you changed the file back to config.text.14.Next at the privilege EXEC level type “copy config.text run” to load back the startup config intothe running configuration. Then type “show run” to verify your old configuration is back in RAM.15. While in the privilege EXEC mode, Go to the global configuration mode by typing “conf t”.16. Once in the Global Configuration mode you can change your enable password/secret. Alsodon’t forget to change any other necessary passwords.17. After you have updated the switch/Cisco switch with your new passwords, exit out of globalconfiguration mode, and you will be back in privilege EXEC mode. Type “copy run start” (THIS ISCRITICAL BECAUSE IF YOU DON’T YOUR START-UP CONFIGURATION FILE WILL NOT BEUPDATED.)
  4. 4. More Related: How to Manage Cisco 2950 Switches by IP Address?