Cisco IOS Command Tip – A Quick Way to Wipe The Cisco Router Configuration For Your CCNA Lab
by abpalancajr on
in Cisco IOS Commands

Very often when you are practicing for the CCNA exam in your home lab, you may want to reset the configuration to the “factory” state in order to reconfigure it from scratch. This is an excellent way to practice as deployment tasks usually are done on fresh devices shipped from Cisco. I have a CCNA tip which will save you a lot of time.
One of the quickest Cisco IOS commands to do this is to issue the “wr erase” command which will remove the configuration. After that issue a “wr mem” and reload the router just to be sure. This will restore your CCNA Lab environment to the factory default. This is an extremely dangerous command, please do exercise caution if this is being done on a live network.
Router#wr erase
Erasing the nvram filesystem will remove all configuration files! Continue? [confirm]
[OK]
Erase of nvram: complete
Router#
There you have it, an extremely quick way to reset the router to factory configuration. Note that there is a caveat on Cisco Catalyst switch platforms, as this command does not wipe out the VLAN database (vlan.dat), which is stored on flash. You need to delete the file manually, if not upon reload, you might find that the VLANs are mysteriously still there.
Switch#delete vlan.dat
Delete filename [vlan.dat]?
Delete flash:vlan.dat? [confirm]
Switch#
I hope you found this useful. Please feel free to subscribe to my RSS feed or follow me on twitter (@savvynetcert).
Cheers,
Francis (@savvynetcert)
[Update 27 Jul 2009: Formatting for commands]








Comments
One Response to “Cisco IOS Command Tip – A Quick Way to Wipe The Cisco Router Configuration For Your CCNA Lab”