Factory Resetting a Cisco Switch

Categories Cisco
Cisco 3750 Mode Button

Steps to reset a Cisco Switch (we’re using a Cisco 3750v2 for this example). The 3750v2 is a great labbing switch – I used this model for my CCNP.

It should be noted a better way to do this would be renaming the config.text on the flash. From mode switch:

  • rename flash:config.text flash:config.old

Scenario: You need access to an IOS device and are locked out. You have physical access to the device and don’t care about the previous config – you need a vanilla config.

On windows I really like using MobaXterm this application is packed with a ton of features! Check it out: https://mobaxterm.mobatek.net/download.html

Forgot username and password
  • power off the device.
  • Hold down the mode button and plug the power back into the device.
  • wait 20 seconds and release the Mode button.
Switch Prompt
  • Initialize the flash and list the directory contents:
  • flash_init
  • dir flash:
Flash Contents

Next delete the vlan.dat and config.text.

  • del vlan.dat
  • del config.text
deleting vlan.dat and config.text

Issue boot command to reboot the device:

  • boot
Cisco boot command

Success – A Vanilla’d Device