undo bestroute compare-med
View
BGP view, BGP-VPN instance view
Default level
2: System level
Parameters
None
Description
Use
bestroute compare-med
to enable the comparison of the MED for routes on a per-AS basis.
Use
undo bestroute compare-med
to disable this comparison.
This comparison is not enabled by default.
Examples
# In BGP view, enable the comparison of MEDs for routes on a per-AS basis when selecting the best
route.
<Sysname> system-view
[Sysname] bgp 100
[Sysname-bgp] bestroute compare-med
# In BGP-VPN instance view, enable the comparison of MED for routes on a per-AS basis when
selecting the best route. (The VPN has been created.)
<Sysname> system-view
[Sysname] bgp 100
[Sysname-bgp] ipv4-family vpn-instance vpn1
[Sysname-bgp-ipv4-vpn1] bestroute compare-med
bestroute med-confederation (BGP/BGP-VPN instance view)
Syntax
bestroute med-confederation
undo bestroute med-confederation
View
BGP view, BGP-VPN instance view
Default level
2: System level
Parameters
None
Description
Use
bestroute med-confederation
to enable the comparison of the MED for paths from
confederation peers during best route selection.
Use
undo bestroute med-confederation
to disable the comparison.
The comparison is not enabled by default.
The system only compares MED values for paths from peers within the confederation. Paths from
external ASs are advertised throughout the confederation without MED comparison.
190