06-06-2005 08:33 PM - edited 03-03-2019 09:45 AM
Dear sir,
I want to know, if a Route is advertised by 2 Routing protocols, then which route by which protocol will be preferred.
1) 192.168.3.0/24 is advertised by BGP
192.168.3.0/27 is advertised by OSPF.
If I trace route IP 192.168.3.5, then which IP
will be preferred.
2) 192.168.3.0/24 is advertised by EIGRP.
192.168.3.0/27 is advertised by OSPF.
If I trace route IP 192.168.3.5, then which IP
will be preferred.
Please tell me what are the different issues in Path selection?
Regards,
Ashu
06-06-2005 10:05 PM
Hello Ashu,
in both your examples, the OSPF route will be chosen, because the route with the longest (that is, most specific) prefix match is preferred.
Check the following document, it has a pretty good description of the different criteria in path selection:
Route Selection in Cisco Routers
http://www.cisco.com/warp/public/105/21.html
HTH,
GP
06-07-2005 06:05 AM
Georg is quite right that the longest prefix is preferred. Administrative Distance only is considered when two prefixes are equal including the same length. Even though both prefixes in this example have the same numeric content (192.168.3.0) they are not equal because they are different lengths.
Another way to look at the effect of this is that in both cases the OSPF route will be preferred for addresses 192.168.3.0 through 192.168.3.31 and the BGP/EIGRP route will be preferred for addresses 192.168.3.32 through 192.168.3.255.
HTH
Rick
06-07-2005 08:34 PM
thank you sir.
Regards,
Ashu
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