How to reset cisco 2960 to factory default

6,196
-1

Published on

How to reset cisco 2960 to factory default?

Published in: Technology
0 Comments
1 Like
Statistics
Notes
  • Be the first to comment

No Downloads
Views
Total Views
6,196
On Slideshare
0
From Embeds
0
Number of Embeds
0
Actions
Shares
0
Downloads
31
Comments
0
Likes
1
Embeds 0
No embeds

No notes for slide

How to reset cisco 2960 to factory default

  1. 1. Reset a Cisco 2960 Switch to Factory Default Flattening a switch before re-deployment is one of those simple tasks that I always find myself having lookup on the web, so I thought I’d save myself some time in future and document it here. Step1. Connect up your console cable and power on the switch, whilst holding down the “mode” button: This interrupts the boot process before the Flash file system can initialize, and after a short while (continue holding the “mode” button) you will see the following prompt: Using driver version 1 for media type 1 Base ethernet MAC Address: 4c:30:2d:81:ef:80 Xmodem file system is available. The password-recovery mechanism is enabled. The system has been interrupted prior to initializing the flash filesystem. The following commands will initialize the flash filesystem, and finish loading the operating system software: flash_init boot switch: Step2. Initialize the flash file system with the command: flash_init switch: flash_init Initializing Flash... mifs[2]: 10 files, 1 directories mifs[2]: Total bytes : 1806336 mifs[2]: Bytes used : 612352 mifs[2]: Bytes available : 1193984 mifs[2]: mifs fsck took 1 seconds. mifs[3]: 0 files, 1 directories mifs[3]: Total bytes : 3870720 mifs[3]: Bytes used : 1024 mifs[3]: Bytes available : 3869696
  2. 2. mifs[3]: mifs fsck took 0 seconds. mifs[4]: 5 files, 1 directories mifs[4]: Total bytes : 258048 mifs[4]: Bytes used : 9216 mifs[4]: Bytes available : 248832 mifs[4]: mifs fsck took 0 seconds. mifs[5]: 5 files, 1 directories mifs[5]: Total bytes : 258048 mifs[5]: Bytes used : 9216 mifs[5]: Bytes available : 248832 mifs[5]: mifs fsck took 1 seconds. -- MORE -- mifs[6]: 566 files, 19 directories mifs[6]: Total bytes : 57931776 mifs[6]: Bytes used : 28429312 mifs[6]: Bytes available : 29502464 mifs[6]: mifs fsck took 21 seconds. ...done Initializing Flash. Step3. Delete the config.text file from the flash directory: switch: del flash:config.text Are you sure you want to delete "flash:config.text" (y/n)?y File "flash:config.text" deleted Step4. Delete the vlan.dat file from the flash directory: switch: del flash:vlan.dat Are you sure you want to delete "vlan.dat" (y/n)?y File "flash:vlan.dat" deleted Step5. Reboot the switch and you're done: switch: boot Loading "flash:c2960s-universalk9-mz.122-58.SE2.bin"... --- System Configuration Dialog --- Enable secret warning ---------------------------------- In order to access the device manager, an enable secret is required If you enter the initial configuration dialog, you will be prompted for the enable secret If you choose not to enter the intial configuration dialog, or if you exit setup without setting the enable secret, please set an enable secret using the following CLI in configuration mode-
  3. 3. enable secret 0 <cleartext password> ---------------------------------- Would you like to enter the initial configuration dialog? [yes/no]: % Please answer 'yes' or 'no'. More Qs of Resetting a Cisco 2960 Series: Q: “I have a number of 2960s that I have inherited and there is no documentation on the setup and NO passwords. I need to change setting so I can deploy WDS images which is not presently possible with the present switch configurations. By resetting I can hopefully accomplish this AND create documentation so the next idiot who takes over these sites doesn't go through the same hell as me.” Quite Basic process to reset a Cisco 2960G switch back to factory defaults if you don’t know the passwords of the switch: 1. Hook up a console cable to the Console Port and use Putty or other serial client to view the Console session 2. Hold down the Mode button on the front of the switch and power it up 3. When the SYST light stops blinking, let go of the SYST button 4. You should see the switch booting up in your console session 5. When presented with switch: type flash_init and hit enter 6. Once it finishes loading, you need to delete some files in the flash. List the files by entering dir flash: (don’t forget the : at the end) 7. Delete the config by entering del flash:config.txt 8. You may also have VLANS set up on the switch, so you need to delete that info as well, del flash:vlan.dat 9. Now type boot and hit enter to reboot the switch More Cisco 2960 Tips: How to Configure the Voice VLAN Feature on the Catalyst 2960 and 2960-S Switches? Cisco 2960 vs. Catalyst 3560 Cisco Catalyst 2960-X Series Switches Debut at Cisco Partner Summit

×