Ontario Tech Logo

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:

  1. 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.
  2. 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.
  3. 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.
  4. Continue holding the mode button until the SYST light turns solid orange, then let go (~45 seconds).
  5. At the switch: prompt, enter the command SWITCH_IGNORE_STARTUP_CFG=1 (this is case sensitive, so type it in all caps)
  6. Enter the command boot to begin the boot process
  7. 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
  8. Type the erase startup-configuration and delete vlan.dat commands to erase the configuration from the switch.
  9. Enter config t to move into global configuration mode and enter no system ignore startupconfig switch all to reset the switch bootup sequence.
  10. Type exit then reload 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.