Configuring BGP load balancing
Perform this task to specify the maximum number of BGP ECMP routes for load balancing.
To specify the maximum number of BGP ECMP routes for load balancing (IPv4):
Step | Command | Remarks |
---|---|---|
1. Enter system view. | system-view | N/A |
2. Enter BGP view or BGP-VPN instance view. |
| N/A |
3. Enter BGP IPv4 unicast address family view or BGP-VPN IPv4 unicast address family view. | address-family ipv4 [ unicast ] | N/A |
4. Specify the maximum number of BGP ECMP routes for load balancing. | balance { [ ebgp | eibgp | ibgp ] number | as-path-neglect } | By default, load balancing is disabled. |
To specify the maximum number of BGP ECMP routes for load balancing (IPv6):
Step | Command | Remarks |
---|---|---|
1. Enter system view. | system-view | N/A |
2. Enter BGP view or BGP-VPN instance view. |
| N/A |
3. Enter BGP IPv6 unicast address family view or BGP-VPN IPv6 unicast address family view. | address-family ipv6 [ unicast ] | N/A |
4. Specify the maximum number of BGP ECMP routes for load balancing. | balance { [ ebgp | eibgp | ibgp ] number | as-path-neglect } | By default, load balancing is disabled. |
With the as-path-neglect keyword specified, the balance command enables BGP to implement load balancing over routes with different AS_PATH attributes. Use the as-path-neglect keyword according to your network, and make sure a routing loop does not occur.