Sign in to follow this  
Followers 0
jimmyt

BGP Best Path Selection Question

3 posts in this topic

Hi There,

 

I'm doing a practice CCIE lab and I'm still struggling a little with the BGP best path selection process. Can anyone tell me what path attribute causes the best route to be selected from the following output? Please note that the router with BGP router-id of 150.11.2.2 is a an IBGP peer. The other two are eBGP peers. Also, why does the route with a next hop of 54.11.7.254 have an empty metric attribute and how is this compared to the metrics of zero?

 

Rack11R6#show ip bgp
BGP table version is 11, local router ID is 150.11.6.6
Status codes: s suppressed, d damped, h history, * valid, > best, i - internal,
r RIB-failure, S Stale
Origin codes: i - IGP, e - EGP, ? - incomplete
Network Next Hop Metric LocPrf Weight Path
* i28.119.16.0/24 204.12.11.254 0 100 0 54 i
* 204.12.11.254 0 0 54 i
*> 54.11.7.254 0 54 i
Rack11R6#show ip bgp 28.119.16.0/24
BGP routing table entry for 28.119.16.0/24, version 2
Paths: (3 available, best #3, table Default-IP-Routing-Table)
Advertised to update-groups:
1 2
54
204.12.11.254 from 204.12.11.2 (150.11.2.2)
Origin IGP, metric 0, localpref 100, valid, internal
54
204.12.11.254 from 204.12.11.254 (31.3.0.1)
Origin IGP, metric 0, localpref 100, valid, external
54
54.11.7.254 from 54.11.7.254 (212.18.3.1)
Origin IGP, localpref 100, valid, external, best

 

0

Share this post


Link to post
Share on other sites

I am thinking : 1st external wins over internal; then oldest route

 

MED -or metric- have some restrictions and extra commands like med deterministic, always-compare med, missing med as worst;

show run all or full to see hidden and/or default bgp commands ; some routers or cisco routers default behavior is to assign a value of 0 to the missing MED. so, in your case, med is not being compared at all.

Edited by martinlo
0

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0