01-31-2017 09:54 PM - edited 03-05-2019 07:57 AM
Hi,
I know the AD of ebgp is 20 and that of ibgp is 200. But does anyone know how those AD values are calculated ? Is there a specific reason for ebgp to have a lesser value than ibgp. Kindly explain.
Solved! Go to Solution.
02-01-2017 05:14 AM
A Phillip has already noted, it's the standard, but I believe it's just Cisco's default preference. I recall other vendors can AD weight their routing protocols differently. (Although I also recall other vendors tend to keep the same general AD preferences.) Also, on Cisco equipment, you can change Cisco's default AD weights.
As to why eBGP has a lower AD then iBGP, I believe that's because iBGP normally depends on some other IGP, whereas eBGP does not.
BTW, keep in mind the purpose of AD, it's used to set which prefix, provided by different routing protocols (or static routes), is preferred. I.e. it's subjective, which is also why Cisco generally prefers (lower AD) their routing protocols over "similar" RFC routing protocols.
02-01-2017 01:05 PM
Hi
If a BGP router learns a prefix from a BGP peer with different AS (eBGP), the prefix will be known with AD 20.
If a BGP router learns a prefix from a BGP peer with the same AS (iBGP), the prefix will be known with AD 200.
A BGP router will prefer eBGP over iBGP. And of course there are attributes like weight, local preference, origin code, etc. for path selection.
Imagine a tie with attributes so the AD info will be the tiebreaker.
As it was mentioned previously it is a standard.
I hope it is useful :-)
01-31-2017 10:56 PM
Is is simply the standard.
02-01-2017 05:14 AM
A Phillip has already noted, it's the standard, but I believe it's just Cisco's default preference. I recall other vendors can AD weight their routing protocols differently. (Although I also recall other vendors tend to keep the same general AD preferences.) Also, on Cisco equipment, you can change Cisco's default AD weights.
As to why eBGP has a lower AD then iBGP, I believe that's because iBGP normally depends on some other IGP, whereas eBGP does not.
BTW, keep in mind the purpose of AD, it's used to set which prefix, provided by different routing protocols (or static routes), is preferred. I.e. it's subjective, which is also why Cisco generally prefers (lower AD) their routing protocols over "similar" RFC routing protocols.
02-01-2017 10:59 AM
Thanks Joseph. ibgp depends on igp explanation seems to be logical.
02-01-2017 01:05 PM
Hi
If a BGP router learns a prefix from a BGP peer with different AS (eBGP), the prefix will be known with AD 20.
If a BGP router learns a prefix from a BGP peer with the same AS (iBGP), the prefix will be known with AD 200.
A BGP router will prefer eBGP over iBGP. And of course there are attributes like weight, local preference, origin code, etc. for path selection.
Imagine a tie with attributes so the AD info will be the tiebreaker.
As it was mentioned previously it is a standard.
I hope it is useful :-)
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