In this topic I will explain list of steps to recover Cisco router password (enable and enable secret) in case you forget password.
List are the steps :
- Turn off the router.
- Remove the compact flash of the router (removing flash will ensure that your router boots into rommon mode ).
- Turn on the router.
- When router is on it will be in Rommon mode,
rommon 1>
- Reinsert the compact flash.
- Type Confreg0x2142 at the rommon prompt to bypasses the startup configuration where the passwords are stored.
rommon 1>confreg 0x2142
- Type reset at the rommon prompt. The router reboots, but ignores the saved configuration.
rommon 2>reset
- Router will run the setup dialog ,type no or press Ctrl-C in order to skip the initial setup .
Would you like to enter the initial configuration dialog? [yes/no]: n
Press RETURN to get started!
- Type enable at the Router> prompt to proceed to Privileged exec mode.
Router>enable
Router#
- Type configure memory or copy startup-config running-config to copy the startup configuration to the running configuration.
Router#copy startup-config running-config
“ Do not enter copy running-config startup-config or write. These commands will erase your configuration”
- View configuration file by issue the command show running-config.
“passwords (enable password, enable secret, vty, and console passwords) are in either an encrypted or unencrypted format. You can reuse unencrypted passwords”
- From the privilege prompt enter global configuration by typing config t
Router#config t
Router(config)#
- Issue command enable secret <password>in order to change the enable secret
Router(config)#enable secret cisco
Router(config)#
- All interfaces are in shutdown state ,Issue the no shutdown command on every interface to enable.
- Type config-register 0x2102 to return to normal operation.
- In order to leave the configuration mode type end or press Ctrl-z .
- Save configuration by write memory or copy running-config startup-config.
- Reload the router and verify all passwords.