
How to Recover a Cisco IOS Router Password

This technique is very useful for when you forget or misplace your router password. It gives you easy access to recover your router.
What You Need
- Router (whose password is to be recovered)
- PC (laptop or desktop)
- Router Console cable (to connect PC to Router)
- Terminal emulation software (on PC), e.g., puTTy
Steps
- Connect the affected router to your PC using the Console cable.
- On the PC, launch your terminal emulation software and enter the following configurations.
- Bits Per Second: 9600
- Data Bits: 8
- Parity: None
- Stop Bits: 1
- Flow Control: None
- Click OK and turn on your router.
- The terminal windows should show the router booting up and all the details of its OS.
- At the point of the bootup process, hit, Ctrl+break/pause keys to enter the ROMMON (ROM Monitor) mode. You have just 60 seconds; make that 40.
- If the Ctrl+break/pause key combo doesn’t work for you, then you may need to add ‘fn,’ i.e., Ctrl+fn+break.
- For other terminals, try any of these.
Software | Platform | Operating System | Try This |
Hyperterminal | IBM Compatible | Windows XP | Ctrl-Break |
Hyperterminal | IBM Compatible | Windows 2000 | Ctrl-Break |
Hyperterminal | IBM Compatible | Windows 98 | Ctrl-Break |
Hyperterminal (version 595160) | IBM Compatible | Windows 95 | Ctrl-F6-Break |
Kermit | Sun Workstation | UNIX | Ctrl-l |
Ctrl-b | |||
MicroPhone Pro | IBM Compatible | Windows | Ctrl-Break |
Minicom | IBM Compatible | Linux | Ctrl-a f |
ProComm Plus | IBM Compatible | DOS or Windows | Alt-b |
SecureCRT | IBM Compatible | Windows | Ctrl-Break |
Telix | IBM Compatible | DOS | Ctrl-End |
Telnet | N/A | N/A | Ctrl-], then type send brk |
Telnet to Cisco | IBM Compatible | N/A | Ctrl-] |
Teraterm | IBM Compatible | Windows | Alt-b |
Terminal | IBM Compatible | Windows | Break |
Ctrl-Break | |||
Tip | Sun Workstation | UNIX | Ctrl-], then Break or Ctrl-c |
~# | |||
VT 100 Emulation | Data General | N/A | F16 |
Windows NT | IBM Compatible | Windows | Break-F5 |
Shift-F5 | |||
Shift-6 Shift-4 Shift-b (^$B) | |||
Z-TERMINAL | Mac | Apple | Command-b |
N/A | Break-Out Box | N/A | Connect pin 2 (X-mit) to +V for half a second |
Cisco to aux port | N/A | Control-Shft-6, then b | |
IBM Compatible | N/A | Ctrl-Break |
Source: Cisco
· If you can see the prompt ‘rommon 1>’ then type ‘confreg 0x2142.’ This allows you to bypass the initial startup config on your router.
· Then type reset to reboot your router.
- The router will bypass the startup configuration, and you will be able to access its privilege exec mode and global configuration.
- Change the password by typing enable password password or enable secret password
· Save your changes by typing ‘copy run start’ and enter.
· From the global configuration mode, router(config)#, change the configuration register back by typing ‘config-register 0x2102’ and enter.
· Reboot the router with the command ‘do reload’ at global config or ‘reload’ at privilege and enter.
Now, you will be able to log in to the router with the new password you have assigned.
Cheers.