Switch Password Recovery (all classes except Intro to Networking)
Note: The following procedure does not apply to the pods used in the first year Intro to Networking courses, which use different equipment. See the "1st Year Router & Switch Password Recovery" knowledgebase article for details.
Cisco Switch Password Recovery Procedure
All passwords used in the lab should be either cisco or class. In the event that neither of these passwords work, you can perform a password recovery by following this procedure:
- Ensure you have a working connection through the Console Manager to the affected switch. If the switch is powered on you should see output from the switch on the screen.
- Using the power menu, power the switch off and then back on again. Note that if the power menu is not working you can also physical unplug the switch and plug it in again if you have physical access.
- When the switch power comes back on, immediately press and hold the mode button on the left side of the front panel of the switch.
- Continue holding the mode button until the SYST light turns solid orange, then let go (~45 seconds).
- At the switch: prompt, enter the command
SWITCH_IGNORE_STARTUP_CFG=1
(this is case sensitive, so type it in all caps) - Enter the command
boot
to begin the boot process - After about five minutes you should be returned to the switch console with no configurations. Enter
no
when asked if you want to enter the initial configuration dialog and press Enter to access the switch command prompt - Type the
erase startup-configuration
anddelete vlan.dat
commands to erase the configuration from the switch. - Enter
config t
to move into global configuration mode and enterno system ignore startupconfig switch all
to reset the switch bootup sequence. - Type
exit
thenreload
to reload the switch.
NOTE: After step 6 you may see a message that password recovery is disabled and a prompt asking if you want to erase the startup configuration. Enter y
to automatically erase the configuration and reload. This prompt will only appear momentarily and if you miss it you will be returned to the switch console with the password still applied. You will have to reboot and try again if this happens.
Please ensure that you always use either cisco or class as your passwords when configuring the devices, and always make sure to erase your configurations before you leave class.