Hello, Cisco people
OK, now that I've powered up my access router 2509 RJ and tried to configure it, I find I made a few mistakes. I know, I know..I can't believe I made a mistake either.
OK how do you over write the current data fill or configuration on the router? Do you clear the memory, erase just do what I did before... etc?
All these commands should be done in PRIVILEGED EXEC mode.
If you have your configuration saved to startup-config, you can erase it by using
Router# erase start
Then restart the router
If you have it in running config, you can just restart the router
and it should be as good as new.
When following Keneils steps, and after the reload command, if it asks you if you want to save your configuration before rebooting, type in "n" for no, and press enter again.
If you only made one or two mistakes, there is no need to erase the entire router's configuration. You can just use the no command.
For example, if you type ip route 192.168.1.0 255.255.255.0 10.1.1.1 - you can erase that by typing no ip route 192.168.1.0 255.255.255.0 10.1.1.1.
ISMAIL (CCSP/CCNP/CCNA/JNCIS-ER/MCSA) wrote:
while going to restart Do you wants to save configuration (Press NO)
"n" or "no" both work
Another option, that works with fairly small configurations, to clear out the config would be this:
config replace nvram:startup-config force
That will normally do the job, and doesn't require a reboot.
Slightly off topic, but if you were erasing the config on a switch you also need to remove the vlan.dat file which contains the VLAN database and isn't stored in the startup-config.
Also, if you ever wanted to dispose of a switch/router its probably a good idea to delete private-config.text from flash as well.