EMAIL SUPPORT

dclessons@dclessons.com

LOCATION

US

BGP-EVPN LAB-Scenerio1

BGP-EVPN LAB-Scenerio 1

This is the best VXLAN LAB related to BGP-EVPN configuration in VXLAN. 

Scenerio:

Configure the VXLAN EVPN in such a way that host can be able to reach to each other.

Topology:

Use the below topology for configuration.

VTEP 1 Configuration:

VTEP1
!
Enabling features
nv overlay evpn
feature ospf
feature bgp
feature pim
feature interface-vlan
feature vn-segment-vlan-based
feature lacp
feature vpc
feature nv overlay
!
fabric forwarding anycast-gateway-mac 0001.0001.0001 <-- This is needed for seamless VM mobility across VTEPS
ip pim rp-address 192.168.9.9 group-list 224.0.0.0/4 <-- SPINE is the RP.
!
ip pim ssm range 232.0.0.0/8
!
vlan 1,10,30,40,100,200
!
vlan 10
name L3-VNI-VLAN-10
vn-segment 10000010
vlan 30
vn-segment 10000030
!
vrf context EVPN-L3-VNI-VLAN-10 <-- Defining layer3 vrf for Inter-VNI traffic.
vni 10000010
rd auto
address-family ipv4 unicast
route-target both auto
route-target both auto evpn
!
interface Vlan10 <-- Layer3 VNI associated interface vlan does not have an ip address.
no shutdown
vrf member EVPN-L3-VNI-VLAN-10
ip forward
!
interface Vlan30 <-- Associating the Host A Vlan with layer3 vrf.
no shutdown
vrf member EVPN-L3-VNI-VLAN-10
ip address 172.16.30.1/24
fabric forwarding mode anycast-gateway
!
interface nve1 <-- Nve is logical interface where VXLAN packets are encapsulated and decapsulated.
no shutdown
source-interface loopback2
host-reachability protocol bgp <-- This means BGP control plane is used to exchange updates.
member vni 10000010 associate-vrf <-- associate-vrf is used for for layer3 vni.
member vni 10000030
suppress-arp
mcast-group 239.1.1.10 <--This is used for controlled flooding of arp requests.
!
interface Ethernet1/2 <-- Ospf with PIM is used as Underlay.
description "Going to Spine"
no switchport
ip address 192.168.19.1/24
ip router ospf UNDERLAY area 0.0.0.0
ip pim sparse-mode
no shutdown
!
interface Ethernet1/11 <-- Port to Host A.
switchport mode trunk
!
interface loopback2 <-- Loopback for BGP Peering.
description "Loopback for "BGP"
ip address 192.168.11.11/32
ip router ospf UNDERLAY area 0.0.0.0
ip pim sparse-mode
!
router ospf UNDERLAY
!
router bgp 65000
address-family ipv4 unicast
address-family l2vpn evpn
neighbor 192.168.9.9
remote-as 65000
update-source loopback2
address-family ipv4 unicast
address-family l2vpn evpn
send-community extended
vrf EVPN-L3-VNI-VLAN-10
address-family ipv4 unicast
advertise l2vpn evpn
!
evpn
vni 10000030 l2
rd auto <-- RD is default calculated as VNI:BGP Router ID
route-target import auto <-- RT is default calculated as BGP AS:VNI
route-target export auto

VTEP 2 Configuration :

VTEP2
!
nv overlay evpn
feature ospf
feature bgp
feature pim
feature interface-vlan
feature vn-segment-vlan-based
feature lacp
feature vpc
feature nv overlay
!
fabric forwarding anycast-gateway-mac 0001.0001.0001
!
ip pim rp-address 192.168.9.9 group-list 224.0.0.0/4
!
ip pim ssm range 232.0.0.0/8
vlan 1,10,30,40,100
!
vlan 10
name L3-VNI-VLAN-10
vn-segment 10000010
!
vrf context EVPN-L3-VNI-VLAN-10 <-- Defining layer3 vrf for Inter-VNI traffic.
vni 10000010
rd auto
address-family ipv4 unicast
route-target both auto
route-target both auto evpn
!
interface Vlan10 <-- Layer3 VNI associated interface vlan does not have an ip address.
no shutdown
vrf member EVPN-L3-VNI-VLAN-10
ip forward
!
interface Vlan100 <-- This vlan is used to peer with external EBGP Peer.
no shutdown
vrf member EVPN-L3-VNI-VLAN-10
ip address 192.168.1.2/24
!
interface nve1
no shutdown
source-interface loopback2
host-reachability protocol bgp
member vni 10000010 associate-vrf
!
interface Ethernet1/2 <-- Ospf and PIM are used in Underlay.
description "Going to Spine"
no switchport
ip address 192.168.29.2/24
ip router ospf UNDERLAY area 0.0.0.0
ip pim sparse-mode
no shutdown
!
interface Ethernet1/12 <-- Port to External Peer.
switchport mode trunk
!
interface loopback2
ip address 192.168.22.22/32
ip router ospf UNDERLAY area 0.0.0.0
ip pim sparse-mode
!
router ospf UNDERLAY
!
router bgp 65000
address-family ipv4 unicast
address-family l2vpn evpn
neighbor 192.168.9.9 <-- Peering with SPINE.
remote-as 65000
update-source loopback2
address-family ipv4 unicast
address-family l2vpn evpn
send-community extended
vrf EVPN-L3-VNI-VLAN-10
address-family ipv4 unicast
advertise l2vpn evpn
neighbor 192.168.1.1 <-- Peering with External Peer, under vrf.
remote-as 65111
update-source Vlan100
address-family ipv4 unicast

VTEP 3 Configuration

GENERAL FAQ

This lab provides hands-on configuration experience of VXLAN EVPN using BGP as the control plane. It covers underlay configuration (OSPF and PIM), overlay setup (NVE interface), Layer 2 and Layer 3 VNIs, VRF-based inter-VNI routing, and external BGP peering. Because it combines both theoretical concepts and practical CLI implementation, it is considered one of the most comprehensive VXLAN labs for real-world deployment understanding.

This lab covers NV overlay EVPN configuration, Anycast Gateway for seamless VM mobility, Layer 2 and Layer 3 VNI mapping, VRF-based inter-VNI routing, multicast-based BUM traffic handling, and BGP EVPN route advertisement. It clearly demonstrates how the underlay and overlay networks work together to provide scalable data center fabric connectivity.

What is the function of host-to-host communications within the VXLAN topology of EVPN?

Hosts linked to different VTEPs communicate via VXLAN tunnels created by the IP overlay. The NVE interface is used to encapsulate and decapsulate traffic, and BGP EVPN distributes MAC and IP reachability information across VTEPs. Anycast gateway ensures consistent default gateway behavior across devices.

OSPF is used in the underlay to establish IP reachability between VTEPs through the spine, ensuring loopback connectivity for BGP EVPN peering. PIM is configured to support multicast transport for controlled flooding of BUM traffic, such as ARP requests. A stable underlay is essential because the VXLAN overlay depends completely on IP connectivity between VTEPs.

The NVE (Network Virtualization Edge) interface is the logical interface where VXLAN encapsulation and decapsulation occur. It maps VNIs to VLANs and VRFs and defines whether a VNI is Layer 2 or Layer 3. In this lab, BGP is used as the host-reachability protocol to exchange EVPN routes between VTEPs through the NVE interface.

This lab is ideal for data center engineers, CCNP Data Center and CCIE Data Center aspirants, and professionals preparing for advanced EVPN deployments. Anyone looking to strengthen practical configuration skills in VXLAN EVPN will benefit from this structured, step-by-step implementation scenario.

Comment

  • AN

    Hi Dc-lessons where is the configuration of Nexus5K?


  • AN

    VTEP4 is there any VPC configuration missing such as vpc domain 2 peer-keepalive destination X.X.X.X source Y.Y.Y.Y

    • DC

      Thanks for highlighting , we have added the configuration


LEAVE A COMMENT

Please login here to comment.