Cisco Support Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Announcements

Welcome to Cisco Support Community. We would love to have your feedback.

For an introduction to the new site, click here. And see here for current known issues.

Password Recovery on Cisco Router

how to recover from a forgotten priveleage mode password on any cisco router

4 REPLIES
New Member

Re: Password Recovery on Cisco Router

New Member

Re: Password Recovery on Cisco Router

Press Break on the terminal keyboard within 60 seconds of the power-up to put the router into ROMMON.

If the break sequence doesn't work, see Possible Key Combinations for Break Sequence During Password Recovery for other key combinations.

Type confreg 0x2142 at the rommon 1> prompt to boot from Flash without loading the configuration.

Type reset at the rommon 2> prompt.

The router reboots but ignores its saved configuration.

Type no after each setup question or press Ctrl-C to skip the initial setup procedure.

Type enable at the Router> prompt.

You'll be in enable mode and see the Router# prompt.

Important: Type configure memory or copy startup-config running-config to copy the nonvolatile RAM (NVRAM) into memory. Do not type configure terminal.

Type write terminal or show running-config.

The show running-config and write terminal commands show the configuration of the router. In this configuration you see under all the interfaces the shutdown command, which means all interfaces are currently shutdown. Also, you can see the passwords (enable password, enable secret, vty, console passwords, and so on) either in encrypted or unencrypted format. The unencrypted passwords can be re-used, the encrypted ones will have to be changed with a new one.

Type configure terminal and make the changes.

The prompt is now hostname(config)#.

Type enable secret to change the enable secret password, for example.

Issue the no shutdown command on every interface that is used. If you issue a show ip interface brief command, every interface that you want to use should be "up up".

Type config-register 0x2102, or the value you recorded in step 2.

Press Ctrl-z or end to leave the configuration mode.

The prompt is now hostname#.

Type write memory or copy running-config startup-config to commit the changes.

New Member

Re: Password Recovery on Cisco Router

Please note that the solution above does not apply to all routers. Earlier routers used a different syntax. The hyperlink below (and posted in first reply) will allow you to select the router in question to view the appropriate commands.

http://www.cisco.com/warp/customer/474/ or

http://www.cisco.com/warp/public/474 (for unregistered users)

Re: Password Recovery on Cisco Router

Thanks for your detailed info. and it worked .

Be in touch !

Have a good day!

344
Views
0
Helpful
4
Replies
CreatePlease login to create content