7 bgp bestpath med – CANOGA PERKINS 9175 Command Reference User Manual
Page 250
CanogaOS Command Reference
16-5
address on the router, with preference given to loopback addresses. Router-id can be manually set by using
the bgp router-id command.
Examples
Switch# configure terminal
Switch(config) router bgp 100
Switch(config-router) bgp bestpath compare-routerid
Related Commands
show ip bgp, show ip bgp neighbors
16.7 bgp bestpath med
Use this command to specify Multi Exit Discriminator (MED) attribute comparison.
Use the no parameter with this command to prevent BGP from considering the MED attribute in comparing
paths.
Command Syntax
bgp bestpath med confed|missing-as-worst
bgp bestpath med missing-as-worst confed
confed Compares MED among confederation paths
missing-as-worst Treats missing MED as the least preferred one
Command Mode
Router mode
Default
MED value is zero.
Usage
Use this command to specify two MED attributes--confed and missing-as-worst. The confed attribute enables
MED comparison among paths learned from confederation peers. The MEDs are compared only if there is no
external autonomous system (an AS not within the confederation) in the path. If there is an external
autonomous system in the path, the MED comparison is not made.
The missing-as-worst attribute to consider a missing MED attribute in a path as having a value of infinity,
making the path without a MED value the least desirable path. If missing-as-worst is disabled, the missing
MED is assigned the value of 0, making the path with the missing MED attribute the best path.
Examples
Switch# configure terminal
Switch(config) router bgp 100
Switch(config-router) bgp bestpath med missing-as-worst