02-24-2003 12:12 AM - edited 03-02-2019 05:19 AM
If I have 2 routes pointing to the same subnet destination, one static & one dynamic, then the static (lower AD value) route will be the one that gets installed in the routing table, right ? But, if say that the the next-hop interface to which the static route pointing to is down, will the dynamic route gets installed in the routing table ?
02-24-2003 12:43 AM
The route learned dynamically should be installed in the routing table.
Here's a link that provides additional info:
http://www.cisco.com/en/US/tech/tk648/tk365/technologies_tech_note09186a0080094823.shtml
Goodluck!
02-24-2003 01:31 AM
Thank you very much for your prompt response. However, since the primary route is a static route and the secondary route is a dynamically learned route, and the primary will always remain in the routing table (as I think that it cannot detect the next-hop-ip interface is down), in this case, the secondary dynamically learned route will never be used by the routing table.
I will agree with you, unless the static route is able to detect that its "peer" is down. But, I don't think static route can do that.
Under other circumstances, if both primary and secondary route are dynamically learned routes, that what you said before will work.
Please feedback...
02-24-2003 04:16 AM
you can create a static route and point it to the outgoing interface, not the next hop address. That way the it will know if that interface goes down.
ip route 0.0.0.0 0.0.0.0 serial 0
This will set up the default route to use serial 0, not a next hop address.
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