F3215-HP Load Balancing Module Network Management Command Reference-6PW101

244
Usage guidelines
Unlike IGP, BGP has no explicit metric for making load balancing decision. Instead, it implements load
balancing by using route selection rules.
If you do not provide the ibgp or the ebgp keyword, this command configures load balancing for all BGP
routes.
After you execute the balance ibgp number or the balance ebgp number command, the balance number
command cannot be executed. To execute the balance number command, you must first use the undo
form of the balance ibgp number or balance ebgp number command to remove the former configuration.
Examples
# In BGP view, set the number of BGP ECMP routes to 2.
<Sysname> system-view
[Sysname] bgp 100
[Sysname-bgp] balance 2
# In BGP view, set the number of IBGP ECMP routes to 2.
<Sysname> system-view
[Sysname] bgp 100
[Sysname-bgp] balance ibgp 2
# In BGP view, set the number of EBGP ECMP routes to 2.
<Sysname> system-view
[Sysname] bgp 100
[Sysname-bgp] balance ebgp 2
Related commands
display bgp routing-table
bestroute as-path-neglect (BGP 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
Default command level
2: System level
Examples
# In BGP view, ignore AS_PATH in route selection.
<Sysname> system-view
[Sysname] bgp 100