PASSWORD RECOVERY

PASSWORD RECOVERY


The following steps are required to reset the password of Cisco Router. 

The procedure for Fixed & Modular Router is different.


Step1:

Connect the console port of Router to com port of PC

Step2:

Configure the hyper terminal software for console communication (see steps as shown in Initial configuration)

Step3:


Switch 'ON' the rputer (if it is already 'ON', restart it by using power button).

Step4:

Press "Ctrl + Break" within 60 sec after power on.

Step5:

Router will enter Rom monitor mode.



"ROMMON1>"             (for modular routers)

or

">"                           (for fixed routers)


Step6:

For modular router, use the following ROM MON commands:

ROMMON 1> confreg 0x2142 
ROMMON 2> reset

For fixed router, use the following commands:

>o/r 0x2142
>i



Configure Register Value 0x2142 will skip executing the startup configuration from nvram during bootup.





EXAMPLE:

After the router boots up, the following message is displayed.

Would you like to enter the initial configuration dialog? [yes/no]: no

Router>enable

Router#copy startup-config running-config

Destination filename [running-config]? <Just Press Enter Key>

Old configuration file which had the password is restored

Since we are already in the privilege mode, we can setup a new privilege password.


Router# Router#configure terminal 
Router(config)#enable secret cisco  
Router(config)#line vty 0 4 
Router(config-line)#password cisco
Router(config-line)#line console 0 
Router(config-line)#password cisco 
Router(config-line)#exit

Reset the configuration register value back to the default: 
Router(config)#config-register 0x2102


Enable the Ethernet interface: 
Router(config)#interface ethernet 0/ 
Router(config-if)#no shutdown 
Router(config-if)#exit

Similarly apply the "no shutdown" command on all required interface

Save the new password in NVRAM and restart the router:
 
Router#copy running-config startup-config 
Router#reload


No comments:

Post a Comment