NOTE: Mr. Bray recommends disabling the ability to recover the password/config with one of these commands (varies):
no service password-recovery
or
system disable password recovery switch all
Apply power to the switch. Immediately press the Mode button while the System LED is flashing. Hold the Mode button until all the system LEDs turn on and remain solid; then release it.
- Initialize flash
Switch: flash_init
- Ignore the startup configuration
Switch: SWITCH_IGNORE_STARTUP_CFG=1
- Boot packages.conf
Switch: boot flash:packages.conf
- Terminate the initial configuration dialog by answering No.
Would you like to enter the initial configuration dialog? [yes/no]: No
- At the switch prompt, enter privileged EXEC mode.
Switch> enable
Switch# - Copy the startup configuration to running configuration.
Switch# copy startup-config running-config
Destination filename [running-config]?
Press Return in response to the confirmation prompts. The configuration file is now reloaded, and you can change the password. - Enter global configuration mode and change the enable password.
Switch# configure terminal
Switch(config)# - Write the running configuration to the startup configuration file.
Switch# copy running-config startup-config
- Confirm that manual boot mode is enabled.
Switch# show boot
BOOT variable = flash:packages.conf;
Manual Boot = yes
Enable Break = yes - Reload the switch.
Switch# reload
- Return the Bootloader parameters (previously changed in Steps 2 and 3) to their original values.
Switch: SWITCH_DISABLE_PASSWORD_RECOVERY=1
Switch: switch: SWITCH_IGNORE_STARTUP_CFG=0 - Boot the switch with the packages.conf file from flash.
Switch: boot flash:packages.conf
- After the switch boots up, disable manual boot on the switch.
Switch(config)# no boot manual