VXLAN is a tunneling protocol that carries Ethernet traffic across an IP network, and a VTEP (VXLAN Tunnel Endpoint) is the device at each end of that tunnel that wraps frames going in and unwraps them coming out.1NetworkLessons. What Is a VTEP? VXLAN Tunnel Endpoints Explained That makes the VTEP the place where the virtual networks and the physical network meet, and the one component that understands both.1NetworkLessons. What Is a VTEP? VXLAN Tunnel Endpoints Explained It can be a top-of-rack switch or simply a virtual switch running inside a server’s hypervisor.2Pica8. Improving Overlay Solutions with Hardware-Based VXLAN Termination Connections Between the Virtual and Physical World Much of how a VXLAN fabric scales, fails over, and gets secured comes down to choices made at the VTEP.
What a VTEP Actually Does
A VTEP sits at the edge of the overlay, connected both to the routed Layer 3 underlay and to the Layer 2 virtual networks riding on top of it.3telecomTech.io. VXLAN – VNIs, VTEPs, And VXLAN Architecture The overlay is the set of virtual networks your hosts think they are on. The underlay is the physical IP network that actually moves the packets. Because the underlay only routes ordinary IP packets between VTEPs, it has no idea VXLAN is in use.1NetworkLessons. What Is a VTEP? VXLAN Tunnel Endpoints Explained
To know which virtual network a frame belongs to, the VTEP maps each local VLAN to a VNI (VXLAN Network Identifier), a segment ID.4nesevo. VXLAN and VTEPs Explained: Data Center Transport An engineer might map VLAN 10 to VNI 10010, and every frame arriving on VLAN 10 then gets that VNI stamped into its VXLAN header. A VTEP at another site maps the same VNI back to a local VLAN, and that VLAN doesn’t need the same number. Two sites can share one segment without coordinating VLAN numbers.
The VTEP wraps incoming frames in a UDP datagram and sends them across the IP underlay. The receiving VTEP unwraps them and delivers them out a port or virtual interface, so hosts on both sides believe they share one Layer 2 segment.4nesevo. VXLAN and VTEPs Explained: Data Center Transport
None of this makes the VTEP a replacement for your routers. The underlay routers carry the tunnel traffic across the fabric. The VTEP only adds and removes the outer headers and chooses the destination VTEP, and hosts never see or talk to its tunnel IP address.
Why VTEPs Exist, The Limits of VLANs
Traditional VLAN IDs allow only about 4,094 usable segments.1NetworkLessons. What Is a VTEP? VXLAN Tunnel Endpoints Explained Classic Layer 2 designs also depend on spanning tree, which blocks redundant links to prevent loops.1NetworkLessons. What Is a VTEP? VXLAN Tunnel Endpoints Explained Managing large VLAN and spanning-tree networks slows configuration changes, complicates troubleshooting, and raises operating costs.4nesevo. VXLAN and VTEPs Explained: Data Center Transport
VXLAN was standardized in RFC 7348 in 2014, by engineers from Arista, Cisco, Broadcom, VMware and others, to scale networks further and tie them closer to the server layer.4nesevo. VXLAN and VTEPs Explained: Data Center Transport Its 24-bit segment ID supports about 16 million separate segments.5Cisco Press. What Is a VTEP? VXLAN Tunnel Endpoints Explained
The blocked links go away too. The underlay is routed, so it can use all links at once with equal-cost paths, and spanning tree is no longer needed in the core to stop loops. Layer 2 stretch still exists for hosts, but only inside the tunnels.
What Happens to a Packet Inside a VTEP
On the sending side, the VTEP works through these steps in order:
- The source VTEP adds an 8-byte VXLAN header carrying the frame’s VNI.6telecomTech.io. VXLAN – Encapsulation, Headers, And The Packet Transmission Process
- It looks up which remote VTEP sits behind the destination MAC address.6telecomTech.io. VXLAN – Encapsulation, Headers, And The Packet Transmission Process
- It wraps the frame and VXLAN header in a UDP datagram, sent by default to port 4789.6telecomTech.io. VXLAN – Encapsulation, Headers, And The Packet Transmission Process
- It adds an IP header with its own IP as source and the remote VTEP’s IP as destination.6telecomTech.io. VXLAN – Encapsulation, Headers, And The Packet Transmission Process
- It puts that IP packet in a normal frame for the underlay network.6telecomTech.io. VXLAN – Encapsulation, Headers, And The Packet Transmission Process
The VXLAN header holds a flag bit that marks the VNI as valid, a 24-bit VNI, and reserved bits set to zero.7RFC Editor. Virtual eXtensible Local Area Network (VXLAN): A Framework for Overlaying Virtualized Layer 2 Networks over Layer 3 Networks Machines in different VNIs cannot communicate with each other, so the VNI is what keeps segments isolated.7RFC Editor. Virtual eXtensible Local Area Network (VXLAN): A Framework for Overlaying Virtualized Layer 2 Networks over Layer 3 Networks Some early implementations used a different UDP port, so the port should be configurable for compatibility.7RFC Editor. Virtual eXtensible Local Area Network (VXLAN): A Framework for Overlaying Virtualized Layer 2 Networks over Layer 3 Networks On some devices the UDP checksum is set to zero during encapsulation.8Cisco Documentation. How VXLAN and Geneve packets are processed
The VTEP picks the UDP source port itself. Varying it per flow lets underlay routers spread different flows across multiple paths, while the fixed destination port tells the receiver the traffic is VXLAN.
On the receiving side, the destination VTEP strips the outer Ethernet, IP and UDP headers.6telecomTech.io. VXLAN – Encapsulation, Headers, And The Packet Transmission Process It then reads the VNI and places the frame in the matching Layer 2 segment, then forwards it to the host.6telecomTech.io. VXLAN – Encapsulation, Headers, And The Packet Transmission Process
Hardware VTEPs Versus Software VTEPs
A software VTEP usually lives in a server’s virtual switch, such as Open vSwitch.2Pica8. Improving Overlay Solutions with Hardware-Based VXLAN Termination Connections Between the Virtual and Physical World Hypervisors like VMware ESXi and Microsoft Hyper-V use virtual switches, some of which support VXLAN, with tunnels running between hypervisors.1NetworkLessons. What Is a VTEP? VXLAN Tunnel Endpoints Explained
A hardware VTEP is a router, switch or firewall that supports VXLAN, typically a top-of-rack switch.1NetworkLessons. What Is a VTEP? VXLAN Tunnel Endpoints Explained2Pica8. Improving Overlay Solutions with Hardware-Based VXLAN Termination Connections Between the Virtual and Physical World It is often called a VXLAN gateway because it joins a regular VLAN and a VXLAN segment into one Layer 2 domain.1NetworkLessons. What Is a VTEP? VXLAN Tunnel Endpoints Explained Switches with VXLAN built into their chips can process it faster than a software VTEP.1NetworkLessons. What Is a VTEP? VXLAN Tunnel Endpoints Explained
Software VTEPs suit fully virtualized environments where every workload is a VM. Hardware VTEPs are needed to bring bare-metal servers, storage, or legacy VLANs into the overlay. Many networks mix both, with hardware gateways bridging to physical devices.
On a switch config, the VTEP often appears as a network virtualization interface tied to a loopback address. That loopback IP is the outer source address seen in the underlay, so a loopback as the tunnel source is normal, not a misconfiguration.
How a VTEP Learns Where to Send Traffic
In flood and learn, unknown traffic is flooded, often over a multicast group, to every subscribed VTEP.9Cisco networking. VXLAN. Part 1. Flood and learn using Data-Plane only Receiving VTEPs record the inner source MAC and the outer address of the VTEP that sent it, and later traffic goes directly as unicast.9Cisco networking. VXLAN. Part 1. Flood and learn using Data-Plane only These learned entries expire when the MAC address ages out, so the forwarding path is not always in place.10Cisco. Configure VXLAN Flood and Learn with Multicast Core
With BGP EVPN, VTEPs advertise MAC and IP address bindings to each other instead of discovering them by flooding.11Cisco Nexus 9000 Series NX-OS VXLAN Configuration Guide, Release 10.6(x). Cisco Nexus 9000 Series NX-OS VXLAN Configuration Guide, Release 10.6(x) It supports scalable Layer 2 and Layer 3 connectivity and multi-tenant networks.11Cisco Nexus 9000 Series NX-OS VXLAN Configuration Guide, Release 10.6(x). Cisco Nexus 9000 Series NX-OS VXLAN Configuration Guide, Release 10.6(x) VTEPs must still deliver broadcast, unknown and multicast traffic, called BUM traffic.12Cisco. BGP EVPN VXLAN Configuration Guide, Cisco IOS XE 17.16.x (Catalyst 9600 Switches) With ingress replication, the sending VTEP copies each packet and sends a unicast copy to every remote VTEP in that segment.12Cisco. BGP EVPN VXLAN Configuration Guide, Cisco IOS XE 17.16.x (Catalyst 9600 Switches) That can create scaling problems, because one VTEP must make as many copies as there are VTEPs in the segment.12Cisco. BGP EVPN VXLAN Configuration Guide, Cisco IOS XE 17.16.x (Catalyst 9600 Switches)
Multicast avoids that: the underlay makes the copies, so the VTEP sends one packet. Ingress replication needs no multicast in the underlay but shifts the copying work onto the VTEP, and the load grows with the number of VTEPs. EVPN is the usual choice for production fabrics because it cuts flooding.
One table limit is worth knowing. On some Cisco switches, VLAN-to-VNI mappings are created per VLAN, which limits a switch to about 4,000 VNIs.13Cisco Community. VxLAN VNI to VLAN Mapping So 16 million segments are possible fabric-wide, but each switch may only carry a few thousand locally.
The 50-Byte Overhead and MTU Problems
VXLAN adds 50 bytes: outer IP 20, outer UDP 8, VXLAN 8, and outer Ethernet 14.14OneUptime. How to Configure VXLAN MTU for Overlay Networks On a standard 1,500-byte network, hosts are left with 1,450 bytes.14OneUptime. How to Configure VXLAN MTU for Overlay Networks MTU, the maximum packet size a link will carry, therefore has to be set correctly to prevent fragmentation and improve performance.14OneUptime. How to Configure VXLAN MTU for Overlay Networks
In one reported case, a VXLAN set to 1,550 dropped every packet over 1,450 bytes even though the server link supported jumbo frames.15XCP-ng. MTU problems with VxLAN A single device along the path still had a 1,500 MTU.15XCP-ng. MTU problems with VxLAN So raise the maximum packet size on every underlay link and device, end to end, not just at the VTEP.
Many hosts set the don’t-fragment bit, and VTEPs typically do not fragment the wrapped packet, so an oversized packet is dropped instead of being split and delivered slowly. A router that drops one is supposed to send back an ICMP message saying it was too big. If a firewall along the path filters those messages, the sender never learns to shrink its packets and the connection just stalls.
To test the path, send pings with the do-not-fragment bit set at increasing sizes and find the largest that succeeds between VTEP addresses. Common practice is setting the underlay to jumbo frames, often 9,000 bytes.
Redundant VTEPs and Multihoming
Multihoming connects a host or Layer 2 switch to more than one VTEP for redundancy.16Cisco. Multihoming in a BGP EVPN VXLAN Fabric Configuration Guide, Cisco IOS XE 17.18.x (Catalyst 9400 Switches) If a link or VTEP fails, traffic should fail over to the remaining links or nodes.17Arista. The EVPN Data Center Multihoming models with EVPN In an active-active model, all links carry traffic in normal operation to use full bandwidth.17Arista. The EVPN Data Center Multihoming models with EVPN
One method has two leaf switches share an anycast VTEP IP so they look like one node to the control plane.18Cisco Live. Modern Multi-Homing in VXLAN EVPN: Enabling vPC and ESI in Today’s Data Centers Paired switches like this need a peer link between them. EVPN-native multihoming supports 2, 3 or 4-way bundles with no peer-link, coordinating through BGP alone.18Cisco Live. Modern Multi-Homing in VXLAN EVPN: Enabling vPC and ESI in Today’s Data Centers That removes the link and scales past two switches. The choice often depends on vendor support and existing design.
Security and Segmentation at the VTEP
With the Group Policy Option, VTEPs can tag traffic by security group and enforce microsegmentation policies.19Cisco. Securing Data Centers with Microsegmentation using VXLAN GPO In a zero-trust setup, no traffic between groups flows unless explicitly allowed, while traffic within a group is typically permitted by default.19Cisco. Securing Data Centers with Microsegmentation using VXLAN GPO Features like IP Source Guard check each host’s packets against DHCP records to block spoofed addresses.20Cisco.com. Securing Network Infrastructure in VXLAN BGP EVPN Data Centers
VNI isolation is not encryption. VXLAN headers and the frames inside them are sent unencrypted, so anyone with access to the underlay can read inner traffic. Encryption needs a separate layer such as MACsec or IPsec.
VTEPs Compared With Geneve Endpoints
Both VXLAN and Geneve use UDP encapsulation and a 24-bit VNI.21Medium. Geneve Protocol: A Guide to Flexible Network Virtualization VXLAN’s header is a fixed 8 bytes, while Geneve’s is 16 bytes with extensible fields.22IP With Ease. VXLAN vs Geneve: Understand the difference – IP With Ease VXLAN has no protocol identifier, so it assumes the payload is always Ethernet.22IP With Ease. VXLAN vs Geneve: Understand the difference – IP With Ease Geneve calls its endpoints TEPs rather than VTEPs.22IP With Ease. VXLAN vs Geneve: Understand the difference – IP With Ease
Geneve’s options are a variable-length area that carries extra information with each packet, such as which security group or policy applies. The sending platform defines it, and the receiver reads it. VXLAN has only fixed fields, so a platform that wants to pass extra context must squeeze it into reserved bits or use extensions, which is why software-defined platforms are drawn to Geneve. The cost is a longer, more variable header, which hardware parsing at line rate finds harder than a fixed 8-byte format.
So VXLAN remains the common choice for switch fabrics, while Geneve appears where software platforms need extra metadata. Physical data center switches overwhelmingly speak VXLAN, and some virtualization platforms use Geneve internally. Mixing them requires a gateway that translates between them.

