Router Password Recovery
1. you can connect your router with consol port to configure it .2.Then turn on and turn off and turn on your router .3.Then when the IOS decompressed press Ctrl + Puase break key .(you are now in the Rommon>)4.Then change confreg to 0x2142 then press Enter(so what is the meaning of this 0x2142 Value this is meaning Router behaviouresthis Value Translated to ( Causes system softwareto ignore NVRAM contents )this is mean we ignore the NVRAM which contains startup-configeration )5.Then type reset to restart your router then press enter to restart your router without the NVRAM or Startup-Configeration .6. then the router enter to default mode like this
--- System Configuration Dialog ---
Continue with configuration dialog? [yes/no] : n
7.Then type enable to enter to the privellege mode # .
8. Then type copy copy startup-config running-config (you should make that causes you ignored your NVRAM which contain startup-config so you should copy your startup-config to running-config )
9. Then type configure terminal to enter to the global config .
10. you can enter to your passwords to change it or remove all passwords like (line console 0 or line vty 0 4 ..etc ).
11. after you made that go to Router(config)# then restore the config-register value to the default value ( 0x2102 ) .
12. Then type exit .
13.Then type in privellege # mode copy running-config startup-config .
2. then press enter ..14.Then type reload and you are Done !!!!!
practical Tutorial Example on Packet tracer :
- Press RETURN to get started !
Router > enableRouter # configure terminalRouter (config) # line console 0Router(config-line)#password ( bla bla bla bla bla bla bla )Router(config-line)#loginRouter(config-line)#exitRouter(config)#line vty 0 4Router(config-line)#password (bla bla bla bla bla bla bla bla bla)Router(config-line)#loginRouter(config-line)#endRouter#copy running-config startup-configDestination filename [startup-config]? Press enterBuilding configuration...[OK]Router#reloadProceed with reload? [confirm] Press enter to reload
cumonto Recover your passwords :
1. turn off and turn on the router
2. while the router decompress the IOS like this
3. press on CTRL + Pause break
4.you will enter to the Rommon Mode
monitor: command "boot" aborted due to user interrupt
rommon 1 > confreg 0x2142 then press enter
rommon 2 > reset
the router reset now and decompress the IOS and enter to
the normal default router mode
5. press (n) then enter
6.Router >enable
7.Router#copy startup-config running-config
Destination filename [running-config]?
513 bytes copied in 0.416 secs (1233 bytes/sec)
8.Router #config terminal
9.Router(config)#line console 0
10.Router(config-line)#no password i remove line console 0 password
11.Router(config-line)#exit
12. Router(config)#line vty 0 4
13.Router(config-line)#no password i remove line vty 0 4 (telnet)
14.Router(config-line)#exit
15.Router(config)#config-register 0x2102 i restore config-register value to default 0x2102
16.Router(config)#end
17.Router#copy running-config startup-config
Destination filename [startup-config]?
Building configuration...
[OK]
18.Router#reload to take effect
19.You Are Done !!!!!!!!!!!!!!!!!!!!!!!!!!!
No comments:
Post a Comment