The Problem EVPN Solves
Multi-site Layer 2 extension has been a pain point for a long time. You have VMs, bare-metal hosts, or storage systems that need to live in the same broadcast domain across different physical locations, or just across different racks in the same data center. The old answer was VPLS. It worked, but it had serious limitations that became harder to live with as networks scaled.
VPLS flooded unknown unicasts across every pseudowire in the mesh. No MAC learning in the control plane meant every device learned MAC addresses the slow way, through data-plane flooding. No native Layer 3 integration meant you still needed external routers for inter-VLAN routing. No fast failover, no multi-homing without proprietary tricks. The protocol was not designed for the scale modern networks need.
EVPN (Ethernet VPN) replaced all of that with a BGP-based control plane. Instead of flooding to learn MACs, VTEPs advertise them via BGP UPDATE messages. Instead of static pseudowire meshes, the control plane builds and tears down the data plane dynamically. And critically, EVPN handles Layer 3 routing natively, alongside Layer 2 bridging, in the same BGP address family.
The BGP Address Family
EVPN runs in BGP as a separate address family: AFI 25 (L2VPN), SAFI 70 (EVPN). You activate it under your BGP process just like you would VPNv4 or IPv6 unicast. Each BGP peer needs to negotiate this address family during OPEN, and from that point on they can exchange EVPN NLRIs (Network Layer Reachability Information).
The NLRIs carry route type information, so the receiving PE knows what kind of EVPN object is being advertised, whether it is a MAC address, an IP prefix, an Ethernet Segment, or something else. This is fundamentally different from VPLS signaling where you used LDP or BGP-signaled pseudowires with no concept of learned MAC information in the control plane.
The Route Distinguisher (RD) makes EVPN routes unique across different PE routers, and Route Targets (RTs) control import and export policy. The same import/export RT mechanism you know from L3VPN applies here. Configure matching RTs on two PEs and their EVPN tables will synchronize.
The Five Route Types
EVPN defines five main route types, each carrying different information and serving a specific purpose. You will see all of them if you run a data center spine-leaf fabric.
Type 1: Ethernet Auto-Discovery
Type 1 routes handle multi-homing. When a CE device connects to multiple PEs (an Ethernet Segment), each PE originates Type 1 routes to advertise that Ethernet Segment. There are two subtypes: per-EVI (per EVPN instance) and per-ES (per Ethernet Segment).
The per-ES Type 1 is used for mass withdrawal. When a PE loses connectivity to the segment, it can withdraw all EVIs in one shot with a single per-ES withdrawal, rather than withdrawing one route per EVI. This speeds up convergence significantly in large deployments.
Type 2: MAC/IP Advertisement
This is the core EVPN route. A Type 2 carries a MAC address, optionally an IP address, the L2 VNI (or MPLS label), and the L3 VNI for routing. When a VTEP learns a MAC locally (from a connected host), it generates a Type 2 BGP UPDATE and advertises it to all EVPN peers.
Remote VTEPs receive that UPDATE and populate their MAC-VRF tables without ever seeing the original frame. This is the key difference from VPLS: MAC learning happens in the control plane, not from flooding. ARP suppression works the same way. The VTEP stores the MAC-to-IP binding from the Type 2 route and answers ARP requests locally, so ARP floods never cross the fabric.
MAC mobility is also handled through Type 2. When a VM moves from one VTEP to another, the new VTEP advertises the MAC with a higher sequence number. Remote VTEPs prefer the higher sequence, and the old VTEP withdraws its advertisement. The network converges without flooding.
Type 3: Inclusive Multicast Ethernet Tag (IMET)
BUM traffic (Broadcast, Unknown unicast, Multicast) cannot be suppressed entirely. Broadcasts still need to reach all hosts in a segment, and unknown unicasts occasionally slip through. Type 3 routes build the BUM replication list.
Each VTEP originates one Type 3 per VNI. Remote VTEPs collect these routes to know who else is in that VNI and build an ingress replication list. When BUM traffic arrives, the sending VTEP replicates it to everyone on that list. The alternative is multicast in the underlay (using PIM), but ingress replication is more common because it does not require multicast infrastructure.
Type 4: Ethernet Segment Route
When multiple PEs connect to the same Ethernet Segment, only one of them should forward BUM traffic to the CE. Otherwise the CE receives duplicates. Type 4 routes facilitate DF (Designated Forwarder) election.
Each PE connected to an ES advertises a Type 4 for that ES, containing the ES identifier and the originating PE's IP. The PEs run a DF election algorithm, comparing their own IP to their peers' IPs (or using a preference-based algorithm), and one wins per EVI. Only the DF forwards BUM toward the multi-homed CE. All PEs still forward known unicast from the CE using aliasing (via Type 1), so traffic toward the CE is load-balanced while BUM is handled by one elected forwarder.
Type 5: IP Prefix
EVPN Type 5 extends the control plane beyond bridging. It carries IP prefixes (not just host routes), enabling inter-subnet routing in the fabric without centralizing it at a gateway device.
In symmetric IRB (Integrated Routing and Bridging), traffic between subnets is routed at the ingress leaf, encapsulated with an L3 VNI, and de-encapsulated at the egress leaf where the host lives. Type 5 routes advertise IP prefixes into the EVPN control plane so every leaf knows which prefixes are reachable via which L3 VNI. This eliminates the need to redistribute routes between VRFs using traditional techniques like redistribution into BGP or IGP.
VXLAN as the Data Plane
EVPN is a control plane protocol. It needs a data plane encapsulation to carry Ethernet frames across an IP underlay. In data center environments, that is almost always VXLAN.
VXLAN wraps an Ethernet frame in a UDP packet (destination port 4789) with a VXLAN header that carries the 24-bit VNI. The source IP is the local VTEP (a loopback), and the destination IP is the remote VTEP's IP. VTEPs are leaf switches, servers (for host-based overlays), or dedicated gateway devices.
The underlay only needs to route between VTEP loopbacks. It does not need to understand VNIs or EVPN. eBGP, OSPF, or IS-IS in the underlay gives every VTEP reachability to every other VTEP loopback, and the overlay handles the rest.
Symmetric vs Asymmetric IRB
IRB (Integrated Routing and Bridging) describes how a leaf switch handles traffic that needs both L2 and L3 forwarding. There are two modes and they have different trade-offs.
In asymmetric IRB, the ingress leaf does both the L2 and L3 lookup. It routes the packet into the destination subnet's context and then bridges it out the VXLAN interface toward the egress leaf. The egress leaf just bridges. This is simpler but requires every leaf to have SVIs (Switched Virtual Interfaces) for every subnet, even ones it has no local hosts in. At scale this becomes a large and duplicated VRF table on every leaf.
Symmetric IRB routes at both the ingress and egress leaf. The ingress leaf routes into an L3 VNI (a transit VNI used for inter-subnet routing), and the egress leaf routes out of the L3 VNI into the final subnet. Only the egress leaf needs the destination subnet's SVI. This is more scalable. It requires Type 5 routes for prefix distribution and a dedicated L3 VNI per VRF. Symmetric IRB is the standard choice for new deployments.
Multi-Homing with EVPN
EVPN multi-homing is cleaner than anything VPLS offered. The key building block is the ESI (Ethernet Segment Identifier), a 10-byte value that identifies a physical segment. If the same CE connects to two leaves with the same ESI, those leaves know they share a segment.
Once the ESI is configured and Type 1 and Type 4 routes are exchanged, two things happen automatically. First, DF election runs and one leaf is elected as the BUM forwarder for each EVI on that segment. Second, aliasing kicks in: remote VTEPs can load-balance traffic toward the multi-homed CE by hashing to either leaf, even without knowing the specific MAC's location. The CE does not need to run LACP, though active/active LAG is common for bandwidth and failover.
EVPN vs VPLS: The Specific Improvements
EVPN did not just replace VPLS, it fixed the specific things that made VPLS painful:
BGP MAC learning: No flooding to discover MACs. The control plane distributes them before traffic arrives.
ARP suppression: VTEPs answer ARP requests locally using Type 2 MAC/IP bindings. ARP floods stay within the local segment.
L3 integration: Type 5 routes and symmetric IRB give you routing without leaving the EVPN address family or redistributing routes between protocols.
Fast convergence: Mass withdrawal (Type 1 per-ES) and DF re-election are faster than VPLS pseudowire signaling.
Multi-homing: Built-in with ESI, DF election, and aliasing. No proprietary tricks required.
Scalability: BGP route reflectors consolidate EVPN topology, and the control plane does not flood to build its state.
Where EVPN Runs Today
EVPN started in service provider data center interconnect (DCI) use cases. It spread fast to enterprise data centers once VXLAN-capable leaf switches became affordable. Today you find it in:
DC spine-leaf fabrics: The standard underlay/overlay model. Leaves are VTEPs, spines are BGP route reflectors.
Multi-site DCI: Stretching EVPN domains across geographically separated data centers with a Super Spine or WAN PE separating them.
SP WAN: EVPN over MPLS for enterprise L2VPN services, replacing VPLS.
Cloud networking: Large cloud providers use variants of EVPN internally for tenant isolation.
Config Example: EVPN on NX-OS
! Enable features
feature nv overlay
feature vn-segment-vlan-based
feature bgp ! Underlay VTEP loopback
interface loopback0 ip address 10.0.0.1/32 ! Map VLAN to VNI
vlan 100 vn-segment 100100 ! BGP with EVPN address-family
router bgp 65001 router-id 10.0.0.1 neighbor 10.0.0.101 remote-as 65000 address-family l2vpn evpn send-community extended ! NVE interface
interface nve1 no shutdown source-interface loopback0 member vni 100100 associate-vrfVerification starts with show bgp l2vpn evpn to confirm routes are exchanged, show nve peers for data-plane tunnel state, and show mac address-table to confirm remote MACs appear with the correct VTEP as the next hop.
The Bottom Line
EVPN is not complex once you separate the control plane (BGP, route types) from the data plane (VXLAN, MPLS). The five route types each have a specific job, and they work together to give you MAC learning, ARP suppression, multi-homing, and L3 routing without flooding. If you're building or troubleshooting a modern data center fabric, EVPN is the protocol you need to know.
I recorded a full walkthrough of EVPN fundamentals on YouTube. It covers the same material with live topology diagrams and show outputs.
Watch on YouTube
What is EVPN? Full walkthrough with live configs and topology diagrams.
Comments (0)
Please sign in to comment.