Cisco 2950 switch password recovery
Posted by BWAYCCTY in Cisco switch
This documents the procedure for performing a password recovery on a Cisco 2950 switch (and probably other models, as well).
1. Unplug the power cable
2. Hold down the mode button while replugging the power cable
3. Type flash_init over the console
4. Type load_helper
5. Type Dir flash :
//make sure to type the semi-colons
6. Type rename flash:config.txt flash:config.old
//the password is contained in the config.txt file
7. Type boot
//this reboots the system
8. Type n to skip the initial setup configuration
9. Type enable
//this takes you to the enable mode
10. Type rename flash:config.old flash:config.txt
11. Save config.txt to system
#copy flash:config.txt system:running-config
12. Enter config mode and change the password
# config t
# no enable secret
//this applies only if the enable secret password was created
13. Finally, write the changes to memory
# write memory
The Conversation
Follow the reactions below and share your own thoughts.



June 05, 2009 at 4:50 am, avenkat said:
very nice.
thank you so much….
by venki
June 17, 2009 at 4:29 pm, Ahmed said:
Many Thanks for your effort
it help me too much
wish my best Wishes
August 09, 2009 at 11:31 am, Anonymous said:
very good but need more information
thank you
January 12, 2010 at 7:31 pm, bartho said:
Thanks foe advice
January 14, 2010 at 8:32 am, Anonymous said:
Thanks Bro.
Nice post.Its working.
June 02, 2010 at 9:55 pm, seshi said:
Thanks for the post
5. Type dir flash :
6. Type rename flash:config.text flash:config.old
Please refer the link…
http://www.cisco.com/en/US/products/hw/switches/ps628/products_password_recovery09186a0080094184.shtml
December 23, 2010 at 5:52 pm, Flowersb1 said:
Thank you. I was stuck at this point also.
September 20, 2010 at 10:17 am, J Laraune said:
clever man, thanx!!!!
January 31, 2011 at 1:42 pm, delforouz said:
Very very nice
May 30, 2011 at 11:40 pm, Juan Lopez said:
If in step 12, when a write configure terminal, send me % Authorization failed.