Lab 8.1.2 Router Password Recovery
Lab 8.1.2 Router Password Recovery
Objectives:
Background:
There will be circumstances where the password for a router needs to be reset. The
password may have been forgotten or the network administrator may have left the company.
The password recovery procedure requires physical access to the router because a directly
connected console cable is used. Since password recovery methods are published on the
Internet and in books, routers need to be in a secure location with physical access limited to
authorized staff.
Tools / Preparation:
Prior to starting this lab you should have the equipment for the standard five-router lab
available. The NVRAM of the router you will be configuring should be erased. Before
beginning the lab, the instructor or lab assistant should login to each router, enter the
privileged EXEC mode, issue the erase startup-config command, and then issue the reload
command. This will force the routers to come up with a blank configuration. The answer
section includes examples of the detailed command sets that the students will have to
master. The instructor will review the router configuration when finished.
Prior to starting this lab you will need to connect a PC workstation (with the HyperTerminal
PE program loaded) to a router using the router's console interface with a roll-over (console)
cable. All lab work is done through the HyperTerminal PE program that is configured to
connect to the router. You may want to review Chapter 13 in the Cisco Networking Academy
First-Year Companion Guide. Work individually or in teams. Be familiar with the following
commands:
configregister
show version
configure terminal
enable secret
Resources Required:
Routing basics
General information on routers
2500 series routers
1600 series routers
Terms and acronyms
IP routing protocol IOS command summary
Hilgraeve HyperTerminal PE download
IOS password encryption facts
Notes:
Explanation: Connect to the router and login. Enter the password cisco if prompted.
Task: Turn off the router for a short period of time and turn it back on again.
Explanation: When the router is restarting, the boot up sequence can be interrupted.
Task: Within 60 seconds of turning the router back on, press and hold the Control key, then
press the Break key.
Explanation: A break character is sent to the router, interrupting the boot up sequence.
Type confreg 0x2142 at the rommon 1> prompt to boot from Flash without loading
the configuration.
Type reset at the rommon 2> prompt. The router reboots but ignores its saved
configuration.
Type no after each setup question or press Ctrl-C to skip the initial setup
procedure.
NOTE:
For purposes of this lab, we will not be saving the router configuration with the new password. We
need to change the password back to the value class. Enter global config mode by entering the
command config t. Enter the command enable secret class, then press Control Z to exit
global configuration mode. Save the new configuration by entering the command copy running
config startupconfig (abbreviated: copy run start ).
Task: Examine the current status of the configuration register and change it back to its
original value.
Explanation: The configuration register is still set to ignore the startup configuration
contained in NVRAM. You need to change it back to its original value.
Enter global config mode by typing the command config terminal (abbreviated: config
t). Enter the command configregister 0x2102. (Note: use the original value you
recorded in step 2). Press Control Z to exit global config mode. Enter the command sh ver
to see the new value of the configuration register.
Task:
Explanation: You need to verify that the new password you created in step 10 works. Enter
privileged EXEC mode by entering the command enable (abbreviated: ena). Enter the
password class. If you properly set the enable password, you should see the router prompt
change. View the status of the configuration register by entering the command show
version (abbreviated: sh ver).
9. Has the configuration register changed back to its original value you recorded in step 2?