06-21-2013 02:22 AM - edited 03-11-2019 07:01 PM
I have misstyped a static route (netmask is wrong) and cannot delete:
gw-kuvasz#sh run | include route
......
route alba-dmz 0.246.102.79 25.255.255.255 10.63.201.110 1
......
If I try to remove get the following error message:
gw-kuvasz(config)# no route alba-dmz 0.246.102.79 25.255.255.255 10.63.201.110
ERROR: Invalid network address 0.246.102.79, cannot add route
What to do?
Thank for the help: Joseph
Solved! Go to Solution.
06-21-2013 04:41 AM
Hi,
Seems both the network address and mask are wrong.
There are not that many commands related to routes you can use
This seems like some bug. I dont know why it is giving a message of adding a route when you are removing one.
I tried this with my home ASA5505 (8.4(5)) and it wont let me even add that route to begin with.
One command you could try (risks involed) is to remove all the routes regarding "alba-dmz" interface on the ASA. This command doesnt specify the exact route to be removed but rather removes all static routes from that interface so it has its own risks.
ASA(config)# clear configure route alba-dmz
Depending on your network setup you might want to do this outside normal working hours since you need to remove all routes from that interface. I am not sure if it will work.
One idea is naturally booting up the ASA if you havent saved the configuration
Or perhaps trying to boot the ASA with a configuration file that doesnt include the route
- Jouni
06-21-2013 04:41 AM
Hi,
Seems both the network address and mask are wrong.
There are not that many commands related to routes you can use
This seems like some bug. I dont know why it is giving a message of adding a route when you are removing one.
I tried this with my home ASA5505 (8.4(5)) and it wont let me even add that route to begin with.
One command you could try (risks involed) is to remove all the routes regarding "alba-dmz" interface on the ASA. This command doesnt specify the exact route to be removed but rather removes all static routes from that interface so it has its own risks.
ASA(config)# clear configure route alba-dmz
Depending on your network setup you might want to do this outside normal working hours since you need to remove all routes from that interface. I am not sure if it will work.
One idea is naturally booting up the ASA if you havent saved the configuration
Or perhaps trying to boot the ASA with a configuration file that doesnt include the route
- Jouni
06-21-2013 06:53 AM
A brute force ploy would be to export (scp or tftp) a copy of the startup-config, edit it to remove the offending route, import it under a different name (xxx.txt), do copy xxx.txt startup-config to overwrite it, and then reload.
-- Jim Leinweber, WI State Lab of Hygiene
06-21-2013 08:00 AM
Thanks a lot!!
Joseph
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide