Use it when extending Layer 2 segments across a routed network, or VXLAN tunnels do not carry traffic.
VXLAN
underlay → VTEPs → EVPN → VNIs → encapsulated traffic
Context & applicabilityCommon mistakes · platform/version boundaries
Operational reference
Fast context before you go deeper.
show nve peersCheck the correct boundary
VXLAN uses a 24-bit VNI to identify an overlay segment and encapsulates Ethernet over UDP/IP underlay transport. The default assigned VXLAN UDP destination port is 4789.
No single cross-platform Cisco show command is valid for every VTEP/EVPN implementation. Select commands for the actual IOS XE/NX-OS platform, VTEP role and BGP EVPN control plane when present.
| Read-only example / check | Interpretation | Does not prove |
|---|---|---|
| Platform-specific observation | Confirm local VLAN-to-VNI mapping and VTEP endpoint for the segment | A local VNI does not prove remote MAC/host reachability |
| Platform-specific observation | Confirm underlay route, MTU and UDP transport between VTEPs | IP reachability alone does not prove overlay encapsulation is accepted |
| Platform-specific observation | Confirm remote VTEP/MAC learning or EVPN route state using platform-specific read-only commands | Learning a MAC does not prove application delivery or return traffic |
Official documentation
Documentation reviewed 12 October 2026. These are explanatory reference examples, not observed production state, captured Evidence, or a new stored verification event. Confirm exact software release and scope on the device.
Show Commands
Read-only Cisco show commands for confirming state, narrowing a fault and interpreting the current boundary.
show nve peersShowInspect VXLAN NVE peer state.
Use when: Use this command at the Network Virtualization / Overlay boundary in the documented evidence chain.
Quick note: Cisco IOS / IOS XE first. Healthy underlay reachability does not prove overlay mappings; an overlay mapping does not prove encapsulated forwarding.
Cisco IOS / IOS XE · mixedshow nve vniShowInspect VNI state and segment mapping.
Use when: Use this command at the Network Virtualization / Overlay boundary in the documented evidence chain.
Quick note: Cisco IOS / IOS XE first. Healthy underlay reachability does not prove overlay mappings; an overlay mapping does not prove encapsulated forwarding.
Cisco IOS / IOS XE · mixedVerification & Troubleshooting
Start with the observed symptom, prove the nearest boundary, and move outward only when the current state is understood.
Use the operational verification above to establish the expected state.
Capture the concrete output, symptom, packet, log or counter before changing anything.
Step 1 Verification and output interpretation Verify boundary
Verify VTEP source reachability, VNI state, local segment membership, remote endpoint/prefix learning and encapsulation counters. A VNI shown as up shows local overlay configuration, not that remote VTEPs or endpoints are reachable. Use underlay routing evidence separately from overlay MAC/IP state. Packet captures can confirm UDP VXLAN encapsulation and outer/inner address roles.
Subtopics
Go one level deeper into this subject.
The VXLAN Network Identifier (VNI) is a 24-bit segment ID in the VXLAN header, allowing about 16 million segments instead of 4094 VLANs.
Subtopic VTEPA VXLAN Tunnel Endpoint (VTEP) encapsulates and decapsulates VXLAN traffic; it can be a switch, router or hypervisor and is identified by its loopback IP in the underlay.
Subtopic OverlayThe VXLAN overlay is the set of virtual segments (VNIs) carried in VXLAN tunnels between VTEPs, independent of the physical underlay.
Subtopic UnderlayThe VXLAN underlay is the IP network that connects VTEP loopbacks; it needs reachability between them, ECMP for load sharing and an MTU of at least 1550 bytes.
Subtopic EncapsulationVXLAN encapsulation wraps the original Ethernet frame in a VXLAN header (with the VNI), UDP (destination port 4789), outer IP and outer Ethernet, adding about 50 bytes.
Subtopic Layer 2 OverlayA Layer 2 VXLAN overlay stretches a VLAN (a bridge domain per VNI) across a routed underlay, so hosts in different racks or sites share one subnet.
Subtopic Layer 3 OverlayA Layer 3 VXLAN overlay routes between VNIs in the fabric, typically with distributed anycast gateways and an L3 VNI per VRF (symmetric IRB with EVPN).
show nve peers— VTEP peersshow nve vni— VNIs and stateshow bgp l2vpn evpn summary— EVPN control plane
ReferenceImportant terms & boundaries4 sections · depth on demand
In depth
VXLAN: Layer 2 segments carried over a routed IP network
RFC 7348 defines Virtual eXtensible LAN. Ethernet frames are encapsulated in UDP and carried across an IP network between VTEPs. The motivation in the RFC: the 12-bit VLAN ID limits a network to 4094 VLANs, spanning tree blocks redundant links, tenants need to reuse MAC addresses and VLAN IDs, and virtual machines multiply the MAC addresses top-of-rack switches must learn.
Encapsulation (RFC 7348)
| Header | Content |
|---|---|
| Outer Ethernet | To the next-hop router or the remote VTEP; VLAN tag optional |
| Outer IP | Source: local VTEP; destination: remote VTEP (unicast) or a multicast group (flooded traffic) |
| Outer UDP | Destination port 4789; source port from a hash of the inner headers (49152–65535 recommended), for ECMP entropy |
| VXLAN header (8 bytes) | Flags (I bit = 1), 24-bit VNI, reserved bits |
| Inner Ethernet frame | The original frame |
Key properties
| Property | Value |
|---|---|
| Segment ID | 24-bit VNI: about 16 million segments |
| Overhead | 50 bytes with an IPv4 outer header (14 Ethernet + 20 IP + 8 UDP + 8 VXLAN) |
| Fragmentation | VTEPs must not fragment; RFC 7348 recommends raising the underlay MTU |
| Inner VLAN tags | Stripped by the encapsulating VTEP by default; decapsulated frames with a tag are discarded unless configured otherwise |
Control plane options
| Method | How endpoints are learned |
|---|---|
| Flood and learn (RFC 7348) | BUM traffic sent to a multicast group per VNI; VTEPs learn inner source MAC → outer source IP from data traffic |
| BGP EVPN (Cisco Catalyst 9000, Nexus) | VTEPs advertise MAC and IP reachability in MP-BGP; Cisco's guide says flood-and-learn doesn't scale |
| LISP (Cisco SD-Access) | Edge nodes register endpoints with the control node |
LEAF1# show nve peers
Interface VNI Type Peer-IP RMAC/Num_RTs eVNI state flags UP time
nve1 50001 L3CP 10.255.255.2 a4bb.6d22.0001 50001 UP A/M/4 2d03h
nve1 10020 L2CP 10.255.255.2 6 10020 UP N/A 2d03h
LEAF1# show nve vni
Interface VNI Multicast-group VNI state Mode BD cfg vrf
nve1 10020 N/A Up L2CP 20 CLI N/A
nve1 50001 N/A Up L3CP N/A CLI CORP
LEAF1# show bgp l2vpn evpn summary
Security (RFC 7348)
VXLAN extends the Layer 2 attack surface: rogue endpoints could join multicast groups or inject spoofed traffic. The RFC suggests administrative controls, 802.1X, IPsec, ACLs on the UDP 5-tuple, and a dedicated VLAN or network for VXLAN transport traffic.
Documented example, not captured output.
Quick reference
VXLAN exists to solve the limits of VLAN-based data centres: only 4,094 VLANs, Layer 2 domains that depend on spanning tree, and the need to place workloads anywhere in a large network. By carrying Layer 2 frames over a routed IP fabric, VXLAN lets every link forward with ECMP while still offering Layer 2 segments where applications need them.
Typical data-centre design:
- Leaf-spine underlay with OSPF, IS-IS or eBGP and jumbo MTU.
- BGP EVPN control plane, often with spines as route reflectors.
- Leaves as VTEPs with distributed anycast gateways.
- Border leaves connecting tenants (VRFs) to the WAN, internet and firewalls.
Operational differences from VLANs: a VLAN number is now locally significant on each leaf and mapped to a fabric-wide VNI; MAC mobility is signalled by EVPN sequence numbers; and duplicate-address detection can freeze a MAC address that moves too often, which looks like a host suddenly losing connectivity.
show l2route evpn mac all
show bgp l2vpn evpn summary
show fabric forwarding ip local-host-db vrf TENANT-A
State model and protocol mechanics
VXLAN carries Layer-2 or Layer-3 overlay traffic across an IP underlay by encapsulating frames in UDP and identifying the logical segment with a VXLAN Network Identifier (VNI). VTEPs perform encapsulation and decapsulation, separating tenant/segment topology from the routed transport network.
Limits and common misconceptions
VXLAN does not replace the underlay and cannot compensate for broken routed transport. A learned remote MAC does not show the endpoint application works. VNI equality identifies an overlay segment but does not automatically provide authorization or encryption. Avoid mixing underlay next hops with overlay endpoint addresses when interpreting failures or routing decisions.
ReferenceConfiguration & state1 section · depth on demand
Design and configuration model
Build a stable routed underlay first, then define VTEP loopbacks, VNI-to-segment mapping and the control-plane method used to discover remote endpoints or prefixes. Keep MTU headroom for encapsulation and make multicast/ingress-replication or EVPN behavior explicit. VNIs are segmentation identifiers, not security policy by themselves; routing and policy between segments still need deliberate design.
Additional reference context Scope · expected state · examples · history · terminology Open only when you need the supporting context
Verification history & basis
When and against what this Topic was checked. Later text edits do not count as a new check.
Authoritative/upstream documentation reviewed for bounded claims in Virtualization & Overlays → VXLAN. Documentation verification only; this is not observed lab or production Evidence.
Basis: https://www.rfc-editor.org/rfc/rfc7348.html · confidence 94%Quick lookup tables
VXLAN · operational reference
Compact state and interpretation boundaries for fast lookup.
| State / evidence | Interpretation |
|---|---|
| Underlay | Routes between VTEPs |
| VTEP | Encap/decap endpoint |
| VNI | Overlay segment ID |
| Remote MAC/IP | Overlay reachability state |