bgp always-compare-med
Syntax
bgp always-compare-med
no bgp always-compare-med
Description
Enables comparison of the Multi Exit Discriminator (MED) for paths from neighbors in different autonomous systems. Any changes in BGP configuration are applied by restarting the current BGP sessions on the VRFs.
The
no
form of this command sets comparison of MED to the default setting (disabled).
Command context
config-bgp
Authority
Administrators or local user group members with execution rights for this command.
Usage
MED is one of the parameters that is considered when selecting the best path among many alternative paths. The path with a lower MED is preferred over a path with a higher MED.
During the best-path selection process, MED comparison is done only among paths from the same autonomous system. Use the command
bgp always-compare-med
to change this behavior by enforcing MED comparison between all paths, regardless of the autonomous system from which the paths are received.
Examples
switch(config-bgp)# bgp always-compare-med All current BGP sessions in VRF default will be restarted. Do you want to continue (y/n)?
switch(config-bgp)# no bgp always-compare-med All current BGP sessions in VRF default will be restarted. Do you want to continue (y/n)?