Password Recovery
This lab demonstrates how to recover the password of 2500 series Routers. Password Recovery procedure allows you to regain administrative control over the device.
Diagram
Procedure
- Attach a PC with terminal emulation software to the Router’s Console port.
- Turn off the Router, and turn it on and press the Break Key on the PC within 60 seconds of turning on the Router.
- Enter the command to By-Pass the NVRAM on the > prompt and initialize the Router by command.
- Enter no in response to the System Configuration dialog prompts.
- Enter into the Router and copy the configuration from the NVRAM, change the password & change the value of the configuration register & save the configuration into NVRAM again and reload the Router.
Configuration
Step 1: Attach a PC with terminal emulation software to the Router’s Console
Port.
The configuration register value is 0x2102 by-default. It’s mean that whenever the Router boots, it will read the contents of the NVRAM. So, we need to by-pass the NVRAM at the time of startup for the password recovery.
Step 2: Turn off the Router, and turn it on and press the Break Key on the PC
within 60 seconds of turning on the Router.
The > prompt with no Router name appears at the Router screen.
Step 3: Enter the command to By-Pass the NVRAM on the > prompt and
initialize the Router by command.
> o/r 0x2142 (to boot from flash)
> i (initialize the Router)
>
Step 4: Enter no in response to the System Configuration dialog prompts until the
following message appears.
Press RETURN to get started!
Step 5: Enter into the Router and copy the configuration from the NVRAM,
change the password & change the value of the configuration register &
save the configuration into NVRAM again and reload the Router.
Router>enable
Router#copy stratup-config running-config
Router#config t
Router(config)#no enable password
Router(config)#enable password cisco
Router(config)#configuration-register 0x2102
Router(config)#end
Router#write memory (Equivalent Command of copy running-config startup-config)
Router#reload
No comments:
Post a Comment