Switching · 6 min read · 19 November 2026

What Is VXLAN and EVPN? A Plain-English Guide for Network Teams

VXLAN and BGP EVPN explained simply: how VXLAN stretches Layer 2 over a routed network, what EVPN adds, VNIs and VTEPs, and when you need them.

VXLAN (Virtual Extensible LAN) carries Layer 2 Ethernet traffic inside UDP packets across a routed Layer 3 network. EVPN (Ethernet VPN) is the BGP-based control plane that tells every switch where each MAC and IP address lives. Together they let a data center fabric route on every link while virtual machines and containers keep their Layer 2 networks wherever they move.

Why VXLAN exists

Classic VLANs are limited to 4,094 IDs and depend on Layer 2 everywhere, with spanning tree blocking redundant links. Data centers wanted a routed fabric with all links active, but applications still need the same subnet in many racks. VXLAN solves both: it uses a 24-bit VNI (about 16 million segments) and tunnels Layer 2 over the routed fabric.

The building blocks

TermMeaning
VTEPVXLAN tunnel endpoint: usually the leaf switch that encapsulates and decapsulates traffic
VNIVXLAN network identifier: the segment ID, like a VLAN ID but much larger
UnderlayThe routed IP network between switches (often OSPF or BGP with ECMP)
OverlayThe VXLAN segments that run on top of the underlay
EVPNBGP address family that advertises MAC and IP addresses, so switches learn without flooding

What EVPN adds

Early VXLAN learned addresses by flooding, like a normal switch. EVPN replaces flooding with BGP routes: each leaf advertises the hosts behind it. The result is less broadcast traffic, faster moves of virtual machines, built-in multi-homing, and distributed gateways where every leaf routes for its local subnets.

Do you need VXLAN?

  • Yes for leaf-spine data centers with many racks, virtualisation clusters, multi-tenant hosting, or several data center halls.
  • Usually no for a single server room with a pair of switches, or for campus access networks, where VLANs and Layer 3 routing are simpler.

In tenders, describe the requirement: a leaf-spine fabric with VXLAN, BGP EVPN and M-LAG dual-homing. Then confirm each feature on the datasheet of the switch you propose.

FAQ

Frequently asked questions

Is VXLAN the same as a VLAN?

No. A VLAN tags frames on one Layer 2 network; VXLAN encapsulates frames in UDP so they can cross a routed network, with far more segment IDs.

What port does VXLAN use?

UDP port 4789 by default.

Does VXLAN add overhead?

About 50 bytes per frame, so fabrics normally raise the MTU on underlay links (for example to 9,000 bytes).

Need help designing your network?

Navijin engineers provide free design consultations, bills of materials and quotations for business projects.