What is EVPN, really?
EVPN stands for Ethernet VPN. At its core, it's a BGP address family that lets you advertise MAC addresses (and optionally IP addresses) through the routing protocol instead of learning them through flooding. That's the whole idea. Everything else, the route types, the multihoming, the ARP suppression, is built on top of that one insight.
Before EVPN, the dominant technology for stretching Layer 2 across an IP network was VPLS (Virtual Private LAN Service). VPLS worked, but it had real problems. EVPN was designed to fix those problems. Understanding what VPLS got wrong is the fastest way to understand what EVPN is doing.
What VPLS Got Wrong
VPLS built a full-mesh of pseudowires between PE routers. Any traffic that couldn't be delivered (broadcast, unknown unicast, multicast) was flooded across every pseudowire to every PE in the VPN. On a small network with a handful of sites, that's manageable. Scale it up to dozens of sites or hundreds of VLANs, and you're flooding enormous amounts of traffic everywhere, all the time.
VPLS also didn't integrate well with Layer 3. If you wanted routing between VLANs, you bolted on a separate L3VPN on top. And multihoming, connecting a CE device to two PE routers for redundancy, was complicated and slow to failover. RSVP-TE fast reroute helped, but the whole thing was fragile.
Multicast in VPLS was its own headache. You either flooded BUM (Broadcast, Unknown unicast, Multicast) traffic everywhere, or you built multicast trees with PIM, which added more state and more complexity to an already complex system.
How EVPN Fixes This
EVPN moves MAC learning from the data plane to the control plane. Instead of learning a MAC address when a frame arrives, you learn it from a BGP UPDATE. The ingress PE advertises the MAC address (and the IP address if it knows it) in a BGP EVPN route. Every other PE in the fabric receives that route and installs it in a local forwarding table.
When traffic arrives destined for that MAC, the PE already knows exactly which VTEP (or MPLS tunnel endpoint) to send it to. No flooding. No unknown unicast. The fabric behaves like a network with a full forwarding table from day one.
ARP suppression follows naturally from this. When the PE knows the IP-to-MAC mapping (because EVPN Type 2 routes carry it), it can answer ARP requests locally without sending them across the fabric. This alone eliminates a significant percentage of BUM traffic in most data centers.
EVPN and VXLAN: The Control Plane Meets the Data Plane
EVPN is a control plane technology. It says nothing about how the actual frames get encapsulated and forwarded. That's the data plane's job, and you have two main options: VXLAN and MPLS.
In the data center, VXLAN is by far the more common choice. VXLAN encapsulates Layer 2 frames in a UDP header with a 24-bit VNI (VXLAN Network Identifier). The device doing the encapsulation is called a VTEP (VXLAN Tunnel Endpoint). In a spine-leaf fabric, every leaf switch is a VTEP.
When EVPN runs over VXLAN, the BGP EVPN control plane distributes the MAC-to-VTEP-IP mappings. When a frame needs to be forwarded across the fabric, the ingress VTEP looks up the destination MAC in its BGP-populated table, encapsulates the frame with the appropriate VXLAN header pointing at the remote VTEP's IP, and sends it over the IP underlay. The remote VTEP decapsulates it and delivers it to the destination.
In service provider networks, MPLS is more common. The control plane is the same BGP EVPN, but instead of VXLAN encapsulation you get MPLS labels. The fundamentals don't change.
The Five EVPN Route Types
EVPN defines five BGP route types, each carrying different information for different purposes. You don't need to memorize all five to get started, but knowing what they're for helps you read a BGP table.
Type 1 (Ethernet Auto-Discovery): Advertises that an Ethernet Segment exists. Used for multihoming and fast failover.
Type 2 (MAC/IP Advertisement): The core route. Carries a MAC address, optionally an IP address. This is what enables ARP suppression and remote MAC learning.
Type 3 (Inclusive Multicast Ethernet Tag): Builds the BUM replication list. Each VTEP advertises a Type 3 route per VNI, so other VTEPs know who to send broadcast traffic to.
Type 4 (Ethernet Segment): Used for Designated Forwarder election in multihomed scenarios. Prevents duplicate BUM delivery.
Type 5 (IP Prefix): Carries a full IP prefix (subnet or host route) for inter-VNI routing. Used when you need L3 connectivity between VNIs.
In practice, you'll see Type 2 and Type 3 the most. Type 1 and Type 4 show up when you have multihoming. Type 5 appears when you have a border leaf or a symmetric IRB setup doing L3 routing.
Multihoming: ESI and the Designated Forwarder
One of EVPN's biggest improvements over VPLS is clean multihoming. If you connect a CE (server or access switch) to two PE routers for redundancy, EVPN handles this natively.
The connection between the CE and its PE routers is called an Ethernet Segment, identified by an ESI (Ethernet Segment Identifier). All PE routers connected to the same CE share the same ESI. BGP Type 1 and Type 4 routes are exchanged to identify who else is on that segment and to elect a Designated Forwarder (DF) for BUM traffic.
The DF is the one PE that forwards BUM traffic from the CE side into the fabric. The other PEs forward traffic toward the CE but don't replicate BUM. This prevents the CE from receiving duplicate copies of broadcast frames. For unicast traffic in active-active mode, both PEs forward, and aliasing (via Type 1 routes) lets remote VTEPs load-balance across both.
Failover is fast because it's BGP-driven. When a link fails, the affected PE withdraws its Type 1 routes. Other PEs immediately stop sending traffic to the failed VTEP. No waiting for MAC age-out timers.
EVPN in a Spine-Leaf Fabric
In a modern data center spine-leaf fabric, EVPN is almost universal. The topology is simple: every leaf is connected to every spine, and no two leafs are directly connected. Servers connect to leafs. Leafs are VTEPs. Spines are route reflectors (or you run a full eBGP mesh between leafs).
The underlay is typically eBGP or OSPF, ensuring every VTEP can reach every other VTEP's loopback IP. The overlay is BGP EVPN, running in a separate address family (l2vpn evpn) over the same BGP sessions.
Each leaf advertises the MAC addresses of its directly connected servers using Type 2 routes. It advertises its presence for each VNI using Type 3 routes. The spines, acting as route reflectors, distribute these to all other leafs. No leaf needs to flood to discover remote MACs. The control plane does it all.
EVPN vs MPLS Data Plane: When to Use Which
If you're in a data center, you're almost certainly using VXLAN. It runs over standard IP, requires no MPLS-capable hardware, and every modern switching ASIC supports it.
If you're a service provider with MPLS infrastructure already in place, EVPN over MPLS makes sense. You get the same control-plane benefits but keep the MPLS forwarding plane you already have. SRv6 is a third option gaining traction, but EVPN over MPLS is still the dominant SP choice for L2VPN services.
The control plane is identical in both cases. BGP EVPN doesn't care what data plane sits underneath it.
A Quick Config Example (Cisco NX-OS)
Here's what enabling EVPN looks like on a Nexus leaf. This assumes the underlay is already working (loopbacks reachable, BGP sessions up).
! Enable features
feature nv overlay
feature vn-segment-vlan-based
feature bgp ! Map VLAN 10 to VNI 10010
vlan 10 vn-segment 10010 ! NVE interface (VTEP)
interface nve1 no shutdown source-interface loopback0 member vni 10010 ingress-replication protocol bgp ! BGP EVPN address family
router bgp 65001 neighbor 10.0.0.1 remote-as 65000 address-family l2vpn evpn send-community extended ! EVPN instance
evpn vni 10010 l2 rd auto route-target import auto route-target export autoVerification
! Check BGP EVPN table
show bgp l2vpn evpn ! Check NVE peer state
show nve peers ! Check MAC learning via BGP
show mac address-tableWhen to Reach for EVPN
Use EVPN any time you need to stretch Layer 2 across an IP network at scale, want to eliminate BUM flooding, need clean multihoming with sub-second failover, or want to integrate L2 and L3 services under one control plane.
For a greenfield data center, EVPN-VXLAN is the default choice. For service providers replacing VPLS, EVPN over MPLS is the migration path. For anyone running a spine-leaf fabric and still using flood-and-learn VXLAN, moving to EVPN is the natural next step.
The learning curve is in the BGP config and understanding the route types. The operational benefits once you're running it are real: a fabric that doesn't flood, doesn't have unknown unicast storms, and fails over in milliseconds.
Watch the video
Prefer video? This topic has a full deep-dive on YouTube.
Next in this series
EVPN Route Types 1 to 5: What Each One Does and When It Gets Used →
Comments (0)
Please sign in to comment.