10-29-2021 01:28 AM - edited 10-29-2021 01:36 AM
HI
router interface is shutdown,
why do I see a static route in the routing table?
Does the flow control command affect it?
10-29-2021 01:59 AM - edited 10-29-2021 03:52 PM
For static Route does not matter either interface is down or up, its static route behavior wrong in your case ( apologies for the confusion created here ( Coffee Time)) - may be stuck somewhere, or looks bug for me. what is the version of code?
Another close look at your output, Hope top of the output from the different device right ?
how does your topology looks like ?
check show ip cef (what is the output here ?)
10-29-2021 03:54 AM
@balaji.bandi Which platform do you see this behavior on ? Might be router specific. The ones I have tested, if the interface is down, any static route pointing out that interface (next hop or physical/logical interface) disappears from the routing table.
That said, @ohchan , which router platform is this on ?
10-29-2021 04:41 AM - edited 10-29-2021 04:42 AM
As Georg says a static route should be removed from the routing table if the interface used to reach the next hop IP is down unless you use the "permanent" keyword which you don't seem to have used here.
The prompt suggests this is a 2900 router, can you confirm this is a physical device and can you post full routing table ?
Jon
10-29-2021 07:08 AM
As already stated, the route should disapear if the interface is down, but there are situation when the route is still active. This is when the next hop is still in the routingtable. This can be if another router is still connected to that network , and distributes the routes. So the router sees the next hop is reachable and therefore installs the static route.
/Mikael
10-29-2021 08:29 AM
dear mlund
When I ping from CISCO 2921 to the next hop, the ping never reaches the next hop IP.
Physically connected, but logically shutdown.
I want to reboot the device, but the customer is using the device.
08-25-2023 09:32 PM
Hi mlund, I am having this issue of having another router connected to the network running OSPF and redistributing the static routes. The current router which interface is down is still seeing the static routes. How do I stop redistribution of static routes to other routers connected to the current router (which interface is down)?
10-29-2021 11:18 AM
Hello
@ohchan wrote:
HI
router interface is shutdown,
why do I see a static route in the routing table?
Does the flow control command affect it?
TBH you shouldnt really see that route as it tied to a physical interface that is in a down state as such that static route should be removed from the rtrs rib table.
Have you tried clearing the rib table?
clear ip route *
10-29-2021 11:52 AM
I wonder if the entire issue is IOS/platform dependent. I have not tested this on any 17.x release, but according to @balaji.bandi :
--> For static Route does not matter either interface down or up, its static route thats the behaviour.
Maybe it is the new, default behaviour on the newer platforms...
03-22-2022 09:43 PM
Try to use the interface as the next hop instead of the IP address.
Check this article. Hope it helps.
03-23-2022 01:29 AM
What you dont show is if 1.1.1.x is still being seen by the router, show the full rib table.
Disable source-routing also, its not required
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