R3102-R3103-HP 6600/HSR6600 Routers Layer 3 - IP Routing Command Reference

212
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.
<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
# In BGP-VPN instance view, set the number of BGP ECMP routes 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
# In BGP-VPN instance view, set the number of IBGP ECMP routes 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 ibgp 2
# In BGP-VPN instance view, set the number of EBGP ECMP routes 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 ebgp 2
Related commands
display bgp routing-table