06-28-2009 08:19 PM - edited 03-04-2019 05:16 AM
hello,
if a router learn a network from iBGP and eBGP, and eBGP source has prepend the AS, which one would be preferred path?
assume origin code is incomplete due to redistribution from an ibgp router.
would the longer prefix from eBGP less preferred, or eBGP preferred due to admin distance or rule 9 where eBGP is preferred over iBGP?
Solved! Go to Solution.
06-29-2009 08:02 AM
Hi Sam,
Thank you very much for your feedback and the rating.
Cheers:
Istvan
06-29-2009 03:21 AM
EBGP would take precendence over IBGP learned route, regardless of prepending.
Sam
06-29-2009 03:39 AM
thanks lad.
06-29-2009 03:41 AM
Hi,
Evaluation of the AS-PATH attribute is well before evaluating if the route is learned from iBGP or eBGP.
Therefore, if the AS-PATH attribute of the iBGP route is shorter, then the BGP process will select the iBGP route.
If both AS-PATH attributes have the same length, then the eBGP route will be selected because its origin code is lower (the origin code of the ibgp route is incomplete, the origin code of the eBGP route is igp, I suppose).
Prefix lengths are not accounted for in the BGP path selection process because different prefix lengths mean different routes.
Admin distance is accounted for only in the routing table process, when the router should select between prefixes learned from different routing protocols.
Cheers:
Istvan
06-29-2009 03:55 AM
I agree with Istvan and stand corrected !
My test was flawed, the IGP router redistrubuting prefix has a NH that was unknown to the second IGP router which has the EBGP session. as a result thsi latter RTR was only seeing EBG prefix as best despite the prepending.
Sam
06-29-2009 08:02 AM
Hi Sam,
Thank you very much for your feedback and the rating.
Cheers:
Istvan
Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community: