Warning: Invalid argument supplied for foreach() in /home/techrecipes/public_html/wp-content/themes/techrecipes/header.php on line 77

Cisco 2950 Switch Password Recovery

This tutorial 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.

  • avenkat

    very nice.

    thank you so much….

    by venki

  • Ahmed

    Many Thanks for your effort

    it help me too much

    wish my best Wishes

  • Anonymous

    very good but need more information

    thank you

  • bartho

    Thanks foe advice

  • Anonymous

    Thanks Bro.
    Nice post.Its working.

  • seshi

    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

    • Flowersb1

      Thank you. I was stuck at this point also.

  • J Laraune

    clever man, thanx!!!!

  • delforouz

    Very very nice

  • Juan Lopez

    If in step 12, when a write configure terminal, send me % Authorization failed.