Scenario:
Make: Cisco
Model: Cisco 2960 Series
Mode: Command Line Interface [CLI]
Description: In this article, we will discuss the stepwise method of how to factory reset Cisco 2960 switch. There are various methods through which we can factory reset the 2960 switches. We will discuss here 3 methods.
This procedure is useful when you want to remove an undesirable configuration that is present in the switch. If you have configured a switch and the configuration has become very complex, or if you want to move a switch from one network to other, you can reset the switch to factory defaults and configure it as a new switch. This document provides information and sample command logs to reset your switches. To reset the Catalyst switches to factory defaults, you need access to the switch console through either a physical console or a Telnet connection.
Manual Reset
Step1: Ethernet Cables
Disconnect all Ethernet cables from the switch
Step2: Reset
Press and hold the reset button for 15-20 seconds and release the hold button as soon as all the port LEDs light up
Switch will reboot and it will reset to the factory default settings.
SSH/CLI Method
Step1: SSH
SSH onto the switch and login
login as: admin
Using keyboard-interactive authentication.
Password:edledge.com
Step2: Privileged EXEC mode
Jump into the privileged mode
edledge-switch>enable
Password:edledge
edledge-switch#
Step3: Erase Configuration
Run the command as shown below to erase the configuration on 2960 switches
edledge-switch# write erase
Erasing the nvram filesystem will remove all files! Continue? [confirm] y [OK]
Erase of nvram: complete
Step4: Reload
Execute “reload” command on the switch
edledge-switch# reload
System configuration has been modified. Save? [yes/no]: n
Proceed with reload? [confirm] y
Important Note: Do not save the configuration at this prompt. Otherwise, the switch reloads with the current running configuration and does not reset to default.
Console Method
Step1: Console Cable
Connect console cable with the switch
Step2: Power On
Power on the switch while holding the “mode” button.
Step3: Initialize Flash File System
Initialize the flash file system using the command below
Switch: flash_init
Step4: Delete Config file
Delete the config file from flash using the command below
Switch: delete flash:config.text
Step5: Delete VLAN
Delete the vlan file using the command below
Switch: delete flash:vlan.dat
Step6: Reload
Reload the switch
This will factory reset the Cisco 2960 series switches.
Other Important Topics
- How to Configure VPN Between Microsoft Azure & Cisco ASA
- Configure Redundant or Backup WAN/ISP Link on Cisco ASA – GUI
- Configuring Packet Capture or PCAP on Cisco ASA Firewalls – CLI
- How to Shutdown Cisco ASA SFR or FirePower Module
- %SW_MATM-4-MACFLAP_NOTIF or MAC Flapping Cisco Switch
Source: Knowledge Base, Internet, Cisco
EA00166