You are on page 1of 15

Router Password Recovery

Config-register
n n n n n n

0 3: 6: 8: 11-12: 13: 15:

Boot field Ignore NVRAM contents Break disabled Console line speed Boot ROM if network fails Diagnostic and ignore NVRAM

Config-register

0x2142 : Ignore NVRAM contents 0x


0 0 1 0 0 0 0 1 0 1 0 0 0 0 1 0

0x2102 : Boot system from flash 0x


0 0 1 0 0 0 0 1 0 0 0 0 0 0 1 0

Password Recovery
1. 2. 3.
v v

Cold boot the router Press CTRL-BREAK within 60 seconds Change configuration register:

o/r 0x2142 (>) C2600: confreg 0x2142 (rommon #>)


C2500:

4. 5. 6.

Initial the router: i or reset Do not use setup mode Access to privileged mode (Router> enable)

Password Recovery (cont.)


7.

Router# copy startup-config running-config This step is to reserve the configuration.

If you w an t to m ake rou ter con fi u rati to i facto ry d efau l ski s g on ts t, p this step and next step => go to step 9
8. 9.

10.

change enable password change configuration register to 0x2102 Router(config)# config-register 0x2102 This step is to make router load configuration from NVRAM in next reboot Router# copy running-config startup-config

Switch Password Recovery

Switch Password Recovery


n n n n n

Plug out the switch Press and Hold the Mode button Plug in the switch Wait until the led light of port 1 turns off Release the Mode button

Switch Password Recovery


The system has been interrupted prior to initializing the flash filesystem. The following commands will initialize the flash filesystem, and finish loading the operating system software: flash_init load_helper boot Switch:

Switch Password Recovery


switch: flash_init Initializing Flash... flashfs[0]: 87 files, 5 directories flashfs[0]: 0 orphaned files, 0 orphaned directories flashfs[0]: Total bytes: 15998976 flashfs[0]: Bytes used: 14947328 flashfs[0]: Bytes available: 1051648 flashfs[0]: flashfs fsck took 20 seconds. ...done Initializing Flash. Boot Sector Filesystem (bs:) installed, fsid: 3 switch:

Switch Password Recovery


switch: load_helper switch: dir flash:
Directory of flash:/ 2 3 4 5 6 drwx -rwx -rwx -rwx -rwx 128 <date> 7134015 <date> 10 <date> 314 <date> 400 <date> html c3550-ipservicesk9-mz.122-25.SEE2.bin env_vars system_env_vars config.text

1051648 bytes available (14947328 bytes used)

Switch Password Recovery


switch: rename flash:config.text flash:config.old Switch: boot
Loading "flash:/c3550-ipservicesk9-mz.12225.SEE2.bin"...########################################## ###################################################### ##############################

.. .. Switch finishes booting

Switch Password Recovery


Model revision number: D0 Motherboard revision number: A0 Model number: WS-C3550-24PWR-SMI System serial number: CAT0746X1A4
--- System Configuration Dialog --Would you like to enter the initial configuration dialog? [yes/no]: n Switch> enable Switch#

Switch Password Recovery


Switch# dir flash:
Directory of flash:/ 2 3 4 5 6 drwx -rwx -rwx -rwx -rwx 128 <date> 7134015 <date> 10 <date> 314 <date> 400 <date> html c3550-ipservicesk9-mz.122-25.SEE2.bin env_vars system_env_vars config.old

1051648 bytes available (14947328 bytes used)

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

Switch Password Recovery

Access configuration mode and change password

Switch# configure terminal Switch(config)# enable password cisco Switch(config)# exit Switch# copy run start

15

You might also like