R3303-HP HSR6800 Routers Layer 3 - IP Routing Command Reference
211
Usage guidelines
During BGP network optimization or upgrade, each change of BGP routing policies triggers route
refreshing, which burdens BGP routers and the network. To resolve this issue, use the undo auto-refresh
enable command to disable the policies from automatically taking effect. After modifying all policies,
execute the refresh bgp or reset bgp command to make the new policies take effect.
Examples
# Disable BGP routing policies from automatically taking effect.
<Sysname> system-view
[Sysname] bgp 100
[Sysname-bgp] undo auto-refresh enablebalance (BGP/BGP-VPN instance view)
Use balance to configure the number of BGP routes for load balancing.
Use undo balance to disable load balancing.
Syntax
balance [ ebgp | ibgp ] number
undo balance [ ebgp | ibgp ]
Default
No load balancing is configured.
Views
BGP view, VPN instance view
Default command level
2: System level
Parameters
ebgp: Configures load sharing for EBGP routes.
ibgp: Configures load sharing for IBGP routes.
number: Specifies the number of BGP routes for load balancing. The value range is 1 to 8, and the
default is 1. 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.
If you do not specify the ibgp or the ebgp keyword, this command configures load sharing for all BGP
routes.
You cannot execute the balance number command after you specify the ibgp or the ebgp keyword. To
execute the balance number command, use the undo command to remove the previous configuration,
and vice versa.
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.