Hi Imran,
Yes that is what I exactly meant.
Distance in BGP is used for competing with other protocols only. In other
routing protocols (like EIGRP) distance can be tweaked to choose internal over
erxternal, however, that is not the case with BGP.
External routes are always preferred over internal & this is not based on
distance.
Here is a detailed analysis of why router selected external path:
4#show ip bgp 1.1.1.0
BGP routing table entry for 1.1.1.0/24, version 4
Paths: (2 available, best #2, table Default-IP-Routing-Table) Advertised to
update-groups: 1 12 10.0.0.1 from 20.0.0.3 (20.0.0.3) Origin IGP,
metric 0, localpref 100, valid, internal 12 20.0.0.2 from 20.0.0.2 (20.0.0.2)
Origin IGP, localpref 100, valid, external, best Comparing two paths
as per the BGP path selection process. Comparing path 1 with path 2: Both paths
have reachable next hops Both paths have a WEIGHT of 0 Both paths have a
LOCAL_PREF of 100 Both paths are learned Both paths have AS_PATH length 1 Both
paths are of origin IGP Both paths have the same neighbor AS, 12, so comparing
MED. Both paths have a MED of 0 Path 2 is better than path 1 because an
external path is preferred over an internal path. {Not because of distance but
because the protocols developers wanted it to be this way :)} This is the
reason that the best path is #2As per the BGP best path selection process,
External is preferred if all the above
parameters are same.
Thanks,
Narendra
On Sunday, 1 December 2013 3:01 AM, Marko Milivojevic <[email protected]>
wrote:
> changing AD of ebgp to 201 forces ibgp routes...to get into the routing
> table.....
Imran - this statement is not correct.
--
Marko Milivojevic - CCIE #18427 (SP R&S)
Senior CCIE Instructor / Managing Partner - IPexpert
:: Free Video Training: http://youtube.com/IPexpertInc
:: Social: http://twitter.com/@icemarkom | http://fb.me/ccie18427
:: IPexpert: http://www.ipexpert.com/Communities | +1-810-326-1444
_______________________________________________
Free CCIE R&S, Collaboration, Data Center, Wireless & Security Videos ::
iPexpert on YouTube: www.youtube.com/ipexpertinc