The maximum load-balancing command configures the maximum number of equal-cost routes for load balancing.
The undo maximum load-balancing command restores the default setting.
By default, the maximum number of equal-cost routes for load balancing is 1, and load balancing is not implemented.
maximum load-balancing number
maximum load-balancing ebgp ebgpNumber
maximum load-balancing ibgp ibgpNumber
maximum load-balancing number ecmp-nexthop-changed
maximum load-balancing ebgp ebgpNumber ecmp-nexthop-changed
maximum load-balancing ibgp ibgpNumber ecmp-nexthop-changed
undo maximum load-balancing
undo maximum load-balancing ebgp
undo maximum load-balancing ibgp
Parameter | Description | Value |
---|---|---|
number |
Specifies the maximum number of equal-cost routes for load balancing. |
The value is an integer that ranges from 1 to 128. |
ebgp ebgpNumber |
Specifies the maximum number of equal-cost EBGP routes for load balancing. |
The value is an integer that ranges from 1 to 128. |
ibgp ibgpNumber |
Specifies the maximum number of equal-cost IBGP routes for load balancing. |
The value is an integer that ranges from 1 to 128. |
ecmp-nexthop-changed |
Configures a BGP device to change the next hop addresses of the routes that carry out load balancing to its address. |
- |
Usage Scenario
To configure the maximum number of equal-cost routes for load balancing, run the maximum load-balancing command. Load balancing improves the usage of network resources.
After BGP load balancing is configured, the routes that meet the following conditions can carry out load balancing as equal-cost routes.Configuration Impact
If the maximum load-balancing command is run for multiple times, the latest configuration overrides the previous one.
Precautions
If either the ebgp or the ibgp parameter is configured in the maximum load-balancing command, this parameter must be also configured in the undo maximum load-balancing command to delete load balancing.
The maximum load-balancing and the peer load-balancing commands are mutually exclusive.