176
88B
Tunnel policy configuration examples
219B
Exclusive tunnel configuration example
439B
Network requirements
PE 1 has multiple tunnels to reach PE 2: two MPLS TE tunnels on interface Tunnel 1 and Tunnel 2,
and one LDP LSP tunnel.
Two MPLS VPNs,
vpna
and
vpnb
, exist on PE 1. The VPN
vpna
exclusively uses the MPLS TE
tunnel 1, and the VPN
vpnb
exclusively uses the MPLS TE tunnel 2.
440B
Configuration procedure
1.
Configure tunnel policies on PE 1:
# Create tunnel policy
preferredte1
, and configure tunnel 1 as the preferred tunnel.
<PE1> system-view
[PE1] tunnel-policy preferredte1
[PE1-tunnel-policy-preferredte1] preferred-path tunnel 1
[PE1-tunnel-policy-preferredte1] quit
# Create tunnel policy
preferredte2
, and configure tunnel 2 as the preferred tunnel.
[PE1] tunnel-policy preferredte2
[PE1-tunnel-policy-preferredte2] preferred-path tunnel 2
[PE1-tunnel-policy-preferredte2] 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
preferredte2
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 preferredte2
220B
Preferred tunnel and tunnel selection order configuration
example
441B
Network requirements
PE 1 has multiple tunnels to reach PE 2: two MPLS TE tunnels on interfaces Tunnel 1 and Tunnel 2,
and one LDP LSP tunnel.
PE 1 has multiple MPLS VPN instances: vpna, vpnb, vpnc, vpnd, and vpne.
759H
Table 11
shows the
tunnel policy that PE 1 uses for each VPN instance.
Table 11 Tunnel policies used for VPN instances
VPN instance
Tunnel policy
vpna, vpnb
Use MPLS TE tunnel Tunnel 1 as the preferred tunnel.