R2511-HP MSR Router Series Layer 3 - IP Routing Command Reference(V5)

201
Parameters
number: Specifies the number of BGP routes for load balancing, in the range of 1 to 8. When it is set to
1, load balancing is disabled.
Usage guidelines
Unlike IGP, BGP has no explicit metric for making load balancing decision. Instead, it implements load
balancing by using route selection rules.
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
Related commands
display bgp routing-table
bestroute as-path-neglect (BGP/BGP-VPN instance view)
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.
Syntax
bestroute as-path-neglect
undo bestroute as-path-neglect
Default
BGP considers the AS_PATH during best route selection.
Views
BGP view, BGP-VPN instance view
Default command level
2: System level
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