How to bypass cisco switch passwords

The default configuration for the switch allows an end user with physical access to the switch to recover from a lost password by interrupting the boot process during power-on and by entering a new password. These recovery procedures require that you have physical access to the switch. 

You enable or disable password recovery by using the service password-recovery global configuration command. Follow the steps in this procedure if you have forgotten or lost the switch password. 

Step 1 Connect a terminal or PC with terminal-emulation software to the switch console port. 

Step 2 Set the line speed on the emulation software to 9600 baud. 

Step 3 Power off the switch. Reconnect the power cord to the switch and, within 15 seconds, press the Modebutton while the System LED is still flashing green. Continue pressing the Mode button until the System LED turns briefly amber and then solid green; then release the Mode button. 

Step 1 Initialize the flash file system:  switch: flash_init

Step 2 If you had set the console port speed to anything other than 9600, it has been reset to that particular speed. Change the emulation software line speed to match that of the switch console port. 

Step 3 Load any helper files:  switch: load_helper

Step 4 Display the contents of flash memory:  switch: dir flash:

Step 5 Rename the configuration file to config.text.old. 

Step 6 Boot the system:  switch: boot

You are prompted to start the setup program. Enter N at the prompt: 

Congratulations you now have access to the switch.