Shopping cart

Subtotal:

$0.00

JN0-649 EVPN

EVPN

Detailed list of JN0-649 knowledge points

EVPN Detailed Explanation

1. Overview of EVPN

1.1 Purpose

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.

  1. Why EVPN?

    • Traditional Layer 2 networks struggle with scalability and resiliency when deployed over large distances.
    • EVPN uses BGP (Border Gateway Protocol) to provide scalable and resilient Layer 2 connectivity.
  2. Key Benefits:

    • Layer 2/Layer 3 Service Support:
      • Provides both Layer 2 (Ethernet) and Layer 3 (IP routing) connectivity.
    • MAC Mobility:
      • Tracks MAC addresses dynamically, making it ideal for environments where devices move across different sites.
    • Multitenancy:
      • Supports segmentation of traffic for different customers or services.
    • Efficient Multicast:
      • Reduces the overhead associated with multicast traffic by using optimized routing.

2. Core Concepts

2.1 Route Types

EVPN uses BGP EVPN address family to exchange information about Layer 2/Layer 3 endpoints. The key route types are:

2.1.1 Type 1: Ethernet Auto-Discovery (EAD)
  • Advertises Ethernet segments and their availability.
  • Ensures efficient communication between devices in the same Ethernet segment across different sites.
2.1.2 Type 2: MAC/IP Advertisement
  • Contains mappings between MAC addresses and IP addresses.
  • Used to propagate information about hosts (e.g., a server's MAC and IP address).
2.1.3 Type 3: Inclusive Multicast Ethernet Tag
  • Enables multicast and broadcast traffic across EVPN instances.
  • Provides efficient replication of multicast traffic.

2.2 VXLAN (Virtual Extensible LAN)

VXLAN is commonly used with EVPN to encapsulate Layer 2 frames over a Layer 3 network.

  1. Purpose:

    • Allows Layer 2 domains to be extended over a Layer 3 infrastructure.
    • Encapsulates Ethernet frames in UDP packets.
  2. Key Components:

    • VXLAN Network Identifier (VNI):
      • A 24-bit field that identifies Layer 2 segments.
    • VTEP (VXLAN Tunnel Endpoint):
      • Devices responsible for encapsulating and decapsulating VXLAN traffic.
  3. Benefits:

    • Scalability: Supports up to 16 million VLANs.
    • Multicast Optimization: Efficiently handles broadcast, multicast, and unknown unicast (BUM) traffic.

3. Configurations

3.1 Setting Up an EVPN Instance

EVPN instances group configurations for Layer 2 and Layer 3 services.

  1. Define the EVPN Instance:

    set routing-instances evpn-instance instance-type evpn
    
  2. Enable EVPN Protocols:

    set routing-instances evpn-instance protocols evpn
    
  3. Configure VXLAN and VNI:

    set routing-instances evpn-instance vxlan vni 1001
    

4. Detailed Example Configuration

Scenario:

  • Objective:

    • Connect two data centers using EVPN and VXLAN.
  • Components:

    • Two routers (R1 and R2) acting as VTEPs.
    • VXLAN VNI 1001 for the Layer 2 segment.
  1. 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
      
  2. Configuration on Router R2:

    • Repeat the same steps, ensuring the VNI and EVPN instance names match.

5. Troubleshooting EVPN

5.1 Common Issues

5.1.1 No MAC Address Learning
  • Cause:

    • Misconfigured EVPN or bridge domain.
  • Solution:

    • Verify MAC learning with:

      show evpn mac
      
5.1.2 VNI Mismatch
  • Cause:
    • VNI settings are not consistent across routers.
  • Solution:
    • Ensure matching VNI configurations on all VTEPs.
5.1.3 Multicast Traffic Not Forwarding
  • Cause:

    • Incorrect Type 3 route advertisement.
  • Solution:

    • Verify Type 3 routes:

      show evpn route type-3
      

6. Advanced EVPN Features

6.1 Multi-Homing with EVPN

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.

6.1.1 Purpose
  • Enhances network resiliency.
  • Prevents single points of failure in Layer 2 segments.
6.1.2 How It Works
  • EVPN uses Ethernet Segment Identifier (ESI) to represent the multi-homed connection.
  • Type 1 (Ethernet Auto-Discovery) routes are exchanged between VTEPs to synchronize MAC addresses.
6.1.3 Configuration Example
  1. Define the Ethernet segment:

    set routing-instances evpn-instance protocols evpn ethernet-segment esi 0000:0000:0000:0000:0001
    
  2. 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
    
  3. Verify multi-homing:

    show evpn ethernet-segment
    

6.2 Route Leaking

Route leaking allows communication between Layer 2 and Layer 3 segments or between different EVPN instances.

6.2.1 Use Cases
  • Connecting multiple EVPN instances within the same router.
  • Allowing communication between EVPN and external networks.
6.2.2 Configuration Example
  1. 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
    
  2. 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
    

6.3 EVPN with MPLS

EVPN can operate over MPLS instead of VXLAN for high-performance environments like service provider networks.

6.3.1 Benefits
  • Leverages MPLS for faster forwarding.
  • Supports MPLS labels to distinguish traffic.
6.3.2 Key Concepts
  • EVPN routes are exchanged using MP-BGP over MPLS.
  • MPLS labels identify customer traffic across the provider network.

7. Real-World Use Cases for EVPN

7.1 Data Center Interconnect (DCI)

  • Scenario:
    • Connect multiple data centers with seamless Layer 2/Layer 3 communication.
  • Solution:
    • Use EVPN over VXLAN to extend VLANs across data centers.
    • Deploy multi-homing for redundancy.

7.2 Enterprise Campus Networks

  • Scenario:
    • Large enterprise campuses with segmented traffic for departments.
  • Solution:
    • Use EVPN to provide seamless mobility for devices moving across campus.
    • Leverage route leaking for inter-department communication.

7.3 Service Provider Multitenancy

  • Scenario:
    • A service provider hosts multiple customer networks on shared infrastructure.
  • Solution:
    • Use EVPN with MPLS to segment customer traffic securely.
    • Provide each customer with isolated Layer 2/Layer 3 services.

8. Best Practices for Deploying EVPN

8.1 Design for Scalability

  • Use VXLAN for networks requiring high scalability (up to 16 million VNIs).
  • Plan BGP EVPN routing to accommodate future growth.

8.2 Ensure Redundancy

  • Implement multi-homing to prevent single points of failure.
  • Use redundant VTEPs to provide high availability.

8.3 Optimize Multicast Traffic

  • Configure Type 3 routes to efficiently handle multicast and broadcast traffic.
  • Avoid flooding unnecessary multicast traffic across the network.

8.4 Monitor and Maintain

  • 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
    

9. Troubleshooting EVPN

9.1 Common Issues

9.1.1 MAC/IP Address Synchronization Issues
  • Symptom:

    • Inconsistent MAC or IP address mappings across VTEPs.
  • Solution:

    • Verify Type 2 route advertisements:

      show evpn route type-2
      
9.1.2 Traffic Blackholing
  • Symptom:

    • Traffic does not reach its destination after failover.
  • Solution:

    • Check ESI configurations for multi-homing:

      show evpn ethernet-segment
      
9.1.3 Unoptimized Multicast Traffic
  • Symptom:

    • Excessive multicast traffic causing congestion.
  • Solution:

    • Verify Type 3 routes:

      show evpn route type-3
      

EVPN (Additional Content)

1. EVPN Control Plane via MP-BGP

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.”

2. EVPN Route Types: Type 4 and Type 5

Type 4: Ethernet Segment Route

  • 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.

Type 5: IP Prefix Route

  • 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.”

3. ARP and ND Suppression in EVPN

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.”

4. Overlay ECMP (Equal-Cost Multi-Path)

  • 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.”

5. Designated Forwarder (DF) Election

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.”

6. Split Horizon and Control Word

Split Horizon

  • 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.

Control Word

  • 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.”

7. Ethernet Tag ID and MAC Binding

  • 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.”

8. Anycast Gateway via Integrated Routing and Bridging (IRB)

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.”

9. Route Distinguisher (RD) and Route Target (RT)

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.”

10. EVPN over Segment Routing with MPLS (SR-MPLS)

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.”

Summary of Key Concepts

  • 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.

Frequently Asked Questions

What problem does EVPN solve compared with traditional VPLS deployments?

Answer:

EVPN provides a control-plane MAC learning mechanism using BGP instead of relying on data-plane flooding.

Explanation:

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?

Answer:

A Type-2 route advertises MAC addresses and optionally associated IP addresses.

Explanation:

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?

Answer:

Because EVPN BGP sessions are not exchanging MAC advertisement routes.

Explanation:

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?

Answer:

They advertise IP prefixes for Layer-3 routing across the EVPN fabric.

Explanation:

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?

Answer:

It allows a device to connect to multiple EVPN routers simultaneously for redundancy.

Explanation:

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?

Answer:

Because MAC address information is distributed through the control plane.

Explanation:

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

JN0-649 Training Course