Public domain
Attach a terminal or PC with terminal emulation to the console port of the switch:
Bits per second (baud): 9600
Data bits: 8
Parity: None
Stop bits: 1
Flow Control: Xon/Xoff
Unplug the power cable.
Hold down the mode button located on the left side of the front panel, while you reconnect the power cable to the switch and bring it to the switch: prompt.
flash_init
load_helper
dir flash:
rename flash:config.text flash:config.old
boot
Enter "n" at the prompt to abort the initial configuration dialog.
enable
rename flash:config.old flash:config.text
copy flash:config.text system:running-config
change passwords:
conf t
enable secret <new_secret_password>
enable password <new_enable_password>
line vty 0 15
password <new_vty_password>
login
line con 0
password <new_console_password>
exit
write memory
BY: Pejman Moghadam
TAG: catalyst-3560, password-recovery
DATE: 2014-01-06 09:26:40