Cisco Support Community
Showing results for 
Search instead for 
Did you mean: 

Welcome to Cisco Support Community. We would love to have your feedback.

For an introduction to the new site, click here. If you'd prefer to explore, try our test area to get started. And see here for current known issues.

New Member

Unable to assign worst MED for EBGP route

Hi All,

BB2 (AS 254)-------------------------R2(AS 200)

BB2 is adverting prefix to R2.folloing is configurtaion on R2..

Rack1R2#sh running-config | b r b
router bgp 200
no synchronization
bgp log-neighbor-changes
bgp bestpath med missing-as-worst <-----------to assign worst MED for ebgp prefixes those with MED=0)
neighbor remote-as 254
neighbor password CISCO

Rack1R2#sh ip bgp
BGP table version is 110, local router ID is
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
*>             0             0 254 ? <-------------------MED is showing zero.

As per my knowldage R2 should assign MED to worst value (e.g.41245484213).

Already tried with hard reset of BGP on BB2 and R2

Please correct my understanding and suggest.



Unable to assign worst MED for EBGP route


are you sure the

bgp bestpath med missing-as-worst

command is assigning any value to the prefix MED attribute?

My understanding is the router is just considering the prefix like having an infinite MED during the best path selection process, but it does not change the MED value in fact.

I.e., if the prefix with missing MED is chosen as the best one, the router is advertising it with missing MED again.