3-24
Cisco 7401ASR Installation and Configuration Guide
OL-5419-01 B0
Chapter3 Starting and Configuring
Replacing or Recovering a Lost Password
Router# show startup-config
Step12 Scan the configuration file display looking for the passwords (the enable passwords are usually near the
beginning of the file, and the console login or user EXEC pa ssword is nea r th e en d). T he pass word s
displayed look something like this:
enable secret 5 $1$ORPP$s9syZt4uKn3SnpuLDrhuei
enable password 23skiddoo
.
.
line con 0
password onramp
The enable secret password is encrypted and cannot be recovered; it must be replaced. The enable and
console login passwords may be encrypted or clear text. Proceed to th e next ste p to r epla ce an ena ble
secret, console login, or enable password. If there is no e na ble sec ret passwor d, note th e enab l e an d
console login passwords, if they are not encrypted, and proceed to Step 17.
Caution Do not execute the next step unless you have determined you must change or replace the enable, enable
secret, or console login passwords. Failure to follow the steps as shown might ca use you t o er ase y our
router configuration
Step13 Enter the configure memory command to load the startup configuration file into running memory. Th is
action allows you to modify or replace passwords in the configuration.
Router# configure memory
Step14 Enter the privileged EXEC command configure terminal to enter configuration mode:
Hostname# configure terminal
Step15 Change all three passwords using the following commands:
Hostname(config)# enable secret newpassword1
Hostname(config)# enable password newpassword2
Hostname(config)# line con 0
Hostname(config-line)# password newpassword3
Change only the passwords necessary for your configuration. You can remove individual passwords by
using the no form of the above commands. For example, enterin g th e no enable secret command
removes the enable secret password.
Step16 You must configure all interfaces to be not administratively shut down as follows:
Hostname(config)# interface fastethernet 0/0
Hostname(config-int)# no shutdown
Enter the equivalent commands for all interfaces that were originally configured. If you omit this step,
all interfaces are administratively shut down and unavailable when the router is re star ted.
Step17 Use the config-register command to set the configuration register to the original value noted in Step3
or Step 8, or to the factory default value 0x2102 as follows:
Hostname(config)# config-register 0x2102
Step18 Press Ctrl-Z (hold down the Control key while you press Z) or enter end to exit configuration mode
and return to the EXEC command interpreter.