Password Recovery Procedure for the Cisco Router

Password Recovery Procedure for the Cisco Router

Perform these steps in order to recover your password:

c2900-password-recovery-01.gif
  1. Switch on the router.
  2.   Press ctrl + pausebreak on the keyboard
  3. rommon 1>confreg 0x2142    ;in order to boot from Flash.
  4.  rommon 1> reset                ;The router reboots, but ignores the saved configuration.
  5. Router> enable                      ;You are in enable mode and should see the Router#
  6. Router# configure memory or copy startup-config running-config  ;in order to copy the nonvolatile RAM (NVRAM) into memory.
  7. warning Warning:  Do not enter copy running-config startup-config or write. These commands erase your startup configuration.
  8. Type enable secret 
    hostname(config)#enable secret cisco
  9. Type config-register
    hostname(config)#config-register 0x2102
  10. Type write memory  in order to commit the changes.

Resetting Password of Cisco Switch

Resetting Password of Cisco Switch  



1: Connect the console cable to your PC and router
2  Download Putty and Start a Serial Connection
3. Hold the mode button on the front of the  switch
4. Power on the switch
5. Once characters are displayed on the screen release the mode button
6. Press ctrl + pausebreak on the keyboard
7. Enter the following commands 
                                   Switch: flash_init 
                                   Switch:dir flash: 
                                   Switch:rename flash:config.text flash:config.backup 
                                   Switch:boot 
8. Rename Configuration files & Remove passwords

                                 Would you like to enter the inital configuration dialog? 
no 
                                 Switch > enable 
                                 Switch#renameflash:config.backup config.text 
                                 Switch#copy flash:config.text system:running-config 
                                 SW1#config terminal 
                                 SW1(config)#no enable secret. 
                                 SW1(config)#exit 

                                 SW1(config)#wr