252
To configure a tunneling policy for a VPN instance:
Ste
Command
Remarks
1. Enter system view.
system-view N/A
2. Create a tunneling
policy and enter
tunneling policy view.
tunnel-policy tunnel-policy-name N/A
3. Configure a preferred
tunnel and specify a
tunnel interface for it.
preferred-path number interface
tunnel tunnel-number
[ disable-fallback ]
Optional.
By default, no preferred tunnel is
configured.
In a tunneling policy, you can configure up
to 64 preferred tunnels.
The tunnel interfaces specified for the
preferred tunnels can have the same
destination address and the tunnel
encapsulation type must be MPLS TE.
4. Specify the tunnel
selection preference
order and the number
of tunnels for load
balancing.
tunnel select-seq { cr-lsp | lsp } *
load-balance-number number
Optional.
By default, only one tunnel is selected (no
load balancing) in this order: LSP tunnel,
CR-LSP tunnel.
NOTE:
• A tunnel type closer to the select-seq
keyword has a higher priority. For
example, with the tunnel select-seq lsp
cr-lsp load-balance-number 1
command configured, VPN uses a
CR-LSP tunnel only when no LSP exists.
After an LSP is created, the VPN uses
the LSP tunnel instead.
• If you specify more than one tunnel type
and the number of tunnels of a type is
less than the specified number of
tunnels for load balancing, tunnels of
different types may be used.
5. Return to system view.
quit N/A
6. Enter VPN instance
view.
ip vpn-instance
vpn-instance-name
N/A
7. Enter IPv4 VPN view.
ipv4-family Optional.
8. Apply the tunnel policy
to the VPN instance.
tnl-policy tunnel-policy-name
By default, only one tunnel is selected (no
load balancing) in this order: LSP tunnel,
CR-LSP tunnel.
NOTE:
• A tunneling policy configured in VPN instance view is applicable to both IPv4 VPNs and IPv6 VPNs.
• You can configure a tunneling policy for IPv4 VPNs in both VPN instance view and IPv4 VPN view. A
tunneling policy configured in IPv4 VPN view takes precedence.