The maximum load-balancing ingress-lsp command sets the maximum number of equal-cost BGP labeled routes for ingress LSP load balancing.
The undo maximum load-balancing ingress-lsp command restores the maximum number of equal-cost BGP labeled routes to the default value 1.
The maximum load-balancing transit-lsp command sets the maximum number of equal-cost BGP labeled routes for transit LSP load balancing.
The undo maximum load-balancing transit-lsp command restores the maximum number of equal-cost BGP labeled routes to the default value 1.
By default, the maximum number of equal-cost BGP labeled routes is 1, and ingress LSP load balancing and transit LSP load balancing are not implemented.
Parameter | Description | Value |
---|---|---|
transit-lsp transitNumber |
Specifies the maximum number of equal-cost routes for load balancing. |
The value is an integer that ranges from 1 to 16. |
ingress-lsp ingressNumber |
Specifies the maximum number of equal-cost routes for load balancing. |
The value is an integer ranging from 1 to 16. |
Usage Scenario
Multiple paths can be used for load balancing. To use this method, equal-cost routes must exist and you need to configure the maximum number of load-balancing routes.
After BGP load balancing is configured, the routes that meet the following conditions can implement load balancing as equal-cost routes:Precautions
The maximum load-balancing ingress-lsp and ingress-lsp protect-mode commands are mutually exclusive.
After configuring transit LSP load balancing, run the display bgp vpnv4 all routing-table commands to check whether load balancing has taken effect on the transit node. If BGP labeled routes fail to recurse to tunnels, the routes cannot implement load balancing.<HUAWEI> system-view [~HUAWEI] ip vpn-instance vpna [*HUAWEI-vpn-instance-vpna] ipv4-family [*HUAWEI-vpn-instance-vpna-af-ipv4] route-distinguisher 1:1 [*HUAWEI-vpn-instance-vpna-af-ipv4] quit [*HUAWEI-vpn-instance-vpna] quit [*HUAWEI] bgp 100 [*HUAWEI-bgp] ipv4-family vpn-instance vpna [*HUAWEI-bgp-vpna] maximum load-balancing ingress-lsp 2
<HUAWEI> system-view [~HUAWEI] ip vpn-instance vpna [*HUAWEI-vpn-instance-vpna] ipv4-family [*HUAWEI-vpn-instance-vpna-af-ipv4] route-distinguisher 1:1 [*HUAWEI-vpn-instance-vpna-af-ipv4] quit [*HUAWEI-vpn-instance-vpna] quit [*HUAWEI] bgp 100 [*HUAWEI-bgp] ipv4-family vpn-instance vpna [*HUAWEI-bgp-vpna] maximum load-balancing transit-lsp 2