This article explains the steps to recover the enable and secret passwords.  The enable password password can be recovered, but the enable secret password must be replaced with a new password.

  • Switch off or shut down the router
  • Remove the compact flash that is on the back of the router
  • Power on the router
  • Once the router is on Rommon mode, reinsert the compact flash
  • Enter confreg 0x2142 at the rommon 1> prompt in order to boot from Flash.  To bypass the startup configuration
  • Enter reset at the rommon 2> prompt
  • Skip the initial setup procedure by pressing Ctrl-C
  • Enter enable at the Router> prompt
  • Enter copy startup-config running-config in order to copy the NVRAM into memory
  • Enter the show running-config command
  • Enter configure terminal
  • Enter enable secret <secret> in order to change the enable secret
    hostname(config)#enable secret innophia
    
  • Enter the no shutdown command on every interface that you use
  • Enter config-register 0x2102 or any other value you require
    hostname(config)#config-register 0x2102
    
  • Press Ctrl-z or end in order to leave the configuration mode
  • Enter copy running-config startup-config to write the NVRAM to memory