Traffic steering into SR-MPLS BE tunnels is to recurse routes to SR-MPLS BE tunnels and forward data using these tunnels.
This section describes how to configure routes and services to recurse to SR-MPLS BE tunnels through tunnel policies.
Before configuring traffic steering into SR-MPLS BE tunnels, complete the following tasks:
Configure BGP routes, static routes, BGP4+ 6PE services, BGP L3VPN services, BGP L3VPNv6 services, and EVPN services correctly.
Configure a filter, such as an IP prefix list, if you want to restrict the route recursive to a specified SR-MPLS BE tunnel.
Perform any of the following configurations based on the traffic steering mode you select.
Comparatively speaking, the tunnel selection sequence mode applies to all scenarios, and the tunnel selector mode applies to inter-AS VPN Option B and inter-AS VPN Option C scenarios.
Tunnel selection sequence
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-lsp 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.
Return to the system view.
Tunnel selector
Run system-view
The system view is displayed.
Run tunnel-selector tunnel-selector-name { permit | deny } node node
A tunnel selector is created and the view of the tunnel selector is displayed.
(Optional) Configure if-match clauses.
Run apply tunnel-policy tunnel-policy-name
A specified tunnel policy is applied to the tunnel selector.
Run commit
The configuration is committed.
Return to the system view.
Configure non-labeled public BGP routes and static routes to recurse to SR-MPLS BE tunnels.
Run route recursive-lookup tunnel [ ip-prefix ip-prefix-name ] [ tunnel-policy policy-name
The function to recurse non-labeled public BGP routes and static routes to SR-MPLS BE tunnels is enabled.
Run commit
The configuration is committed.
Configure non-labeled public BGP routes to recurse to SR-MPLS BE tunnels.
For details about how to configure a non-labeled public BGP route, see Configuring Basic BGP Functions.
Run bgp { as-number-plain | as-number-dot }
The BGP view is displayed.
Run unicast-route recursive-lookup tunnel [ tunnel-selector tunnel-selector-name ]
The function to recurse non-labeled public BGP routes to SR-MPLS BE tunnels is enabled.
The unicast-route recursive-lookup tunnel command and route recursive-lookup tunnel command are mutually exclusive. You can select either of them for configuration.
Run commit
The configuration is committed.
Configure static routes to recurse to SR-MPLS BE tunnels.
For details about how to configure a static route, see Creating IPv4 Static Routes.
Run ip route-static recursive-lookup tunnel [ ip-prefix ip-prefix-name ] [ tunnel-policy policy-name ]
The function to recurse static routes to SR-MPLS BE tunnels for MPLS forwarding is enabled.
The ip route-static recursive-lookup tunnel command and route recursive-lookup tunnel command are mutually exclusive. You can select either of them for configuration.
Run commit
The configuration is committed.
Configure BGP L3VPN services to recurse to SR-MPLS BE tunnels.
For details about how to configure a BGP L3VPN service, see BGP/MPLS IP VPN Configuration.
Run ip vpn-instance vpn-instance-name
The VPN instance view is displayed.
Run ipv4-family
The VPN instance-specific IPv4 address family view is displayed.
Run tnl-policy policy-name
A specified tunnel policy is applied to the VPN instance-specific IPv4 address family.
Run commit
The configuration is committed.
Configure BGP L3VPNv6 services to recurse to SR-MPLS BE tunnels.
For details about how to configure a BGP L3VPNv6 service, see BGP/MPLS IPv6 VPN Configuration.
Run ip vpn-instance vpn-instance-name
The VPN instance view is displayed.
Run ipv6-family
The VPN instance-specific IPv6 address family view is displayed.
Run tnl-policy policy-name
A specified tunnel policy is applied to the VPN instance-specific IPv6 address family.
Run commit
The configuration is committed.
Configure BGP4+ 6PE services to recurse to SR-MPLS BE tunnels.
For details about how to configure a BGP4+ 6PE service, see Configuring BGP4+ 6PE.
Method 1: Apply a tunnel policy to a specified BGP4+ peer.
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 specified 6PE peer is enabled.
Run peer ipv4-address tnl-policy tnl-policy-name
A specified tunnel policy is applied to the 6PE peer.
Run commit
The configuration is committed.
Method 2: Apply a tunnel selector to all the routes of a specified BGP IPv6 unicast address family.
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 unicast-route recursive-lookup tunnel-v4 [ tunnel-selector tunnel-selector-name ]
The function to recurse non-labeled public BGP routes to SR-MPLS BE tunnels is enabled.
The unicast-route recursive-lookup tunnel command and route recursive-lookup tunnel command are mutually exclusive. You can select either of them for configuration.
Run commit
The configuration is committed.
Configure EVPN services to recurse to SR-MPLS BE tunnels.
For details on how to configure EVPN, see EVPN Configuration. The configuration varies according to the service type.
Run ip vpn-instance vpn-instance-name
The VPN instance view is displayed.
Run ipv4-family or ipv6-family
The VPN instance-specific IPv4/IPv6 address family view is displayed.
Run tnl-policy policy-name evpn
A specified tunnel policy is applied to the EVPN L3VPN instance.
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 specified tunnel policy is applied to the BD EVPN instance.
Run commit
The configuration is committed.
Run evpn vpn-instance vpn-instance-name vpws
The view of a specified EVPN instance that works in EVPN VPWS mode is displayed.
Run tnl-policy policy-name
A specified tunnel policy is applied to the EVPN instance that works in EVPN VPWS mode.
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 specified tunnel policy is applied to the basic EVPN instance.
Run commit
The configuration is committed.