Cisco Support Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Announcements

Welcome to Cisco Support Community. We would love to have your feedback.

For an introduction to the new site, click here. And see here for current known issues.

New Member

"Clear config all" in IOS

Is there any CatOS equivalent command of "clear config all" in IOS.

Thanks

4 REPLIES

Re: "Clear config all" in IOS

Hello,

in IOS based systems you would use "erase startup-config". If you have an IOS based switch you additionally need to delete the vlan.dat file in flash to bring it back to factory default settings. Be careful not to delete the entire flash (containing the IOS file).

Hope this helps!

Regards, Martin

New Member

Re: "Clear config all" in IOS

But this does not restore to factory default state as the active running-config still exist. I was able to get to factory default state with "write erase or erase start and then reload". But this step involve rebooting the router. I am looking for default cli that allow me to restore to complete factory default without having to reload the router.

Thanks

Purple

Re: "Clear config all" in IOS

Erase startup will wipe out the startup config . When you reload and it asks you if you want to save the config you say no and just reload .

Re: "Clear config all" in IOS

Hello,

ok I see your issue now. Then the answer is: this option does not exist in IOS based systems. The only option would be to use "no" with all configured commands, but this is clearly not amusing in case you have a large config. If only one interface needs to be reverted to factory default, use "default interface ..." in config mode. Similar "default" commands exist for other parts of the config ("default ?" in config mode to check the options in your specific IOS).

So with IOS based systems the best practice procedure involves a reload after the steps described in the first posting.

Reason: There is no real equivalent to CatOS "clear config all" without reload.

Regards, Martin

798
Views
6
Helpful
4
Replies