1, hold down the switch front panel to the left of the mode key, and then turn on the switch power.
2, enter the boot mode, input "Flash_init", the initialization of Flash information:
Switch:flash_init
[3], enter the "load_helper" command:
Switch:load_helper
(Some model switches do not need to execute this command.) Check to see if the information prompts for "Load_helper" after entering boot mode. If you have, you need to enter. No input is required. )
Example: Informational hints are displayed as
Flash_init
Load_helper
Boot
You need to enter the "load_helper" command
As shown in the figure above, you do not need to enter the "load_helper" command
4, the implementation of "DIR Flash:" Command:
After executing the "DIR Flash:" Command, we should be able to see Vlan.dat,ios mirrors and Config.text files. The key to the switch password recovery is to save the Config.text file for this password.
Switch:dir Flash:
5, to save the password Config.text file to perform file name substitution:
Switch:rename Flash:/config.text Flash:/config.old
6, leave boot mode, start switching equipment:
Switch:boot
7, switching equipment after the start of the switch into the privileged mode, copy the configuration file into memory
switch# Copy Flash:config.old System:running-config
8. Change Password
Switch#config Terminal
Switch (config) #enable password [password]
9, Save the configuration:
Switch#write Mem
10, change back/delete profile [can be omitted, because the switch configuration is copied from the Config.old]
switch# Rename Flash:/config.old Flash:/config.text
switch# Delete Flash:/config.old
Ps:
Cisco Official Simulator Packet Tracer (PT) currently only simulates the router's password recovery and cannot simulate the switch's password recovery.
This article is from the "Network" blog, please be sure to keep this source http://netlin.blog.51cto.com/118225/959251