set protocols bgp always-compare-med


The set protocols bgp always-compare-med command 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 delete protocols bgp always-compare-med command sets comparison of MED to the default setting (disabled).


Command Syntax

set protocols bgp [vrf <vrf-name>] always-compare-med

delete protocols bgp [vrf <vrf-name>] always-compare-med


Parameter

Parameter

Description

vrf <vrf-name>

Optional. Specifies a VRF name. The value is a string. It’s a user-defined VRF set by the command set ip vrf <vrf-name> [description <string>].


Usage Guidelines

  • 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.


Example
• This example enables comparison of the Multi Exit Discriminator (MED) for paths from neighbors in different autonomous systems.

admin@XorPlus# set protocols bgp always-compare-med
admin@XorPlus# commit


Copyright © 2024 Pica8 Inc. All Rights Reserved.