
342
[Sysname-tunnel-policy-po1] quit
[Sysname] ip vpn-instance vpn2
[Sysname-vpn-instance-vpn2] route-distinguisher 22:33
[Sysname-vpn-instance-vpn2] tnl-policy po1
tunnel-policy
Description
Use the
tunnel-policy
command to establish a tunneling policy and enter tunneling policy view.
Use the
undo tunnel-policy
command to delete a tunneling policy.
Related commands:
tunnel select-seq
.
Syntax
tunnel-policy
tunnel-policy-name
undo tunnel-policy
tunnel-policy-name
View
System view
Default level
2: System level
Parameters
tunnel-policy-name
: Specifies the name for the tunneling policy, which is a string of 1 to 19 characters.
Examples
# Establish a tunneling policy named po1 and enter tunneling policy view.
<Sysname> system-view
[Sysname] tunnel-policy po1
[Sysname-tunnel-policy-po1]
tunnel select-seq
Description
Use the
tunnel select-seq
command to configure the preference order for tunnel selection and the number
of tunnels for load balancing.
Use the
undo tunnel
select-seq
command to restore the default.
By default, only one tunnel is selected (no load balancing) in this order: LSP tunnel, CR-LSP tunnel.
You can only use tunnels of the types specified in the
tunnel select-seq
command.
A tunnel type closer to the
select-seq
keyword has a higher priority.
The number of tunnels for load balancing refers to the number of tunnels that an application can use.
CR-LSP tunnels are preferred by the following order: CR-LSPs configured with ACLs, CR-LSPs bound with
VPN, ordinary CR-LSPs. These three types of CR-LSPs are mutually exclusive. Only one of the three types is
selected at a time.
Syntax
tunnel select-seq
{
cr-lsp
|
lsp
} *
load-balance-number
number