How to Recover a Cisco IOS Router Password

August 21, 2018 | Views: 2410

Begin Learning Cyber Security for FREE Now!

FREE REGISTRATIONAlready a Member Login Here

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

  1. Router (whose password is to be recovered)
  2. PC (laptop or desktop)
  3. Router Console cable (to connect PC to Router)
  4. 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.

Share with Friends
FacebookTwitterGoogle+LinkedInEmail
Use Cybytes and
Tip the Author!
Join
Share with Friends
FacebookTwitterGoogle+LinkedInEmail
Ready to share your knowledge and expertise?
1 Comment
  1. Thanks for sharing. I will surely try this at packet tracer.

Comment on This

You must be logged in to post a comment.

Our Revolution

We believe Cyber Security training should be free, for everyone, FOREVER. Everyone, everywhere, deserves the OPPORTUNITY to learn, begin and grow a career in this fascinating field. Therefore, Cybrary is a free community where people, companies and training come together to give everyone the ability to collaborate in an open source way that is revolutionizing the cyber security educational experience.

Cybrary On The Go

Get the Cybrary app for Android for online and offline viewing of our lessons.

Get it on Google Play
 

Support Cybrary

Donate Here to Get This Month's Donor Badge

 
Skip to toolbar

We recommend always using caution when following any link

Are you sure you want to continue?

Continue
Cancel