Routing integration in SD-WAN: redistribution, loops and migration with legacy WANs
In short: SD-WAN carries routes in its own overlay protocol, such as Cisco OMP, and edges redistribute between the overlay and LAN or data centre protocols. Where sites have more than one path, for example SD-WAN plus legacy MPLS during migration, mutual redistribution can create loops or suboptimal routing. Tags, site-of-origin markers, careful administrative distances and summarisation keep routing stable.
Two routing worlds
Inside the fabric, routes are distributed by the controller using an overlay protocol (Cisco Catalyst SD-WAN uses OMP; other vendors use BGP-based or proprietary methods). Outside, branches may run OSPF with a core switch, and data centres run BGP or OSPF. Edges redistribute routes between these worlds.
Simple sites
A small branch with one SD-WAN edge and connected LAN subnets needs little: advertise connected and static routes into the overlay, and send a default or summary route to the LAN. Problems start at sites with multiple edges or multiple WANs.
Where loops come from
Consider a site with an SD-WAN edge and a legacy MPLS router, both running OSPF with the core switch. A route from another branch arrives via SD-WAN, is redistributed into OSPF, reaches the MPLS router, is redistributed into BGP towards MPLS, arrives back at other sites and may be redistributed into SD-WAN again. Routes circulate and traffic may take strange paths.
Prevention tools
- Route tags: tag routes when redistributing from the overlay into OSPF; deny tagged routes when redistributing back.
- Site of origin (SoO) values or overlay site IDs prevent a site from learning its own routes back via another path.
- Administrative distance: decide which source is preferred (for example SD-WAN preferred over MPLS during migration) and set it consistently on both edges.
- Prefix filtering: only redistribute what is needed.
- Summarisation at hubs and regions reduces routes and churn.
Migrating from MPLS
During migration, hubs often connect to both the SD-WAN and the MPLS network, acting as a gateway so migrated and non-migrated branches can talk. Use clear preferences (SD-WAN first for migrated sites), tags to stop re-advertisement and a plan to remove MPLS routing at each site once migrated.
Verification
- Check where each important prefix is learned from at a sample of sites.
- Trace paths between migrated and non-migrated sites.
- Watch for routing changes and flapping prefixes in monitoring.
Real-world example: the loop during migration
During an MPLS to SD-WAN migration, a dual-router site briefly became a transit for half the network: routes learned via SD-WAN were redistributed into OSPF and then into MPLS BGP, so non-migrated branches sent traffic through it. Applying route tags on redistribution into OSPF and denying them on redistribution into BGP stopped the loop.
Practice
Why can mutual redistribution cause routing loops?
How do route tags help prevent loops?
What role do hubs often play during MPLS migration?
Key takeaways
- SD-WAN overlay routes are redistributed to and from LAN and DC protocols at edges.
- Sites with multiple edges or WANs risk redistribution loops.
- Use tags, site-of-origin, administrative distance, filters and summaries.
- Plan hub gateways and preferences carefully during MPLS migration.
Original content written by Mohamed Fayas for FM TecHub. © 2026 FM TecHub. You're welcome to share a link to this page; please don't copy the text elsewhere without permission.