Importing Traffic to an MPLS TE Tunnel
Pre-configuration Tasks
An MPLS TE tunnel does not automatically direct traffic. To enable traffic to travel along an MPLS TE tunnel, you need to use some method to direct traffic to the MPLS TE tunnel.
- Configure a static MPLS TE tunnel. For details, see Configuring a Static MPLS TE Tunnel.
- Configure a dynamic MPLS TE tunnel. For details, see Configuring a Dynamic MPLS TE Tunnel.
- Configure a static DS-TE tunnel. For details, see Configuring a Static DS-TE Tunnel.
- Configure a dynamic DS-TE tunnel. For details, see Configuring a Dynamic DS-TE Tunnel.
Configuring Static Routes
Procedure
Static routes in an MPLS TE tunnel are similar to common static routes. You only need to configure a static route with a TE tunnel interface as the outbound interface. For detailed instructions, see Configuring IPv4 Static Routes in the Huawei AR Series Access Routers Configuration Guide - IP Unicast Routing.
Configuring the Policy-based Routing
Context
The policy-based routing (PBR) allows the system to select routes based on user-defined policies, improving security and load balancing traffic. If PBR is enabled on an MPLS network, IP packets are forwarded over specific CR-LSPs based on PBR rules.
Procedure
MPLS TE PBR, the same as IP unicast PBR, is implemented based on a set of matching rules and behaviors. The rules and behaviors are defined using apply clauses, in which the outbound interface is a specific tunnel interface. If packets do not match PBR rules, they are forwarded using IP. If packets match PBR rules, they are forwarded over specific TE tunnels.
For detailed instructions, see Configuring Local PBR in "IP Unicast PBR Configuration" of the Huawei AR Series Access Routers Configuration Guide - IP Unicast Routing.
Configuring a Tunnel Policy
Context
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.
Procedure
- 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.
For detailed instructions, see Configuring and Applying a Tunnel Policy in "BGP MPLS IP VPN Configuration" of the Huawei AR Series Access Routers Configuration Guide - VPN.
Configuring Auto Routes
Context
Configuring IGP shortcut: A device uses a TE tunnel for local route calculation and does not advertise the TE tunnel to its peers as a route. Therefore, the peers of this device cannot use the TE tunnel for route calculation.
Configuring forwarding adjacency: A device uses a TE tunnel for local route calculation and advertises the TE tunnel to its peers as a route. Therefore, the peers of this device can use the TE tunnel for route calculation.
IGP shortcut and forwarding adjacency are exclusive to each other.
When using forwarding adjacency to advertise LSP information to other nodes for bidirectional detection on links, you must configure another tunnel for transmitting packets in the opposite direction, and then enable forwarding adjacency on the two tunnels.
Verifying the Configuration of Importing Traffic to an MPLS TE Tunnel
Procedure
- Run the display current-configuration command to view the configuration for importing traffic to an MPLS TE tunnel.
- Run the display ip routing-table command to view the routes with an MPLS TE tunnel interface as the outbound interface.
- Run the display ospf [ process-id ] traffic-adjustment command to check tunnel information about OSPF processes related to traffic adjustment (IGP shortcut and forwarding adjacency).