Use the bestroute compare-med command to enable the comparison of the MED for paths from each
AS.
Use the undo bestroute compare-med command to disable this comparison.
This comparison is not enabled by default.
After the bestroute compare-med command is executed, the balance command does not take effect.
Examples
# Compare the MED for paths from an AS for selecting the best route.
<Sysname> system-view
[Sysname] bgp 100
[Sysname-bgp] ipv6-family
[Sysname-bgp-af-ipv6] bestroute compare-med
bestroute med-confederation (IPv6 address family view)
Syntax
bestroute med-confederation
undo bestroute med-confederation
View
IPv6 address family view
Default Level
2: System level
Parameters
None
Description
Use the bestroute med-confederation command to enable the comparison of the MED for paths from
confederation peers for best route selection.
Use the undo bestroute med-confederation command to disable the configuration.
By default, this comparison is not enabled.
With this feature enabled, the system can only compare the MED for paths from peers within the
confederation. Paths from external ASs are advertised throughout the confederation without MED
comparison.
Examples
# Compare the MED for paths from peers within the confederation.
<Sysname> system-view
1-3