R211x-HP Flexfabric 11900 MPLS Command Reference

123
If you specify multiple preferred tunnels that have the same destination address in a tunnel policy, only
the first configured tunnel takes effect. If the first tunnel is not available, the second tunnel is used, and so
forth. No load balancing will be performed on these tunnels.
Examples
# Configure tunnel 1 and tunnel 2 as preferred tunnels for tunnel policy policy1.
<Sysname> system-view
[Sysname] tunnel-policy policy1
[Sysname-tunnel-policy-policy1] preferred-path tunnel 1
[Sysname-tunnel-policy-policy1] preferred-path tunnel 2
select-seq load-balance-number
Use select-seq load-balance-number to configure the tunnel selection order and the number of tunnels
for load balancing.
Use undo select-seq load-balance-number to restore the default.
Syntax
select-seq { cr-lsp | lsp } * load-balance-number number
undo select-seq
Default
The device selects only one tunnel in LSP-CRLSP order.
Views
Tunnel policy view
Predefined user roles
network-admin
mdc-admin
Parameters
cr-lsp: Uses CRLSP tunnels.
lsp: Uses LSP tunnels.
load-balance-number number: Specifies the number of tunnels for load balancing. The value range
depends on the maximum number of ECMP routes configured by the max-ecmp-num command. If the
maximum number is configured as m, the value range for the number argument is 1 to m. For more
information about the max-ecmp-num command, see Layer 3—IP Routing Command Reference.
Usage guidelines
A tunnel type closer to the select-seq keyword has a higher priority, and only the tunnel types specified
in this command can be used. For example, the select-seq lsp cr-lsp load-balance-number 3 command
gives LSP higher priority over CRLSP. If no LSP is available or the number of LSPs is less than 3, VPN uses
CRLSP tunnels.
Tunnels selected by this method are not fixed, making it hard to plan VPN traffic. HP recommends not
using this method.
If you configure both the select-seq load-balance-number command and the preferred-path command
for a tunnel policy, the tunnel policy selects tunnels in the following steps: