F3726, F3211, F3174, R5135, R3816-HP Firewalls and UTM Devices Network Management Command Reference-6PW100

Table Of Contents
446
[Sysname] bgp 100
[Sysname-bgp] ipv4-family vpn-instance vpn1
[Sysname-bgp-ipv4-vpn1] bestroute as-path-neglect
bestroute compare-med (BGP/BGP-VPN instance view)
Use bestroute compare-med to enable the comparison of MEDs for routes on a per-AS basis.
Use undo bestroute compare-med to disable this comparison.
Syntax
bestroute compare-med
undo bestroute compare-med
Default
This comparison is not enabled.
Views
BGP view, BGP-VPN instance view
Default command level
2: System level
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 MEDs 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)
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.
Syntax
bestroute med-confederation
undo bestroute med-confederation
Default
The comparison is not enabled.
Views
BGP view, BGP-VPN instance view