This section describes how to configure traffic steering to recurse a route to an SR-MPLS TE Policy so that traffic can be forwarded through the path specified by the SR-MPLS TE Policy.
After an SR-MPLS TE Policy is configured, traffic needs to be steered into the policy for forwarding. This process is called traffic steering. Currently, SR-MPLS TE Policies can be used for various routes and services, such as BGP and static routes as well as BGP4+ 6PE, BGP L3VPN, and EVPN services. This section describes how to use tunnel policies to recurse services to SR-MPLS TE Policies.
Use either of the following procedures based on the traffic steering mode you select:
Run system-view
The system view is displayed.
Run tunnel-policy policy-name
A tunnel policy is created and the tunnel policy view is displayed.
(Optional) Run description description-information
Description information is configured for the tunnel policy.
Run tunnel select-seq sr-te-policy load-balance-number load-balance-number unmix
The tunnel selection sequence and number of tunnels for load balancing are configured.
Run commit
The configuration is committed.
Exit the tunnel policy view.
The system view is displayed.
The Segment Routing view is displayed.
An SR-MPLS TE Policy group is created and the SR-MPLS TE Policy group view is displayed.
An endpoint is configured for the SR-MPLS TE Policy group.
Run color color-value match dscp { ipv4 | ipv6 } { { dscp-value1 [ to dscp-value2 ] } &<1-64> | default }
A rule is configured for the mapping between the color values of SR-MPLS TE Policies in an SR-MPLS TE Policy group and the DSCP values of packets.
Each SR-MPLS TE Policy in the SR-MPLS TE Policy group has its own color attribute. To configure mappings between the color values of SR-MPLS TE Policies in an SR-MPLS TE Policy group and the DSCP values of packets to be steered into the SR-MPLS TE Policies, run the color match dscp command. In this way, DSCP values, color values, and SR-MPLS TE Policies are associated within the SR-MPLS TE Policy group. Based on the association, packets with the specified DSCP values can be steered into SR-MPLS TE Policies with the mapping color values.
The mappings between color and DSCP values can be separately configured for an IPv4 or IPv6 address family. However, in the same IPv4 or IPv6 address family, each DSCP value can be associated with only one SR-MPLS TE Policy. Only up SR-MPLS TE Policies can be associated with DSCP values.
You can run the color color-value match dscp { ipv4 | ipv6 } default command to specify a default SR-MPLS TE Policy for an IPv4 or IPv6 address family. When a DSCP value is not associated with any SR-MPLS TE Policy in an SR-MPLS TE Policy group, the packets with this DSCP value are forwarded through the default SR-MPLS TE Policy. In an SR-MPLS TE Policy group, only one default SR-MPLS TE Policy can be specified for an IPv4 or IPv6 address family.
Return to the SR view.
Return to the system view.
A tunnel policy is created and the tunnel policy view is displayed.
Description information is configured for the tunnel policy.
Run tunnel binding destination dest-ip-address sr-te-policy group sr-te-policy-group-id [ ignore-destination-check ] [ down-switch ]
A tunnel binding policy is configured to bind the destination IP address and SR-MPLS TE Policy group.
The ignore-destination-check keyword is used to disable the function to check the consistency between the destination IP address specified using destination dest-ip-address and the endpoint of the corresponding SR-MPLS TE Policy.
The configuration is committed.
Exit the tunnel policy view.
Configure a non-labeled public BGP route to be recursed to an SR-MPLS TE Policy.
For details about how to configure a non-labeled public BGP route, see Configuring Basic BGP Functions.
Run route recursive-lookup tunnel [ ip-prefix ip-prefix-name ] [ tunnel-policy policy-name ]
The function to recurse a non-labeled public BGP route to an SR-MPLS TE Policy is enabled.
Run commit
The configuration is committed.
Configure a static route to be recursed to an SR-MPLS TE Policy.
For details about how to configure a static route, see Configuring IPv4 Static Routes.
The color attribute cannot be added to static routes. Therefore, static routes support only DSCP-based traffic steering to SR-MPLS TE Policies, not color-based traffic steering to SR-MPLS TE Policies.
Run ip route-static recursive-lookup tunnel [ ip-prefix ip-prefix-name ] [ tunnel-policy policy-name ]
The function to recurse a static route to an SR-MPLS TE Policy for MPLS forwarding is enabled.
Run commit
The configuration is committed.
Configure a BGP L3VPN service to be recursed to an SR-MPLS TE Policy.
For details about how to configure a BGP L3VPN service, see Configuring a Basic BGP/MPLS IP VPN.
Run ip vpn-instance vpn-instance-name
The VPN instance view is displayed.
Run ipv4-family
The VPN instance IPv4 address family view is displayed.
Run tnl-policy policy-name
A tunnel policy is applied to the VPN instance IPv4 address family.
The default color used by the L3VPN service to recurse to the SR-MPLS TE Policy tunnel is set.
After a remote VPN route is leaked to the local VPN instance, if the route does not carry the color extended community attribute, the default color value is used for SR-MPLS TE Policy recursion.
Run commit
The configuration is committed.
Configure a BGP L3VPNv6 service to be recursed to an SR-MPLS TE Policy.
For details about how to configure a BGP L3VPNv6 service, see Configuring a Basic BGP/MPLS IPv6 VPN.
Run ip vpn-instance vpn-instance-name
The VPN instance view is displayed.
Run ipv6-family
The VPN instance IPv6 address family view is displayed.
Run tnl-policy policy-name
A tunnel policy is applied to the VPN instance IPv6 address family.
The default color used by the L3VPNv6 service to recurse to the SR-MPLS TE Policy tunnel is set.
After a remote VPN route is leaked to the local VPN instance, if the route does not carry the color extended community attribute, the default color value is used for SR-MPLS TE Policy recursion
Run commit
The configuration is committed.
Configure a BGP4+ 6PE service to be recursed to an SR-MPLS TE Policy.
For details about how to configure a BGP4+ 6PE service, see Configuring BGP4+ 6PE.
Run bgp { as-number-plain | as-number-dot }
The BGP view is displayed.
Run ipv6-family unicast
The BGP IPv6 unicast address family view is displayed.
Run peer ipv4-address enable
A 6PE peer is enabled.
Run peer ipv4-address tnl-policy tnl-policy-name
A tunnel policy is applied to the 6PE peer.
Run commit
The configuration is committed.
Configure an EVPN service to be recursed to an SR-MPLS TE Policy.
For details about how to configure an EVPN service, see Configuring BD-EVPN Functions.
Run ip vpn-instance vpn-instance-name
The VPN instance view is displayed.
The VPN instance IPv4/IPv6 address family view is displayed.
Run tnl-policy policy-name evpn
A tunnel policy is applied to the EVPN L3VPN instance.
The default color used by the EVPN L3VPN service to recurse to the SR-MPLS TE Policy tunnel is set.
After a remote EVPN route is leaked to the local VPN instance, if the route does not carry the color extended community attribute, the default color value is used for SR-MPLS TE Policy recursion.
Run commit
The configuration is committed.
Run evpn vpn-instance vpn-instance-name bd-mode
The BD EVPN instance view is displayed.
Run tnl-policy policy-name
A tunnel policy is applied to the BD EVPN instance.
The default color used by the EVPN service to recurse to the SR-MPLS TE Policy tunnel is set.
After a remote EVPN route is leaked to the local EVPN instance, if the route does not carry the color extended community attribute, the default color value is used for SR-MPLS TE Policy recursion.
Run commit
The configuration is committed.
Run evpn vpn-instance vpn-instance-name vpws
The view of the EVPN instance that works in EVPN VPWS mode is displayed.
Run tnl-policy policy-name
A tunnel policy is applied to the EVPN instance that works in EVPN VPWS mode.
The default color used by the EVPN service to recurse to the SR-MPLS TE Policy is set.
After a remote EVPN route is leaked to the local EVPN instance, if the route does not carry the color extended community attribute, the default color value is used for SR-MPLS TE Policy recursion.
Run commit
The configuration is committed.
Run evpn vpn-instance vpn-instance-name
The EVPN instance view is displayed.
Run tnl-policy policy-name
A tunnel policy is applied to the basic EVPN instance.
Run commit
The configuration is committed.