compare-different-as-med (BGP/BGP-VPN instance view)
Syntax
compare-different-as-med
undo compare-different-as-med
View
BGP view, BGP-VPN instance view
Default level
2: System level
Parameters
None
Description
Use compare-different-as-med to enable the comparison of the MED for paths from peers in different
ASs.
Use undo compare-different-as-med to disable the comparison.
The comparison is disabled by default.
If several paths to one destination are available, the path with the smallest MED is selected.
Do not use this command unless associated ASs adopt the same IGP protocol and routing selection
method.
Examples
# In BGP view, enable the comparison of the MED for paths from peers in different ASs.
<Sysname> system-view
[Sysname] bgp 100
[Sysname-bgp] compare-different-as-med
# In BGP-VPN instance view, enable the comparison of the MED for paths from peers in different Ass.
(The VPN has been created.)
<Sysname> system-view
[Sysname] bgp 100
[Sysname-bgp] ipv4-family vpn-instance vpn1
[Sysname-bgp-ipv4-vpn1] compare-different-as-med
confederation id
Syntax
confederation id as-number
undo confederation id
View
BGP view
Default level
2: System level
131