1. Enable HyperTerminal and the connection interface appears.
2. Unplug the switch from power.
3. Press the mode button on the switch, and at the same time, reseat the power cord of the switch.
4. When the SYS light on the left side of the switch flashes slowly, (careful words will find some lights flashing red), press and hold the mode button until the SYS lamp does not flash (steady state). Otherwise the early release of the button will be directly into the normal start, jump back to step 2.
5. You can release the mode button
The system will then display some indication information:
The system has been interrupted prior to initializing the Flash file system. The following
Commands would initialize the Flash file system, and finish loading the operating system
Software:
flash_init/---Initialize the Flash file system---/
load_helper/---Loading Help files---/
boot/---Boot device into normal mode---/steps:
Switch
Switch:flash_init
Switch:dir Flash:/---View Flash file name can be used to confirm the file name Config.text---/
Switch:rename Flash:config.text flash:oldconfig.text/---To rename the configuration file, of course you can not change to oldconfig.text, as long as the file name and the original is not the same can be---/
switch:boot/---Manually start the switch---/
The configuration file changed, the switch cannot find the default Config.text and the configured Dialog Wizard appears, select n then enter and then we will bypass the original password and go to:
Switch>
switch>en/--can enter privileged mode--/
Switch#rename flash:oldconfig.text flash:config.text/---Recovery switch profile---/
Switch#copy flash:config.text system:running-config/---Save configuration into dram---/
Switch#config T can then set the new password for Cisco switch (config) # enable Passwordcisco switch (config) # enable secret Cisco switch ( config) #line con 0 Switch (config) #password Cisco switch#copy Run Start or use the following method to temporarily clear the password, and then do the setup later
Switch (config) #no enable password/---kill privileged mode old password---/
Switch (config) #no enable secret/---kill plus secret code---/
Switch (config) #exit
Switch#copy Run start/---Write the currently configured file back to flash---/
Using this method to change the password does not clear the original configuration file contents. In particular, a ready-made large network is already running the switch, so the more safe point
Clear configuration command under switch: 1:erase startup-config 2:delete vlan.dat 3:reload
This article from "11393002" blog, declined reprint!
cisco2960g hack password true machine tutorial