Recovering the password on the router
First, restart, hold Ctrl+break
Second, Rommon1>confreg 0x2142
Rommon1>reset
Third, show Startup-config
Copy Startup-config Running-config
Username xxxx pri-pass XXXX
Config-register 0x2102
Reload
----------------------------------------------------------------------------------------
Recovering passwords on the COS switch
For CatOS Catalyst Switches, the password recovery steps are as follows.
1th Step: Properly connect to the switch (hardware and software).
2nd step: Reopen the switch to operate during the power-on self-test.
3rd step: Within 30 seconds of the switch boot, complete the following work in sequence.
At the password prompt, press ENTER to enter an empty password.
Enter enable at the prompt to enter privileged mode.
At the password prompt, press ENTER to enter an empty password.
Use the Set password command or the set enablepass command to change the password.
At the prompt prompt press ENTER to enter the password.
4th Step: Save the configuration, complete.
Because the administrator needs to enter the command within 30 seconds, in order to avoid the input error and other operational effects, you can copy the above command into a txt text file, and paste it in the Operation console interface when used. (This does not understand, do not know how to operate)
3. Cisco IOS Switch Password recovery
Cisco iOS switches are more complex than the CatOS switch password recovery, even more than a router's password recovery.
1th Step: Disconnect the switch power cable.
2nd step: While reconnecting the power cord, press and hold the switch's mode button. The mode button can be released 1 seconds or 2 seconds after the LCD light on the 1X interface is no longer lit. The system LEDs are flashing and the console appears with the following information.
The system has been interrupted prior to initializing the flash filesystem. The following commands would initialize the Flash
FileSystem, and finish loading the operating system software:
Flash_init
Boot
3rd Step: Enter Flash_init, initialize the Flash file system.
Switch:flash_init
Initializing Flash ...
FLASHFS[0]: Directories files, 4
Flashfs[0]: 0 Orphaned files, 0 orphaned directories
FLASHFS[0]: Total bytes:15998976
Flashfs[0]: Bytes used:6639616
Flashfs[0]: Bytes available:9359360
Flashfs[0]: Flashfs fsck took seconds.
... done Initializing Flash.
Boot Sector Filesystem (BS:) installed, Fsid:3
4th step: Enter Load_helper, mount and initialize the secondary image (helper Imager), which is a mini iOS image stored in ROM, usually with disaster recovery.
5th step: Enter Dir Flash: (with a colon) to display a list of files and directories in the Flash file system.
Switch:dir Flash:
Directory of flash:/
2-rwx 0 <date> Env_vars
3-rwx 344 <date> System_env_vars
4-RWX 5 <date> Private-config.text
6-rwx 2149 <date> Config.text
8 drwx 192 <date> C3550-I9Q3L2-MZ.121-20.EA1A
9359360 bytes available (6639616 bytes used)
6th step: Enter Rename Flash:config.text flash:config.old, this file name can be determined by itself, modify the configuration file name. This file includes the settings for the password.
7th step: Enter boot and restart the system.
8th step: After restarting, the system prompts the following.
---System Configuration Dialog---
Would to enter the initial configuration dialog? [Yes/no]: No
Would to terminate AutoInstall? [Yes]:
Enter no without entering the Setup Mode Wizard Configuration dialog box. Press "Enter" key to enter user mode.
9th step: At the prompt of the switch, enter enable into privileged mode.
10th Step: Enter Rename Flash:config.old flash:config.text to change the configuration file back to the original default name.
11th Step: Copy the configuration file into RAM, execute copy startup-config Runnig-config, and now the configuration file is loaded.
12th step: Change the password.
13th Step: Save the configuration.
This article is from the "Study notes-Communication" blog, please be sure to keep this source http://hatakexiu.blog.51cto.com/8687633/1722084
Cisco recovery password