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 unicast/multicast address family):
Step | Command | Remarks | |
---|---|---|---|
1. Enter system view. | system-view | N/A | |
2. Enter BGP IPv4 unicast address family view, BGP-VPN IPv4 unicast address family view, or BGP IPv4 multicast address family view. |
| N/A | |
3. Specify the maximum number of BGP ECMP routes for load balancing. | balance [ ebgp | eibgp | ibgp ] number | By default, load balancing is disabled. | |
4. (Optional.) Enable BGP to ignore the AS_PATH attribute when it implements load balancing. | balance as-path-neglect | By default, BGP does not ignore the AS_PATH attribute when it implements load balancing. | |
5. (Optional.) Enable load balancing for routes that have different AS_PATH attributes of the same length. | balance as-path-relax | By default, BGP cannot perform load balancing for routes that have different AS_PATH attributes of the same length. |
To specify the maximum number of BGP ECMP routes for load balancing (IPv6 unicast/multicast address family):
Step | Command | Remarks | |
---|---|---|---|
1. Enter system view. | system-view | N/A | |
2. Enter BGP IPv6 unicast address family view, BGP-VPN IPv6 unicast address family view, or BGP IPv6 multicast address family view. |
| N/A | |
3. Specify the maximum number of BGP ECMP routes for load balancing. | balance [ ebgp | eibgp | ibgp ] number | By default, load balancing is disabled. | |
4. (Optional.) Enable BGP to ignore the AS_PATH attribute when it implements load balancing. | balance as-path-neglect | By default, BGP does not ignore the AS_PATH attribute when it implements load balancing. | |
5. (Optional.) Enable load balancing for routes that have different AS_PATH attributes of the same length. | balance as-path-relax | By default, BGP cannot perform load balancing for routes that have different AS_PATH attributes of the same length. |