- [Instructor] When creating a new switch configuration,
you should always start by removing the previous setups.
So there are two files that you need to make sure you erase
from the switch.
The first file is the startup-config file,
and that is saved in the NVRAM.
The second file is the one that stores
all of the information for the VLANs,
that's the VLAN database file called vlan.dat
and that file is stored in flash.
I am now going to demonstrate the commands used
to completely wipe both the VLANs
and the startup configurations from a Cisco switch.
I'm going to go ahead and click on the West Switch,
span the window, hit Enter, the password is console0
ena for enable secret1.
Going to go ahead and issue the command erase startup-config.
Erasing the NVRAM file system removes
the configuration file, we go ahead
and hit Enter to confirm that.
We see that that command is complete.
The other thing we need to do is to delete the flash,
and what file in flash?
Vlan.dat, we go ahead and hit Enter, it confirms or asks if
that's the file we want to delete?
We go ahead and hit Enter to confirm, one more time.
And if I do a show flash, you can see that that file is gone
as is the config file.
If I do a show start, you also see that the startup
configuration file is not present.
Now, what I'm going to do is go ahead and issue a reload.
It asks me if I'm sure I want to do that?
Of course I do, that's the whole point.
The image file is decompressing, you can see it's loading
from flash, and now you can see that the switch
is back to its default name of switch.
If I do an enable and then I do a show run,
you can see that everything is gone,
and the switch is ready for initial configuration.