cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
11001
Views
13
Helpful
4
Replies

How to clear all static IP routes?

woodkir000
Level 1
Level 1

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

 

 

4 Replies 4

NetworkDave
Spotlight
Spotlight

@woodkir000,

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.

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.

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.

HTH

Rick

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.