Configuration procedure

To configure a tunnel policy:

Step

Command

Remarks

1. Enter system view.

system-view

N/A

2. Create a tunnel policy, and enter tunnel policy view.

tunnel-policy tunnel-policy-name

By default, no tunnel policy is configured.

3. Configure tunnel selection methods.

  • (Method 1) Specify a preferred tunnel:preferred-path tunnel number

  • (Method 2) Configure the tunnel selection order and the number of tunnels for load balancing:select-seq { cr-lsp | lsp } * load-balance-number number

Configure one or both methods.

By default, no preferred tunnel is specified.

By default, only one tunnel is selected in LSP—CRLSP order.


[NOTE: ]

NOTE:

For a VPN to exclusively use a tunnel, you can specify the tunnel as the preferred tunnel in a tunnel policy, and apply the policy only to that VPN.