You are on page 1of 8

Password Recovery & Reset

 Requirements

Physical Requirements
1 Switch

2 Console

3 Power Supply cord

4 Laptop/PC
Software Requirements
1 PuTTy

 Connectivity Diagram
 Standard of Procedure
Step 1: Console cord from laptop to switch Console Port

Step 2: Connect Power cord to Switch

Step 3: In search look for Device Manager and verifying COM Port
Step 4: Open PuTTy Connection type Serial and fill COM port details. Click on Open.

 Password Recovery for Switch


Step 5: Unplug the power cable of the switch.

Step 6: Hold down MODE button, plugin the cable wait for a couple of seconds and then
release the MODE button.

Or,

Press-release the MODE button a few times (25-30).


Step 7:  Your display on your PuTTy Terminal will break into Switch & should look like
this

Note: if the system will autoboot in 15 secs, Send a break character i.e. Ctrl+C to prevent
autobooting.

Step 8: Issue the following commands

Switch: flash_init % Output from other switches will vary slightly %

Switch: load_helper

Switch: dir flash: % current version of software, configuration file %

Note: flash directory may differ

Step 9: issue the following commands

Switch: rename flash:config.text.old flash:config.text

% The config.text file contains the password %

Switch: boot

Step 10: Once the switch reboots, Enter "n" or “no” at the prompt to abort the initial
configuration dialog. And “Yes” to auto termination. Press “Enter” for Return to get started.
Step 11: The Switch prompt is displayed <PuTTy screen>

Switch> en or Switch> enable

Switch# rename flash:config.text.old flash:config.text

% Press Enter to confirm %

Switch# copy flash:config.text system:running-config

% Press Enter to confirm %

Source filename [config.text]?

% Press Enter to confirm %

Destination filename [running-config]?

% Press Enter to copy %

Step 12: Get into global configuration

Switch# config t

Switch (config)# enable secret <new_secret_password>

% To overwrite existing secret password %

Switch (config)# enable password <new_enable_password>

% To overwrite existing enable password %

Switch(config)# line vty 0 15

Switch(config-line)# password <new_vty_password>

Switch(config-line)# login

Switch(config-line)# line con 0

Switch(config-line)# password <new_console_password>

Step 13: Return to Privilege mode and save your config

Switch (config-line)# exit

Switch(config)# exit
Switch# write

 To Erase the complete configuration from the Switch and make it


as a new
Note: follow steps 1-4

Step 5: Once the switch reboots, Enter "n" or “no”at the prompt to abort the initial
configuration dialog. And “Yes” to auto termination. Press “Enter” for Return to get started.

Step 6: The Switch prompt is displayed <PuTTy screen>


Switch> en or Switch> enable % To enter enable mode %
Switch# show flash: % To view files in flash %

Step 7: Switch# delete flash: config.old


% Press enter to confirm %

Step 8: Switch# delete flash: vlan.dat


% Press enter to confirm %

Step 9: Switch# delete private-config.text


% Press enter to confirm %

Step 10: Switch# write erase


% Press enter to confirm %

Step 11: Switch# reload

Note: The system reboots and enters the configuration wizard. During the boot, if you
receive the prompt Abort Auto Provisioning and continue with normal setup?(yes/no)[n],
you should respond yes to proceed.

You might also like