Sometime you may think every thing is tough, but, it is easy. Friend of my had handed on a network project from ex-engineer at his company. Unfortunately, the password of the routers and switching is difference in IT knowledge base of his company. He called me and ask for some advises to break into those network devices. I told him to do a by pass start up configuration process in the routers and switches, and re-setup the password by point the boot register to “0x2142”. How to do it??
Note: The configuration register is usually set to 0x2102 or 0x102
Problem : Lost Cisco routers and switches password?
The recovery Procedure
1. Connect a terminal to the console port
- 9600 baud rate
- No parity
- 8 data bits
- 1 stop bit
- No flow control
2. turn off the router, and then turn the router back on.
3. Press Break on the terminal keyboard within 60 seconds of power up in order to put the router into ROMmon.
4. Type confreg 0x2142 at the rommon 1> prompt in order to boot from Flash.
***This step bypasses the startup configuration where the passwords are stored.
5. Type reset at the rommon 2> prompt.
The router reboots, but ignores the saved configuration.
6. Type no after each setup question, or press Ctrl-C in order to skip the initial setup procedure.
7. Type enable at the Router> prompt.
8. Type configure memory or copy startup-config running-config in order to copy the nonvolatile RAM (NVRAM) into memory.
***Warning: Do not type copy running-config startup-config or write. These commands erase your startup configuration.
At this step you are now allowed to change password or add another user.
9. Type config-register <configuration_register_setting>. Where configuration_register_setting is either the value you recorded in step 2 or 0x2102 . For example:
10. Press Ctrl-z or end in order to leave the configuration mode.
The hostname# prompt appears.
11. Type write memory or copy running-config startup-config in order to commit the changes.
Now the problems are solved and everyone are happy!!