EVPN is a technology designed to extend Layer 2 networks over Layer 3 infrastructure, making it possible to connect geographically distributed sites while maintaining the simplicity of Layer 2 operations.
Why EVPN?
Key Benefits:
EVPN uses BGP EVPN address family to exchange information about Layer 2/Layer 3 endpoints. The key route types are:
VXLAN is commonly used with EVPN to encapsulate Layer 2 frames over a Layer 3 network.
Purpose:
Key Components:
Benefits:
EVPN instances group configurations for Layer 2 and Layer 3 services.
Define the EVPN Instance:
set routing-instances evpn-instance instance-type evpn
Enable EVPN Protocols:
set routing-instances evpn-instance protocols evpn
Configure VXLAN and VNI:
set routing-instances evpn-instance vxlan vni 1001
Objective:
Components:
Configuration on Router R1:
Define the EVPN instance:
set routing-instances evpn-dc1 instance-type evpn
Configure EVPN protocol:
set routing-instances evpn-dc1 protocols evpn
Configure VXLAN and VNI:
set routing-instances evpn-dc1 vxlan vni 1001
Define the bridge domain for Layer 2 traffic:
set routing-instances evpn-dc1 bridge-domains vlan-1001 vlan-id 1001
set routing-instances evpn-dc1 bridge-domains vlan-1001 vxlan vni 1001
Configuration on Router R2:
Cause:
Solution:
Verify MAC learning with:
show evpn mac
Cause:
Solution:
Verify Type 3 routes:
show evpn route type-3
Multi-homing provides redundancy by connecting a device to two or more VTEPs (VXLAN Tunnel Endpoints). If one VTEP fails, traffic can continue through the other.
Define the Ethernet segment:
set routing-instances evpn-instance protocols evpn ethernet-segment esi 0000:0000:0000:0000:0001
Enable multi-homing on the interfaces:
set interfaces ae0 esi 0000:0000:0000:0000:0001
set routing-instances evpn-instance protocols evpn ethernet-segment interface ae0
Verify multi-homing:
show evpn ethernet-segment
Route leaking allows communication between Layer 2 and Layer 3 segments or between different EVPN instances.
Configure route leaking between EVPN instances:
set routing-instances evpn-instance-1 routing-options instance-import export-policy
set routing-instances evpn-instance-2 routing-options instance-import import-policy
Define the import/export policies:
set policy-options policy-statement export-policy term 1 from instance evpn-instance-1
set policy-options policy-statement export-policy term 1 then accept
EVPN can operate over MPLS instead of VXLAN for high-performance environments like service provider networks.
Use network monitoring tools to track EVPN route advertisements and MAC/IP bindings.
Regularly verify VXLAN encapsulation and VTEP operations:
show evpn mac
show evpn route
Symptom:
Solution:
Verify Type 2 route advertisements:
show evpn route type-2
Symptom:
Solution:
Check ESI configurations for multi-homing:
show evpn ethernet-segment
Symptom:
Solution:
Verify Type 3 routes:
show evpn route type-3
EVPN uses Multiprotocol BGP (MP-BGP) as its control plane to distribute MAC, IP, and segment discovery information across the fabric.
EVPN routes are exchanged under:
AFI (Address Family Identifier) = 25
SAFI (Subsequent AFI) = 70 (EVPN)
All key operations—MAC learning, ARP suppression, multihoming coordination—are done through BGP Update messages using distinct EVPN route types.
“EVPN uses MP-BGP (AFI=25, SAFI=70) to exchange MAC, IP, and Ethernet segment information in structured BGP routes.”
Used in multihoming scenarios to advertise Ethernet Segment Identifier (ESI) to VTEPs.
Informs other VTEPs which PE routers share the same Ethernet segment.
Critical for Designated Forwarder (DF) election and loop prevention.
Enables Layer 3 (IP) route advertisement in EVPN.
Used to propagate IP prefixes rather than MAC/IP bindings.
Enables EVPN to support Layer 3 forwarding, inter-VRF routing, and integration with traditional L3VPN or public networks.
“Type 4 routes identify multi-homed Ethernet segments, while Type 5 enables L3 EVPN by advertising IP prefixes like /24.”
To reduce broadcast traffic, EVPN implements ARP/ND suppression using control-plane learning:
Type 2 routes carry MAC-to-IP bindings.
When an endpoint sends an ARP/ND request, the local VTEP responds directly—no broadcast required.
“EVPN suppresses ARP/ND broadcasts by using Type 2 routes to resolve MAC/IP locally at the VTEP, minimizing BUM traffic.”
VTEPs can establish multiple equal-cost VXLAN tunnels to other VTEPs.
Enables load balancing and redundancy for overlay traffic.
ECMP in overlay depends on underlay ECMP and consistent hashing.
“Overlay ECMP allows traffic from a source VTEP to reach a destination VTEP through multiple equal-cost tunnels, improving redundancy and bandwidth utilization.”
In multi-homing setups, EVPN uses a DF election mechanism to prevent BUM duplication:
Only the Designated Forwarder sends BUM traffic (Broadcast, Unknown Unicast, Multicast) into the segment.
DF is selected based on:
Ethernet Segment Identifier (ESI)
BGP Router ID
Optional configured DF priority
“The DF election ensures that only one VTEP forwards BUM traffic on a multi-homed segment, avoiding duplication and loops.”
Prevents a VTEP from re-advertising MACs it learned from another VTEP back to the same source.
Implemented using BGP route attributes, often sticky bits or ESI flags.
An optional 4-byte field in VXLAN/MPLS encapsulation.
Helps preserve VLAN tags and other framing in devices that require strict L2 header fidelity.
“Split horizon protects against MAC learning loops by preventing re-advertisement across the same Ethernet segment; control words preserve L2 integrity for certain platforms.”
EVPN associates each MAC with an Ethernet Tag ID, identifying its bridge domain or VLAN.
In VXLAN, the Tag ID usually maps directly to the VXLAN Network Identifier (VNI).
“Ethernet Tag ID identifies the MAC’s VLAN or bridge domain; in VXLAN deployments, it usually matches the VNI.”
EVPN supports Anycast Gateway, allowing multiple VTEPs to advertise the same gateway IP and MAC address:
All VTEPs respond locally, enabling:
Fast convergence
Host mobility
Consistent routing behavior
“With Anycast Gateway, all VTEPs share the same IRB interface IP and MAC, enabling local default gateway functionality and seamless VM mobility.”
These are standard MPLS/BGP tools adapted for EVPN:
RD: Differentiates identical prefixes across VRFs or tenants.
RT:
Export RT tags outbound routes.
Import RT defines which RTs are accepted into a VRF.
“RD distinguishes identical prefixes across VRFs, while RTs control route propagation and policy between EVPN instances.”
EVPN can operate over SR-MPLS, replacing traditional LDP-based MPLS:
Uses Segment IDs (SIDs) instead of label distribution protocols.
Simplifies control plane and improves scale.
“EVPN over SR-MPLS uses segment IDs for transport instead of LDP labels, supporting scalable and simplified L3 service delivery.”
EVPN uses MP-BGP (AFI=25, SAFI=70) to exchange MAC/IP and Ethernet segment information.
Type 4 and Type 5 routes enable multihoming and IP prefix advertisement.
ARP suppression reduces BUM by resolving MAC/IP at the VTEP using Type 2 routes.
Overlay ECMP supports traffic load balancing across equal-cost VXLAN tunnels.
DF election selects a single VTEP to forward BUM traffic on a multi-homed segment.
Split horizon prevents re-advertisement of learned MACs; control word preserves L2 frame integrity.
Ethernet Tag ID maps MACs to VLANs or bridge-domains (usually matching the VNI).
Anycast Gateway enables all VTEPs to share a common gateway IP/MAC for seamless L3 handoff.
RD/RT control multi-tenant route separation and import/export policies.
EVPN over SR-MPLS supports scalable MPLS deployments without reliance on LDP.
What problem does EVPN solve compared with traditional VPLS deployments?
EVPN provides a control-plane MAC learning mechanism using BGP instead of relying on data-plane flooding.
Traditional VPLS relies on MAC address learning through frame flooding and learning. This approach creates several operational issues:
Excessive broadcast flooding
Slow MAC convergence
Limited scalability
EVPN improves this by:
Using BGP to advertise MAC addresses
Supporting multi-homing
Enabling fast convergence
Reducing flooding traffic
Because MAC information is distributed through the control plane, routers know where hosts are located before traffic is sent.
Demand Score: 88
Exam Relevance Score: 94
What information is carried in an EVPN Type-2 route?
A Type-2 route advertises MAC addresses and optionally associated IP addresses.
EVPN defines several route types distributed through BGP.
Type-2 routes are the most commonly used and contain:
MAC address
Optional IP address
Ethernet segment identifier
VTEP information
These routes allow remote routers to build MAC forwarding tables without relying on data-plane learning.
Demand Score: 92
Exam Relevance Score: 95
Why might EVPN MAC learning fail between two VTEPs?
Because EVPN BGP sessions are not exchanging MAC advertisement routes.
If MAC addresses are not learned across the EVPN fabric, the issue typically lies in the control plane.
Common causes include:
BGP EVPN address family not enabled
Route targets not matching
VXLAN VNI mismatch
Missing export/import policies
Verifying EVPN routes using commands such as:
show evpn database
show route table evpn
helps determine whether MAC advertisements are being received.
Demand Score: 95
Exam Relevance Score: 96
What is the purpose of EVPN Type-5 routes?
They advertise IP prefixes for Layer-3 routing across the EVPN fabric.
Type-5 routes enable integrated routing and bridging (IRB) across EVPN networks.
They carry:
IP prefixes
Next-hop information
VNI association
This allows the EVPN fabric to provide Layer-3 routing services between subnets while still supporting Layer-2 connectivity.
Demand Score: 87
Exam Relevance Score: 92
What is EVPN multihoming?
It allows a device to connect to multiple EVPN routers simultaneously for redundancy.
In EVPN multihoming:
A host connects to two or more leaf switches
Both switches advertise connectivity through EVPN
Traffic can load-balance across multiple paths
EVPN uses Ethernet Segment Identifiers (ESI) to identify multi-homed devices.
Benefits include:
Fast failover
Active-active forwarding
Improved redundancy
Demand Score: 85
Exam Relevance Score: 91
Why does EVPN reduce flooding compared to traditional Layer-2 networks?
Because MAC address information is distributed through the control plane.
In traditional Layer-2 networks, unknown unicast traffic must be flooded.
EVPN eliminates most flooding by:
Advertising MAC addresses using BGP
Maintaining a distributed MAC database
Allowing routers to forward frames directly to the correct VTEP
This significantly improves scalability in large data center networks.
Demand Score: 84
Exam Relevance Score: 90