R0106-HP MSR Router Series Layer 3 - IP Routing Command Reference(V7)

293
bestroute as-path-neglect
Use bestroute as-path-neglect to configure BGP to not consider the AS_PATH during optimal route
selection.
Use undo bestroute as-path-neglect to configure BGP to consider the AS_PATH during optimal route
selection.
Syntax
bestroute as-path-neglect
undo bestroute as-path-neglect
Default
BGP considers the AS_PATH during optimal route selection.
Views
BGP IPv4 unicast address family view, BGP-VPN IPv4 unicast address family view, BGP IPv6 unicast
address family view, BGP-VPN IPv6 unicast address family view, BGP IPv4 multicast address family view,
BGP IPv6 multicast address family view
Predefined user roles
network-admin
Examples
# In BGP IPv4 unicast address family view, ignore AS_PATH in route selection.
<Sysname> system-view
[Sysname] bgp 100
[Sysname-bgp] address-family ipv4 unicast
[Sysname-bgp-ipv4] bestroute as-path-neglect
# In BGP-VPN IPv6 unicast address family view, ignore AS_PATH in route selection.
<Sysname> system-view
[Sysname] bgp 100
[Sysname-bgp] ip vpn-instance vpn1
[Sysname-bgp-vpn1] address-family ipv6 unicast
[Sysname-bgp-ipv6-vpn1] bestroute as-path-neglect
bestroute compare-med
Use bestroute compare-med to enable MED comparison for routes on a per-AS basis.
Use undo bestroute compare-med to restore the default.
Syntax
bestroute compare-med
undo bestroute compare-med
Default
MED comparison for routes on a per-AS basis is disabled.
Views
BGP IPv4 unicast address family view, BGP-VPN IPv4 unicast address family view, BGP IPv6 unicast
address family view, BGP IPv4 multicast address family view, BGP IPv6 multicast address family view