CLI Guide

Layer 3 Routing Commands 1261
bgp always-compare-med
Use this command to compare MED values during the decision process in
paths received from different autonomous systems. To revert to the default
behavior, only comparing MED values from paths received from neighbors in
the same AS, use the no form of this command.
Syntax
bgp always-compare-med
no bgp aways-compare-med
Default Configuration
By default, all routes aggregated by a given aggregate address must have the
same MED value.
Command Mode
BGP Router Configuration mode
IPv6 Address Family Configuration mode
User Guidelines
The MED is a 32-bit integer, commonly set by an external peer to indicate
the internal distance to a destination. The decision process compares MED
values to prefer paths that have a shorter internal distance. Since different
autonomous systems may use different internal distance metrics or have
different policies for setting the MED, the decision process normally does not
compare MED values in paths received from peers in different autonomous
systems. This command allows you to force BGP to compare MEDs regardless
of if paths are received from a common AS.
Command History
Introduced in version 6.2.0.1 firmware.
Example
console(config-router)#bgp always-compare-med