Examples
# In BGP view, set the number of routes participating in BGP load balancing to 2.
<Sysname> system-view
[Sysname] bgp 100
[Sysname-bgp] balance 2
# In BGP-VPN instance view, set the number of routes participating in BGP load balancing to 2. (The
VPN has been created.)
<Sysname> system-view
[Sysname] bgp 100
[Sysname-bgp] ipv4-family vpn-instance vpn1
[Sysname-bgp-ipv4-vpn1] balance 2
bestroute as-path-neglect (BGP/BGP-VPN instance view)
Syntax
bestroute as-path-neglect
undo bestroute as-path-neglect
View
BGP view, BGP-VPN instance view
Default level
2: System level
Parameters
None
Description
Use
bestroute as-path-neglect
to configure BGP not to consider the AS_PATH during best route
selection.
Use
undo bestroute as-path-neglect
to configure BGP to consider the AS_PATH during best route
selection.
By default, BGP considers the AS_PATH during best route selection.
Examples
# In BGP view, ignore AS_PATH in route selection.
<Sysname> system-view
[Sysname] bgp 100
[Sysname-bgp] bestroute as-path-neglect
# In BGP-VPN instance view, ignore AS_PATH in route selection. (The VPN has been created.)
<Sysname> system-view
[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)
Syntax
bestroute compare-med
189