Exclusive tunnel configuration example
Network requirements
PE 1 has multiple tunnels to reach PE 2: one MPLS TE tunnel on the interface Tunnel 1, and one LDP LSP tunnel.
One MPLS VPN vpna exists on PE 1. The VPN exclusively uses the MPLS TE tunnel.
Configuration procedure
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 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