11-5
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
[Sysname] bgp 100
[Sysname-bgp] ipv6-family
[Sysname-bgp-af-ipv6] bestroute med-confederation
compare-different-as-med (IPv6 address family view)
Syntax
compare-different-as-med
undo compare-different-as-med
View
IPv6 address family view
Default Level
2: System level
Parameters
None
Description
Use the
compare-different-as-med
command to enable the comparison of the MED for paths from
peers in different ASs.
Use the
undo compare-different-as-med
command to disable the comparison.
The comparison is disabled by default.
If there are several paths available for one destination, the path with the smallest MED value is
selected.
Do not use this command unless associated ASs adopt the same IGP protocol and routing selection
method.
Examples
# Enable to compare the MED for paths from peers in different ASs.
<Sysname> system-view
[Sysname] bgp 100
[Sysname-bgp] ipv6-family
[Sysname-bgp-af-ipv6] compare-different-as-med