Chapter 50
| IP Routing Commands
Border Gateway Protocol (BGPv4)
– 1109 –
Command Usage
Normally, the first route arriving from different external peers (with other
conditions equal) will be chosen as the best route. By using this command, the
route with lowest router ID will be selected.
Example
Console(config-router)#bgp bestpath compare-routerid
Console(config-router)#
bgp bestpath med This command enables comparison of the Multi Exit Discriminator (MED) attribute
for paths learned from confederation peers, and the treatment of a route when the
MED is missing. Use the no form to disable this feature.
Syntax
[no] bgp bestpath med {[confed] [missing-as-worst]}
confed – Compare MED in confederation path.
missing-as-worst – Consider as maximum MED value when missing.
Command Mode
Router Configuration
Default Setting
When making the best-path selection, the router does not consider the MED.
Command Usage
â—† The MED for paths learned from confederation peers is compared only if no
external autonomous systems (AS) appear in the path. If an external AS is
within the path, then the external MED is passed transparently through the
confederation, and it is not compared.
â—† If the missing-as-worst option is disabled, the missing MED is assigned a value
of 0, making a path missing the MED attribute the best path.
Example
Console(config-router)#bgp bestpath med config missing-as-worst
Console(config-router)#