191
[PE1-tunnel-policy-preferredgre2] quit
2.
Configure MPLS VPN instances and apply tunnel policies to the VPN instances:
# Create MPLS VPN instance
vpna
, and apply tunnel policy
preferredte1
to it.
[PE1] ip vpn-instance vpna
[PE1-vpn-instance-vpna] route-distinguisher 100:1
[PE1-vpn-instance-vpna] vpn-target 100:1
[PE1-vpn-instance-vpna] tnl-policy preferredte1
[PE1-vpn-instance-vpna] quit
# Create MPLS VPN instance
vpnb
, and apply tunnel policy
preferredgre2
to it.
[PE1] ip vpn-instance vpnb
[PE1-vpn-instance-vpnb] route-distinguisher 100:2
[PE1-vpn-instance-vpnb] vpn-target 100:2
[PE1-vpn-instance-vpnb] tnl-policy preferredgre2
Tunnel selection order configuration example
Network requirements
PE 1 has multiple tunnels to reach PE 2: one MPLS TE tunnel on interface Tunnel 1, one GRE tunnel
on interface Tunnel 2, and one LDP LSP tunnel.
Only one MPLS VPN,
vpna
, exists on PE 1. Select only one tunnel in LDP LSP-MPLS TE-GRE order
for this VPN.
Configuration procedure
# Create tunnel policy
seq-lsp-te-gre
.
<PE1> system-view
[PE1] tunnel-policy seq-lsp-te-gre
# Specify the tunnel selection order, and set the number of tunnels for load balancing to 1—no load
balancing.
[PE1-tunnel-policy-seq-lsp-te-gre] select-seq lsp cr-lsp gre load-balance-number 1
[PE1-tunnel-policy-seq-lsp-te-gre] quit
# Create MPLS VPN instance
vpna
, and apply tunnel policy
seq-lsp-te-gre
to it.
[PE1] ip vpn-instance vpna
[PE1-vpn-instance-vpna] route-distinguisher 100:1
[PE1-vpn-instance-vpna] vpn-target 100:1
[PE1-vpn-instance-vpna] tnl-policy seq-lsp-te-gre
Preferred tunnel and tunnel selection order configuration
example
Network requirements
PE 1 has multiple tunnels to reach PE 2: two MPLS TE tunnels on interfaces Tunnel 1 and Tunnel 3,
one GRE tunnel on interface Tunnel 2, and one LDP LSP tunnel.
PE 1 has multiple MPLS VPN instances: vpna, vpnb, vpnc, vpnd, vpne, vpnf, and vpng.
shows the tunnel policy that PE 1 uses for each VPN instance.