217
To do…
Use the command…
Remarks
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 IPv4 VPN view
ipv4-family
Optional
Apply the tunnel 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 the 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 cr-lsp lsp load-balance-number
1
command configured, VPN uses an LSP tunnel when no
CR-LSP exists. After a CR-LSP is created, the VPN uses the CR-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 IPv4 VPNs in both VPN instance view and IPv4 VPN view. A
tunneling policy configured in IPv4 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 (no load balancing) in this order: LSP
tunnel, CR-LSP tunnel.
Configuring an LDP instance
LDP instances are for carrier’s carrier network applications.
This task is to configure the LDP capability for an existing VPN instance, create an LDP instance for the
VPN instance, and configure LDP parameters for the LDP instance.
To configure an LDP instance:
To do…
Use the command…
Remarks
Enter system view
system-view
—
Enable LDP for a VPN instance,
create an LDP instance, and enter
MPLS LDP VPN instance view
mpls ldp
vpn-instance
vpn-instance-name
Required
Disabled by default