By default, routes are recursed to a BD EVPN or BGP VPNv4/VPNv6 network over MPLS LDP tunnels. If SR tunnels are used to carry service traffic, the function to recurse routes over SR tunnels must be configured.
Context
You can configure a tunnel policy or an SR-MPLS BE tunnel-preferred policy to recurse routes over SR tunnels.
Procedure
- Configure a tunnel policy on PEs, DC-GWs, and L2GW/L3GWs and apply the tunnel policy. You can choose to recurse routes over SR-MPLS BE or SR-MPLS TE tunnels. For configuration details, see Configuring and Applying a Tunnel Policy.
- Configure an SR-MPLS BE tunnel-preferred policy on PEs, DC-GWs, and L2GW/L3GWs so that users can choose to recurse routes over SR-MPLS BE tunnels.
- Run system-view
The system view is displayed.
- Run segment-routing
The segment routing view is displayed.
- Run tunnel-prefer segment-routing
SR-MPLS BE tunnels are enabled to take precedence over other tunnels.
- Run commit
The configuration is committed.