Completely Clearing a Cisco Switch…The Easy Way!

Home > Blogs > Cisco > Completely Clearing a Cisco Switch…The Easy Way!

Completely Clearing a Cisco Switch…The Easy Way!

Like This Blog 3Jeremy Cioara
Added by May 17, 2007

Clearing out a Cisco switch configuration is always a pain because VLANs are kept in a seperate file from the startup-config (NVRAM). There's two ways to clear a switch back to the factory defaults – the easy way and the REALLY easy way:

The easy way –

Switch# write erase
Switch# delete flash:vlan.dat
Switch# reload

The REALLY easy way –

Hold the "mode" button on the front of the switch for 10 seconds. The lights will blink then go solid – the switch completely wipes all configuration and then reboots. Obviously, this method only works on stackable switches as the chassis based switches do not have mode buttons.

You may also like:  What Happens when there are duplicate MAC Addresses. How many MAC Addresses can a Switch learn?

Videos You May Like

JavaScript for C# Developers – September 24, 2014

0 117 1

In this video Dan Wahlin demonstrate the similarities and differences between C# and JavaScript and the future of JavaScript (ES6).

Subnetting a TCP/IP Network using the Magic Box Method

0 225 0

In this session, we are going to look at how to subnet a Class B address into multiple network segments using what's called The Magic Box. Let's run through this real quick.

Detailed Forensic Investigation of Malware Infections – April 21, 2015

2 122 1

In this IT Security training video, Security expert Mike Danseglio (CISSP / CEH) will perform several malware investigations including rootkits, botnets, viruses, and browser toolbars.

Write a Comment

See what people are saying...

  1. Alessio

    what about formatting from ROM 😉 ….

  2. Interface Technical Training

    Holding the mode button will not delete the vlan.dat file, but you can delete it manually by typing:
    cd flash:
    del vlan.dat

  3. Lars

    will the “mode” button delete vlan.dat as well?

Share your thoughts...

Please fill out the comment form below to post a reply.