Importing Traffic to an SR-MPLS TE Tunnel
An SR-MPLS TE tunnel does not automatically import traffic. To enable traffic to travel along an SR-MPLS TE tunnel, you need to use some methods to import traffic to the SR-MPLS TE tunnel.
Pre-configuration Tasks
Before importing traffic to the SR-MPLS TE tunnel, complete the following tasks:
Configure an SR-MPLS TE tunnel. For details, see Configuring an SR-MPLS TE Tunnel.
Configuring Static Routes
Procedure
Static routes in an SR-MPLS TE tunnel are similar to common static routes. You only need to configure a static route with an SR-MPLS TE tunnel interface as the outbound interface. For detailed instructions, see Configuring IPv4 Static Routes in the CloudEngine 12800 and 12800E Series Switches Configuration Guide - IP Unicast Routing.
Configuring MQC Redirection
Context
To transmit specific traffic over an SR-MPLS TE tunnel, traffic is filtered out based on MQC traffic policies and redirected to the SR-MPLS TE tunnel interface.
Procedure
Apply MQC traffic policies in the inbound direction to redirect packets matching traffic classification rules to the SR-MPLS TE tunnel. For details, see Configuring Redirection in the CloudEngine 12800 and 12800E Series Switches Configuration Guide - QoS.
Configuring a Tunnel Policy
Context
A tunnel policy can be configured to import VPN traffic and unlabeled routes of the public network to an SR-MPLS TE tunnel.
Procedure
Configure a tunnel policy to import VPN traffic to an SR-MPLS TE tunnel.
Typically, VPN traffic is forwarded through an LSP tunnel but not an SR-MPLS TE tunnel. To import VPN traffic to the SR-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: This specifies the sequence in which different types of tunnels are selected by the VPN. For example, you can specify the VPN to select the SR-MPLS TE tunnel first.
- Tunnel binding policy: This binds an SR-MPLS TE tunnel to a specified VPN by binding a specified destination address to the SR-MPLS 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 an SR-MPLS 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 an SR-MPLS TE tunnel, you can run the display bgp routing-table network command to view route iteration information.
Configuring Auto Routes
Context
After you configure auto routes, SR-MPLS TE tunnels act as logical links to participate in IGP route calculation and tunnel interfaces are used as the outbound interfaces of packets. Devices on a network determine whether to advertise LSP information to neighboring nodes to instruct packet forwarding. You can configure automatic routes following Configuring IGP shortcut. The SR-MPLS TE tunnel is not advertised to neighbor nodes in this mode. Therefore, the SR-MPLS TE tunnel participates only in local route calculation and other nodes cannot use this tunnel.