To compare MED values during the decision process in paths received from different ASs, use the bgp always-compare-med command. 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 ASs 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 whether paths are received from a common AS.
| Default | By default, MED values are only compared for paths received from peers in the same AS. |
| Format | bgp always-compare-med |
| Mode |
|