cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
1386
Views
0
Helpful
3
Replies

Routing preferences between static and dynamic routing

tj6512
Level 1
Level 1

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 ?

3 Replies 3

a.manosca
Level 4
Level 4

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!

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...

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.