Register now or log in to join your professional community.
-First, hook up the DB9 end of the standard light blue serial cable to your serial port. The other end of the cable should plug into the port labeled “Console” on the back of the Cisco router.
-Establish a serial connection with the router.
-The settings you need are:
Baud: 9600
Data bits: 8
Parity: No
Stop bits: 1
Flow Control: None
-Use putty for this connection-
-Reboot the router and press the Break key to interrupt the boot sequence.
Type confreg 0x2142. This tells the router to bypass NVRAM during bootup. In other words, your existing configuration won't be loaded. The good news is that it won't be deleted either.
-Type reset to reboot the router. Answer No when prompted to run setup.
-Type copy start run. This loads your startup configuration into memory. Now, if you type a show run config, you'll see the router configuration. Also, you should notice that your router name is now in the prompt instead of the default “Router”.
-Change the enable secret - “enable secret new_password”
-Change the register back to 0x2102:
-config-register 0x2102
-When the router reboots it will load the old configuration with the new password.
-Save the password so that it will be persistent during reboots, type copy run start
-Reboot the router by typing reload at the enable prompt.
Step-by-Step Procedure Perform these steps in order to recover your password:
1. Either switch off or shut down the router.
2. Remove the compact flash that is on the rear of the router.
3. Switch on the router.
4. Once the router is on Rommon mode, reinsert the compact flash.
5. Type confreg 0x2142 at the rommon 1> prompt in order to boot from Flash.This step bypasses the startup configuration where the passwords are stored.
6. Type reset at the rommon 2> prompt.The router reboots, but ignores the saved configuration.
7. Type no after each setup question, or press Ctrl-C in order to skip the initial setup procedure.
8. Type enable at the Router> prompt. You are in enable mode and should see the Router# prompt.
9. Type configure memory or copy startup-config running-config in order to copy the nonvolatile RAM (NVRAM) into memory. warning Warning: Do not enter copy running-config startup-config or write. These commands erase your startup configuration.
10.Issue the show running-config command. The show running-config command shows the configuration of the router. In this configuration, the shutdown command appears under all interfaces, which indicates all interfaces are currently shut down. In addition, the passwords (enable password, enable secret, vty, and console passwords) are in either an encrypted or unencrypted format. You can reuse unencrypted passwords. You must change encrypted passwords to a new password.
11.Type configure terminal. The hostname(config)# prompt appears.
12.Type enable secret <password> in order to change the enable secret password. For example: hostname(config)#enable secret cisco
13.Issue the no shutdown command on every interface that you use. If you issue a show ip interface brief command, every interface that you want to use should display up up.
14.Type config-register <configuration_register_setting> . Where <configuration_register_setting> is either the value you recorded in step 2 or 0x2102 . For example: hostname(config)#config-register 0x2102
15.Press Ctrl-z or end in order to leave the configuration mode. The hostname# prompt appears.
16.Type write memory or copy running-config startup-config in order to commit the changes.
Depending on the router version:
Attach a terminal or PC with terminal emulation to the console port of the router. You can use Putty.
Use these terminal settings:
9600 baud rate
No parity
8 data bits
1 stop bit
No flow control
2- If you can access the router, type show version at the prompt, and record the configuration register setting. See Example of Password Recovery Procedure in order to view the output of a show version command.
or you can do the following:Complete these steps in order to recover your password:
Shut down the router.
Remove the compact flash that is at the back of the router.
Power on the router.
Once the Rommon1> prompt appears, enter this command:
confreg 0x2142
Insert the compact flash.
Type reset.
When you are prompted to enter the initial configuration, type No, and press Enter.
At the Router> prompt, type enable.
At the Router# prompt, enter the configure memory command, and press Enter in order to copy the startup configuration to the running configuration.
Use the config t command in order to enter global configuration mode.
Use this command in order to create a new user name and password:
router(config)#username cisco privilege 15 password ciscoUse this command in order to change the boot statement:
config-register 0x2102