343
•
The PE matches the peer PE address against the destination addresses of preferred tunnels, starting
from the tunnel with the smallest number. If no match is found, the local PE selects tunnels as
configured by the
tunnel select-seq
command or the default tunneling policy if the
tunnel select-seq
command is not configured. The default tunneling policy selects only one tunnel (no load balancing)
in this order: LSP tunnel, CR-LSP tunnel.
•
If a matching tunnel is found and the tunnel is available, the local PE stops matching other tunnels
and forwards the traffic to the specified tunnel interface.
•
If the matching tunnel is unavailable (for example, the tunnel is down or the tunnel’s ACL does not
permit the traffic) and is not specified with the
disable-fallback
keyword, the local PE continues to
match other preferred tunnels; if the tunnel is specified with the
disable-fallback
keyword, the local
PE stops matching and tunnel selection fails.
To configure a tunneling policy for a VPN instance:
To do…
Use the command…
Remarks
Enter system view
system-view
—
Create a tunneling policy and
enter tunneling policy view
tunnel-policy
tunnel-policy-name
Required
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.
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.
Return to system view
quit
—
Enter VPN instance view
ip vpn-instance
vpn-instance-name
Required
Enter IPv6 VPN view
ipv6-family
Optional
Apply the tunneling policy to the
VPN instance
tnl-policy
tunnel-policy-name
Required
By default, only one tunnel is
selected (no load balancing) in this
order: LSP tunnel, CR-LSP tunnel.
NOTE:
•
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.
•
When you configure tunnel selection preference order by using the
tunnel select-seq
command, a
tunnel type closer to the
select-seq
keyword has a higher priority. For example, with the
tunnel
select-seq
lsp
gre
load-balance-number
1
command configured, VPN uses a GRE tunnel when no LSP
exists. After an LSP is created, the VPN uses the LSP tunnel instead.
•
A tunneling policy configured in VPN instance view is applicable to both IPv4 VPNs and IPv6 VPNs.
•
You can configure a tunneling policy for IPv6 VPNs in both VPN instance view and IPv6 VPN view. A
tunneling policy configured in IPv6 VPN view takes precedence.
•
Create a tunneling policy before associating it with a VPN instance. Otherwise, the default tunneling
policy is used. The default tunneling policy selects only one tunnel in this order: LSP tunnel, GRE tunnel,
CR-LSP tunnel.