Cisco Support Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Community Member

why eigrp routes are preferred over RIP2 ,what is workaround to make RIP 2 router /24 prefer over eigrp /32 route

why eigrp routes are preferred over RIP2 ,what is workaround to make RIP 2 routes /24 prefer over eigrp /32 route, do anyone has any suggestion, please send us.thank you

Please let us know if its possible.

Thanks

Sanjeev

2 REPLIES

Re: why eigrp routes are preferred over RIP2 ,what is workaround

Hi,

EIGRP has better administrative distance than RIP by default.

There's no way how to make any /24 route prefer over any /32 route - longest match always wins.

HTH,

Milan

Blue

Re: why eigrp routes are preferred over RIP2 ,what is workaround

Sanjeev, Milan is right. Your RIPv2 route loses on both counts.

In destination-based routing, a router will prefer a route in the routing table that has the longest prefix length match. So, if you want to route to destination network 10.10.10.0/24 and you have a route to 10.10.0.0/16 and another to 10.10.10.0/24, the /24 will win, regardless of what the routing protocol is at the source of this information.

If the router has 2 comparable routes (by comparable, I mean 2 routes with the same prefix length), the routing protocol with the lower administrative distance will win.

And, just to finish the thought, although this part doesnt pertain to your question, if the router has 2 comparable routes from the same routing protocol, it will use the one with the better metric -- lower cost, fewer hops, etc.

So, in your case, your RIP route loses on both counts: prefix length and administrative distance.

If you need to override the /32 EIGRP route and use another path, you can take the prefix length and administrative distance factors out of the equation by using policy-based routing, or source-address based routing. This is done through the use or route-maps.

HTH

Victor

726
Views
0
Helpful
2
Replies
CreatePlease to create content