I need to erase all the settings on our old Cisco switches. I have already logged into (enable-mode after password reset). Now I'm not sure what exactly I need to erase in the (dir) I noticed there is the config.text/vlan.dat files....Do I need to remove those? When I "more" command the config.text file it shows a lot of ip,vlan,etc data that looks like it should be removed before we get rid of these.

  • 7
    Do you already know the command write erase? – radtrentasei Apr 14 '14 at 21:40
  • 4
    Also use 'del vlan.dat' to delete the vlan database – James.Birmingham Apr 14 '14 at 22:08
  • radicetrentasei and James' input is correct (after a reload)... please let us know if you have more issues – Mike Pennington Apr 15 '14 at 9:13
  • Did any answer help you? if so, you should accept the answer so that the question doesn't keep popping up forever, looking for an answer. Alternatively, you could provide and accept your own answer. – Ron Maupin Aug 8 '17 at 17:58

Also, be sure to delete the vlan.dat file on the switch and reload before placing on a live, critical network. Keeping this old file will cause some serious network outages :)

|improve this answer|||||

Have you tried the command

Erase start-upconfig

The command returns all your settings to the factory default (in your startup-config). The only thing you have to do after that is a reload. Then when the reload is complete you'll have the default settings.

|improve this answer|||||
  • That does not actually erase the vlan.dat file that holds all the VLAN information, and the VLANs will reappear. – Ron Maupin Jun 11 '19 at 13:27

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.