"Clear config all" in IOS

Unanswered Question
Feb 19th, 2007

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

Thanks

I have this problem too.
0 votes
  • 1
  • 2
  • 3
  • 4
  • 5
Overall Rating: 3 (2 ratings)
Loading.
mheusinger Tue, 02/20/2007 - 00:07

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

yayub Tue, 02/20/2007 - 10:18

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

glen.grant Tue, 02/20/2007 - 13:44

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 .

mheusinger Wed, 02/21/2007 - 05:34

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

Actions

This Discussion