The peer load-balancing command enables MBGP peer group based load balancing.
The undo peer load-balancing command restores the default configuration.
By default, MBGP load balancing is not enabled.
Parameter | Description | Value |
---|---|---|
peerGroupName |
Specifies the name of an MBGP peer group. |
The value is a string of 1 to 47 case-sensitive characters, spaces not supported. |
as-path-ignore |
Prevents the router from comparing AS_Path attributes when selecting routes for load balancing. |
- |
as-path-relax |
Configures the device to ignore comparing the AS_Path attributes of the same length when selecting routes for load balancing. |
- |
Usage Scenario
On large networks, there may be multiple valid routes to the same destination. MBGP, however, advertises only the optimal route to its peers. This may result in unbalanced traffic on different routes. To prevent this problem, configure load balancing.
After the peer load-balancing command is run, BGP peer-based load balancing is implemented only when the following conditions are met:Precautions
The maximum load-balancing and the peer load-balancing commands are mutually exclusive.
<HUAWEI> system-view [~HUAWEI] bgp 100 [*HUAWEI-bgp] group test1 internal [*HUAWEI-bgp] group test2 internal [*HUAWEI-bgp] ipv4-family multicast [*HUAWEI-bgp-af-multicast] peer test1 enable [*HUAWEI-bgp-af-multicast] peer test2 enable [*HUAWEI-bgp-af-multicast] peer test1 load-balancing [*HUAWEI-bgp-af-multicast] peer test2 load-balancing