10-19-2022 04:18 PM
I tried "delete static-routes all" and it didn't seem to like "all" as an argument in it; I also tried "clear ip route *" and that did nothing. Is there a different way to clear all static routes? Thanks in advance
10-19-2022 07:37 PM
What Cisco device model and IOS are you using?
----------------------------------------------------------------------------------------------------
Remember to mark helpful posts and mark the correct answer as a solution; It helps other users with similar questions.
10-20-2022 05:51 AM
Hello,
I am not sure what you are after exactly, but static routes can only be cleared by manually deleting them from the configuration using the 'no ip route' command.
10-20-2022 08:33 AM
I agree with Georg that it is not clear what you are trying to accomplish.
I would like to clarify one thing. You say " I also tried "clear ip route *" and that did nothing". Actually if you turn on debug for ip routing and repeat the clear ip route * you would see that all entries in the routing table are removed and then the connected subnets and the static routes are added back into the routing table. If what you want to do is to remove a static route from the routing table then you need to remove the static route statement in the config.
10-20-2022 08:41 AM
static route can you manually add or dynamic via protocol like reverse inject of IPSec,
and I think command you use clear static, is only effect dynamic not manual add route.
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