VXLAN L2 EVPN Guide For SONiC in GNS3
VXLAN L2 EVPN Guide For SONiC in GNS3
GNS3
Revision History
Intended Audience
This document is tailored for data center experts, system integrators, and network engineers
who are interested in implementing VXLAN L2-EVPN in SONiC. It is designed for individuals with
a solid understanding of networking principles, including L2 and L3 protocols. Whether you are
a hyperscaler, network operator, or vendor, this document aims to provide you with practical,
step-by-step guidance, and best practices for deploying, configuring, and conducting behavioral
testing of SONiC's L2 and L3 features using the GNS3 network simulation tool.
VXLAN EVPN
VXLAN EVPN leverages VXLAN encapsulation to extend Layer 2 Ethernet networks over Layer 3
IP networks. It uses a network overlay approach, where tenant-specific Layer 2 segments are
encapsulated within VXLAN packets and transported over the underlying IP infrastructure. This
allows for the creation of virtualized Layer 2 networks that can span across multiple physical
switches, enabling seamless workload mobility and network scalability.
EVPN, on the other hand, provides a control plane mechanism for distributing MAC (Media
Access Control) and IP routing information across the VXLAN overlay network. It uses the
Border Gateway Protocol (BGP) as the control plane protocol to exchange this information
between different network devices, facilitating efficient forwarding and enabling features like
multi-tenancy, end-to-end Layer 2 and Layer 3 connectivity, and MAC/IP address mobility.
VXLAN in SONiC provides the foundation for building scalable, flexible, and virtualized networks
in data center environments. Its applications range from network virtualization and workload
mobility to traffic segmentation and integration with other network overlays, enabling
administrators to create efficient and secure network architectures.
Testbed
To set up the testbed for VXLAN configuration please refer to the document Installation of GNS3
and vTestbed setup for SONiC.
Network Topology
After importing the image, create a Spine-Leaf topology in GNS3 using SONiC devices and hosts.
In the above topology, 6 switches (Leaf-1, Leaf-2, Leaf-3, Leaf-4, Spine-1, & Spine-2) and four
hosts (PC1, PC2, PC3 and PC4) are used. PC1 & PC3 belong to Vlan10 and PC2 & PC4 belong to
Vlan20. We want to enable intra-vlan communication between hosts over the Spine-Leaf
underlay network.
Spine-1
The details of the subnets between Spine-1 and Leaf Switches are as follows:
Check IP routes
● Show ip bgp
We can see routes from Leaf-4 and Spine-1 in the above screenshot.
We can see two active bgp neighbors Leaf-4 and Spine-1. Other neighbors are not active as
devices are shut-down.