Configuring a Tunnel Policy
Context
A tunnel policy can be configured to import VPN traffic and unlabeled routes of the public network to a TE tunnel.
Procedure
Configure a tunnel policy to import VPN traffic to a TE tunnel.
In general, VPN traffic is forwarded through an LSP tunnel but not an MPLS TE tunnel. To import VPN traffic to the MPLS TE tunnel, you need to configure a tunnel policy.
Create a tunnel policy.
You can configure either of the following types of tunnel policies according to service requirements:- Tunnel type prioritizing policy: Such a policy specifies the sequence in which different types of tunnels are selected by the VPN. For example, you can specify the VPN to select the TE tunnel first.
- Tunnel binding policy: This policy binds a TE tunnel to a specified VPN by binding a specified destination address to the TE tunnel to provide QoS guarantee.
- Apply the tunnel policy.
For detailed instructions, see Configuring and Applying a Tunnel Policy in "BGP MPLS IP VPN Configuration" of the CloudEngine 12800 and 12800E Series Switches Configuration Guide - VPN.
Configure a tunnel policy to iterate unlabeled routes of the public network to a TE tunnel.
By default, unlabeled routes of the public network can only be iterated to the outbound interface and the next hop, but not a tunnel.Run system-view
The system view is displayed.
Run tunnel-policy policy-name
A tunnel policy is created, and tunnel policy view is displayed.
(Optional) Run description description-information
The description of the tunnel policy is configured.
Run tunnel select-seq cr-lsp load-balance-number load-balance-number
The sequence in which each type of tunnel is selected and the number of tunnels participating in load balancing are set.
- Run quit
Return to the system view.
Run route recursive-lookup tunnel [ ip-prefix ip-prefix-name ] [ tunnel-policy policy-name ]
The unlabeled route of the public network is allowed to be iterated to the LSP to forward through MPLS.
By default, the unlabeled route of the public network can be iterated only to the outbound interface and the next hop but not the LSP tunnel.
If ip-prefix ip-prefix-name is not set, all static routes and unlabeled BGP routes will be preferentially iterated to LSP tunnels.
- Run commit
The configuration is committed.
After unlabeled routes of the public network are iterated to LSPs, you can run the display bgp routing-table network command to view route iteration information.