Pcornel
Browse topics
Options
Recent
Favorites
Networking · Technical reference

VXLAN

Direct answer

VXLAN carries Layer 2 frames inside UDP (port 4789) across a routed network; VTEPs encapsulate and decapsulate traffic, and the 24-bit VNI identifies up to 16 million segments.

When to use this

Use it when extending Layer 2 segments across a routed network, or VXLAN tunnels do not carry traffic.

First 30 seconds

1. VXLAN extends L2/L3 over a routed underlay (UDP 4789).

2. VTEPs encapsulate.

3. EVPN or flood-and-learn control plane.

4. Underlay MTU must fit 50-byte overhead.

5. Verify underlay, control plane, then VNIs.

Operational verification

underlay → VTEPs → EVPN → VNIs → encapsulated traffic

Context & applicabilityCommon mistakes · platform/version boundaries
Platform / version applicability
Protocol standard + deployed implementation
applies
Structured applicability is explicit Topic metadata; it does not infer compatibility beyond the stored rows.
At a glance

Operational reference

Fast context before you go deeper.

PlatformProtocol standard · Cisco IOS / IOS XE
Key commandshow nve peers
Scope / prerequisiteUse it when extending Layer 2 segments across a routed network, or VXLAN tunnels do not carry traffic.
Show · 2
What next?3 suggested next steps
Child topics (this level)7
Catalog command links2
Evidence0
On this pageJump to a specific section
Technical verification guide · documented only

Check 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 / checkInterpretationDoes 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.

Verification

Show Commands

Read-only Cisco show commands for confirming state, narrowing a fault and interpreting the current boundary.

Operational workflow

Verification & Troubleshooting

Start with the observed symptom, prove the nearest boundary, and move outward only when the current state is understood.

1 steps Observe → verify → isolate → change minimally → repeat the original test.
ObservedRecord what the original test actually shows

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.

Command lookup Jump straight to Cisco syntax
Drill down

Subtopics

Go one level deeper into this subject.

Key points
  • VXLAN tunnels Layer 2 frames inside UDP (port 4789) across a routed network.
  • VNIs identify up to 16 million segments.
  • BGP EVPN is the common control plane for VXLAN.
Key checks
  • show nve peers — VTEP peers
  • show nve vni — VNIs and state
  • show bgp l2vpn evpn summary — EVPN control plane
ReferenceWhy it matters1 section · depth on demand

When to use it

Use it to reason about VXLAN/LISP fabrics and controller-based networks without confusing overlay state with underlay transport.

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)

HeaderContent
Outer EthernetTo the next-hop router or the remote VTEP; VLAN tag optional
Outer IPSource: local VTEP; destination: remote VTEP (unicast) or a multicast group (flooded traffic)
Outer UDPDestination 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 frameThe original frame

Key properties

PropertyValue
Segment ID24-bit VNI: about 16 million segments
Overhead50 bytes with an IPv4 outer header (14 Ethernet + 20 IP + 8 UDP + 8 VXLAN)
FragmentationVTEPs must not fragment; RFC 7348 recommends raising the underlay MTU
Inner VLAN tagsStripped by the encapsulating VTEP by default; decapsulated frames with a tag are discarded unless configured otherwise

Control plane options

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

Source basisSource attribution states what this section is based on; it is not independent proof that the current environment matches it.

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
Technical verification history

Verification history & basis

When and against what this Topic was checked. Later text edits do not count as a new check.

2026-09-14 · vendor docProtocol standard + deployed implementation RFC 7348

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%
Embedded reference data

Quick lookup tables

VXLAN · operational reference

Compact state and interpretation boundaries for fast lookup.

State / evidenceInterpretation
UnderlayRoutes between VTEPs
VTEPEncap/decap endpoint
VNIOverlay segment ID
Remote MAC/IPOverlay reachability state
Confirmation

Confirm action

Continue?