A BGP router receives 2 updates of the same prefix. One is an IBGP update, and the other is an EBGP update.
The IBGP prefix has a higher weight. Which route will this BGP router select as the best route to be installed in the routing table?
Hi Atif ,
BGP is AS to AS routing protocol , Even though there is AD difference between IBGP and EBGP ,BGP always like to prefer route from Outide the AS than inside the AS if they are having same prefix .
BGP has its own decision criteria for selecting the best route. A external route does have a preference over an internal route, but this criteria comes way down in the decision path. Kindly go through the BGP best path selection criteria to understand how this process works better.
Regarding role of AD, it is not applicable here as I have been trying to clarify to the other gentleman. AD applies when we are evaluating routes learnt from two different routing protocols which is not the case here.