Factory reset a Cisco 2960 switch
Prereqs
- a PC (BIOS/UEFI) running Linux Mint 21
- minicom terminal emulation software
- a working IOS, so if necessary first (re)install an IOS operating system
Following commands can be executed from within IOS or from within ROMMON-mode.
Erase startup configuration
Check if the startup configuration is empty. If not, the file exists. In IOS the file is known as startup-config. In ROMMON, the file is config.text.
If necessary, erase the file using "erase startup-config", "erase nvram:" or "write erase" from IOS. In ROMMON, use the delete command.
Erase vlan.dat
Check if the VLAN database file exists.
If necessary, delete the VLAN database.
Enable password recovery mechanism
Check if the password recovery mechanism is enabled or disabled.
If necessary, enable it.
Set default SDM template
Show the current SDM prefer template. For example:
If necessary, change it back to the default. We will reload the switch at the end.
Verify.
Set default environment variables
Command "show boot" should look something like this. Most of these variables can be set from within IOS and/or ROMMON.
Example1: BOOT path-list.
Reload
Clean switch
Say hi to the wizard. Answer "no".