This is an old revision of the document!
Cisco IOS Password recovery for 2900XL, 3500XL, 2940, 2950, 2960, 2970, 3550, 3560, and 3750 series switches
Power the switch and bring it to switch: prompt
switch: flash_init switch: load_helper switch: dir flash: switch: rename flash:config.text flash:config.old switch: boot
After booting the switch enable rename flash:config.old flash:config.text
Sw1# conf t !−−− To overwrite existing secret password Sw1(config)# enable secret
<new_secret_password> !−−− To overwrite existing enable password
Sw1(config)# enable password <new_enable_password>
!−−− To overwrite existing vty password Sw1(config)# line vty 0 15 Sw1(config−line)# password <new_vty_password> Sw1(config−line)# login !−−− To overwrite existing console password Sw1(config−line)# line con 0 Sw1(config−line)# password <new_console_password>
Write the running configuration to the configuration file with the write memory command.
Sw1# write memory Building configuration… [OK] Sw1
