Free tech learning for everyone, from basics to pro

Transport Network DesignNetworking SecurityAdvanced

Data centre interconnect (DCI): connecting two data centres with Layer 3, EVPN-VXLAN and dark fibre

In short: Data centres are connected for replication, backup and failover. Layer 3 interconnects keep each site's failures local and are the safest choice. When applications need the same subnet in both sites, extend Layer 2 with a purpose-built technology such as EVPN-VXLAN rather than plain trunks. Distance and latency limit synchronous storage replication, and active/active designs must plan for split brain.

Why connect data centres?

  • Disaster recovery: replicate data and fail over services if one site is lost.
  • Active/active services: run applications in both sites at once.
  • Workload mobility: move virtual machines between sites for maintenance.
  • Backup to a second location.

Transport options

  • Dark fibre with your own optics or DWDM: highest capacity and lowest latency, full control (see the optical note).
  • Managed wavelengths or carrier Ethernet (E-Line): simpler, provider-managed.
  • MPLS L3VPN or internet with encryption: lower cost for smaller needs.

Use two diverse paths for anything important.

Layer 3 or Layer 2 between data centresLayer 3 DCI (preferred)Routed links, separate subnetsFailures stay localSimple, scalableApps use DNS or load balancersLayer 2 extensionSame VLAN in both sitesLive VM moves keep IPsBroadcast and loops can spreadUse EVPN-VXLAN, not plain trunks
Figure 1. Stretch Layer 2 only when an application truly needs it, and then with a protocol built for it.

Layer 3 interconnect

Each data centre has its own subnets, and routing (BGP or OSPF) runs over the interconnect. A broadcast storm, loop or spanning tree problem in one site stays in that site. Applications fail over using DNS changes, global server load balancing or application-level clustering. This is the recommended default.

Layer 2 extension: when and how

Some applications cannot change IP address when they move, such as older clustered systems or VMs that must live-migrate between sites. Then the same VLAN must exist in both data centres. Stretching it with ordinary trunks joins the two sites' spanning tree and broadcast domains, so a loop in one site can take down both. Use technologies designed for it:

  • EVPN-VXLAN multi-site: the modern standard. MAC and IP addresses are learned and advertised with BGP, flooding is controlled, and each site keeps its own failure domain. Supported by Cisco, Arista, Juniper, NVIDIA and others.
  • Older options such as Cisco OTV or VPLS are found in existing networks.

Even with EVPN, keep stretched VLANs to the minimum and document why each exists.

Storage replication and distance

  • Synchronous replication (every write confirmed at both sites before completing) needs very low latency, typically under about 5 ms round trip, limiting distance to roughly 100 km of fibre path. It gives zero data loss.
  • Asynchronous replication tolerates any distance but may lose a few seconds or minutes of data.

Traffic flow and split brain

  • Traffic tromboning: with stretched subnets, traffic can enter at site A, cross the DCI to a server in site B, and return the same way. Design ingress routing (host routes, load balancers) to send traffic to the right site.
  • Split brain: if the DCI fails but both sites stay up, active/active clusters may both believe they are primary and write different data. Use witness or quorum services in a third location.

Real-world example: the loop that crossed sites

A company stretched every VLAN between its two data centres with plain 802.1Q trunks over dark fibre, to allow VM migration. A cabling mistake during maintenance created a loop in the secondary site, and the broadcast storm crossed the trunks and took down the primary site too. The redesign used Layer 3 for most networks and EVPN-VXLAN for the few VLANs that genuinely needed stretching, with storm control at the boundary.

Practice

Why is a Layer 3 interconnect between data centres preferred?
Failures such as loops and broadcast storms stay within one site, and the design is simpler and scales better.
What is the recommended modern technology for extending Layer 2 between data centres?
EVPN-VXLAN (multi-site).
What limits the distance for synchronous storage replication?
Latency: each write must be confirmed at both sites, which typically needs under about 5 ms round trip.

Key takeaways

  • Connect data centres for DR, active/active services, mobility and backup.
  • Prefer Layer 3 interconnects; stretch Layer 2 only when truly needed.
  • Use EVPN-VXLAN for Layer 2 extension, never plain trunks.
  • Plan for latency limits, traffic tromboning and split brain.
Tracks your learning on this device only. See your progress on the learning paths.
Verified author✓ Valid
Issued to
Mohamed Fayas
Role
Founder of FM TecHub
Credentials
CCNABTEC HND Network EngineeringBEng (Hons) Computer Networking & Cloud Security
Issuer
FM TecHub · fmtechub.com

He writes practical, plain-English guides on networking, security and cloud.

More about the author →

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.

Email updates: coming soon

New notes, tools and security news from FM TecHub by email, explained simply. Free. We're not collecting email addresses yet; see our privacy policy.

PortServiceStatus
SMTP/25Email updatesopening soon

Meanwhile, stay connected: