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
| Term | Meaning |
|---|---|
| VTEP | VXLAN tunnel endpoint: usually the leaf switch that encapsulates and decapsulates traffic |
| VNI | VXLAN network identifier: the segment ID, like a VLAN ID but much larger |
| Underlay | The routed IP network between switches (often OSPF or BGP with ECMP) |
| Overlay | The VXLAN segments that run on top of the underlay |
| EVPN | BGP 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).
Related
Keep reading
Leaf-spine vs three-tier
Read more →Find and fix MTU problems
Read more →Inter-VLAN routing on a Layer 3 switch
Read more →Private 5G vs Wi-Fi for Enterprises: Which Wireless Technology Fits?
Compare private cellular networks and enterprise Wi-Fi for factories, ports, campuses and warehouses: coverage, mobility, device support, spectrum, cost and when to combine both.
Read more →What Is Port Security on a Switch? Stop Unknown Devices From Connecting
Switch port security explained: limiting MAC addresses per port, sticky learning, violation modes (protect, restrict, shutdown), when to use it and how it compares with 802.1X.
Read more →Warehouse and Logistics Network Design: Scanners, Cameras and Automation
How to design networks for warehouses and logistics centres: Wi-Fi for scanners and vehicles, outdoor yards and docks, CCTV, industrial switches for automation, and resilience.
Read more →Need help designing your network?
Navijin engineers provide free design consultations, bills of materials and quotations for business projects.