Pcornel
Browse topics
Options
Recent
Favorites
Networking · Technical reference

VXLAN, VNI & VTEP

Direct answer

VXLAN carries Ethernet frames across a routed IP network inside UDP packets. The VNI identifies the segment, the VTEP is the device that wraps and unwraps frames, and the underlay is the IP network in between.

When to use this

Use it when a Layer 2 segment has to stretch across a routed fabric, and when hosts in the same segment behind different switches cannot reach each other.

First 30 seconds

1. Underlay: ping the remote VTEP loopback from the local one, 1550 bytes, no fragmentation.

2. Fails → underlay routing or MTU; fix that first.

3. show nve vni — is the VNI up on both VTEPs, mapped to the same VLAN?

4. show nve peers — does each list the other?

5. Is the host's MAC address known on the remote VTEP?

Operational verification

VTEP loopbacks reachable in the underlay at full size → VNI configured and up on both VTEPs → VTEPs know each other as peers → host MAC learned or advertised → frame encapsulated to the right VTEP → delivered in the same VNI

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 bgp l2vpn evpn summary
Scope / prerequisiteUse it when a Layer 2 segment has to stretch across a routed fabric, and when hosts in the same segment behind differen…
Show · 1
What next?3 suggested next steps
Catalog command links1
Evidence1
On this pageJump to a specific section
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.

2 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 Verify boundary
show nve peers
show nve vni
show nve interface nve1 detail
show bgp l2vpn evpn summary
show l2vpn evpn mac
ping 10.255.0.2 source Loopback0 size 1550 df-bit

Command names vary somewhat between IOS XE and NX-OS. show nve peers lists the remote VTEPs this one knows and their state; show nve vni lists the configured VNIs, whether each is up, and how flooded traffic is handled. The EVPN commands show the BGP sessions carrying the overlay information and the MAC addresses learned through them. The ping tests the underlay between VTEP loopbacks at full size without fragmentation.

Check in two steps: first the underlay — VTEP loopbacks reach each other, at 1550 bytes — and then the overlay: the VNI is up on both VTEPs, each lists the other as a peer, and the host's MAC address is known on the remote VTEP.

Known-good: all of the above, on both VTEPs.

Step 2 Failure boundaries & design notes Narrow the fault
  • VTEPs cannot reach each other's loopbacks. An underlay routing problem; nothing in the overlay can work.
  • Small packets work, full-size ones fail. The underlay MTU is too small for the added 50 bytes.
  • Hosts in the same segment cannot find each other. Broadcasts are not delivered: the multicast group or the replication list differs between VTEPs.
  • One VTEP does not list the other as a peer. The VNI is configured on one side only, or the EVPN session between them is down.
  • A host's MAC address is not known remotely. Its VTEP is not advertising it — the VLAN-to-VNI mapping is missing there — or the route is filtered.
  • Traffic within a segment works, between segments it does not. The routing VNI or the gateway configuration differs between VTEPs.
  • A VLAN works locally but not across the fabric. It is mapped to different VNIs on different switches.
Evidence references

Evidence · 1 on this Topic

Expected observations and documentation recipes are reference material. Record actual output, device identity, scope and time before claiming a verified result.

observation · 1
Command lookup Jump straight to Cisco syntax
Key points

Decide first which layer the fault is in. The underlay must let the VTEP loopbacks reach each other at 1550 bytes or more — encapsulation adds 50. Then the overlay: the same VLAN-to-VNI mapping on every switch, peers known, and the host's MAC address learned remotely.

Key checks
  • show nve peers — remote VTEPs and their state.
  • show nve vni — configured VNIs, up or down, how flooded traffic is handled.
  • show bgp l2vpn evpn summary — the sessions carrying overlay information.
  • show l2vpn evpn mac — MAC addresses learned through EVPN.
  • ping <remote VTEP> source Loopback0 size 1550 df-bit — the underlay at full size.

Command names vary between IOS XE and NX-OS.

ReferenceWhat it is1 section · depth on demand

Mechanics & mental model

VXLAN carries Ethernet frames across a routed IP network by wrapping them in UDP packets. Devices in the same VXLAN segment appear to share one Layer 2 network even though they sit behind different routers. Three terms describe it: the VNI identifies the segment, the VTEP is the device that wraps and unwraps, and the underlay is the IP network in between.

ReferenceWhy it matters1 section · depth on demand

Why it matters operationally

VXLAN is what lets a data centre or campus be fully routed — no spanning tree across the core, all links in use — while still offering Layer 2 segments that stretch anywhere. It also splits every problem in two: the underlay can be healthy while a segment is broken, and the reverse. Establishing which layer a fault is in comes before anything else.

ReferenceHow it works1 section · depth on demand

Operational flow & dependencies

The pieces.

TermMeaning
VNI (VXLAN network identifier)A 24-bit number identifying a segment — about 16 million, against 4094 VLANs
VTEP (VXLAN tunnel endpoint)The switch, or host, that encapsulates frames entering the segment and decapsulates those leaving it. It has an IP address in the underlay, usually a loopback
UnderlayThe routed IP network connecting the VTEPs. It sees only UDP packets between VTEP addresses
OverlayThe segments carried on top

How a frame travels. A host sends an ordinary Ethernet frame. Its VTEP maps the incoming VLAN to a VNI, looks up which remote VTEP the destination MAC address is behind, wraps the frame in a VXLAN header, UDP (port 4789) and IP addressed to that VTEP, and sends it into the underlay. The remote VTEP unwraps it and delivers the original frame.

Learning where MAC addresses are. Two approaches:

  • Flood and learn. Broadcasts and unknown destinations are sent to all VTEPs of the segment — through an underlay multicast group or a configured list of peers — and VTEPs learn from the traffic they receive, like a switch.
  • *BGP EVPN.* VTEPs advertise the MAC and IP addresses of their local hosts to each other through BGP. Nothing needs to be flooded to find a host, and this is the standard for new designs.

Broadcast and multicast within a segment still have to reach every VTEP in it, by underlay multicast or by sending a copy to each peer (ingress replication).

Size. Encapsulation adds 50 bytes. VTEPs do not fragment, so every underlay link must have an MTU of at least 1550 for hosts to keep a 1500-byte MTU; in practice the underlay is set to 9000 or more.

Routing between segments is done on the VTEPs, typically with every VTEP acting as default gateway for its local hosts under one shared address.

ReferenceImportant terms & boundaries2 sections · depth on demand

In depth

VXLAN, VNIs and VTEPs

VXLAN stretches Layer 2 segments across a routed IP network by wrapping Ethernet frames in UDP. RFC 7348 defines it:

  • An 8-byte header with a 24-bit VXLAN Network Identifier (VNI). The I flag must be set for a valid VNI.
  • UDP destination port 4789.
  • A UDP source port derived from a hash of the inner packet, giving ECMP entropy in the underlay.
  • VTEPs encapsulate and decapsulate.
  • In the RFC's base model, unknown, broadcast and multicast frames travel over IP multicast.
  • VTEPs must not fragment VXLAN packets, so the underlay MTU must be large enough.

Components

TermMeaning
VNISegment ID (24 bits, about 16 million segments, against 4,094 VLANs)
VTEPTunnel endpoint: a switch, router or hypervisor
UnderlayThe routed IP network between VTEPs
OverlayThe VXLAN segments carried across it
L2 VNIOne per bridged VLAN
L3 VNIOne per VRF, for routing between subnets (EVPN symmetric IRB)

Learning and BUM traffic

MethodHow remote MACs are learnedBUM handling
Flood and learn (RFC 7348)From received trafficIP multicast in the underlay
BGP EVPNA control plane advertises MAC and IPIngress replication or multicast
LISP (SD-Access)Map-server lookupsMulticast in the underlay, or replication

MTU planning

The VXLAN headers add 50 bytes over IPv4 (outer Ethernet 14 + IPv4 20 + UDP 8 + VXLAN 8), or 54 with an outer VLAN tag. Underlays are usually set to 9100 or more. A 1500-byte underlay would force hosts to 1450 bytes.

leaf1# show nve peers
Interface  Peer-IP          State LearnType Uptime   Router-Mac
nve1       10.255.10.12     UP    CP        2d03h    a4bb.6d10.1201
leaf1# show nve vni
Interface  VNI      Multicast-group   VNI state  Mode  VLAN  cfg vrf
nve1       10110    N/A               Up         L2CP  110   CLI N/A
nve1       50001    N/A               Up         L3CP  N/A   CLI TENANT-A
leaf1# show bgp l2vpn evpn summary
leaf1# show l2vpn evpn mac
leaf1# ping 10.255.10.12 source Loopback1 size 8972 df-bit

The large ping between VTEP loopbacks checks the underlay MTU. If it fails, small packets will work while large ones are silently dropped, which is the classic VXLAN MTU symptom.

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, VNI and VTEP are the three terms that describe how a VXLAN fabric works. The VTEP is the device that adds and removes VXLAN headers; the VNI is the segment number carried in those headers; VXLAN itself is the encapsulation that carries Ethernet frames inside UDP across a routed network. Put together: a host's frame enters a VTEP, is tagged with the VNI of its segment, travels as a UDP packet to the remote VTEP, and is delivered to the destination host in the same segment.

How a VTEP learns where to send: either by flooding and learning (multicast or ingress replication carries unknown traffic to all VTEPs in the VNI) or with BGP EVPN, where VTEPs advertise their hosts' MAC and IP addresses so flooding is minimal. EVPN is the standard for production fabrics.

show nve peers
show nve vni
show l2route evpn mac all
show bgp l2vpn evpn route-type 2

If show nve peers is empty, the problem is in the underlay or EVPN control plane, not in the hosts.

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 Network & Protocols → VXLAN, VNI & VTEP. Documentation verification only; this is not observed lab or production Evidence.

Basis: https://www.rfc-editor.org/rfc/rfc7348.html · confidence 94%
Technical changelog & impact

What changed and what may be affected

Recent technical edits are separated from ordinary page timestamps. Relationship impact is advisory: it identifies nearby canonical references to review, not automatic breakage.

Related reference impactReview these references after material technical changes when their shared boundary is affected.
Terminology layer

Terms & aliases

Hover a linked term for a quick definition; click it to open its glossary entry. Aliases are other names that find this Topic in search.

Aliases that resolve here
vxlanvnivtepoverlayevpnudp 4789
Embedded quick reference

Operational notes

Former standalone Cheat Sheet content now lives directly inside the Topic where it belongs.

VXLAN Fast Check

Underlay vs overlay verification

1. Identify local/remote VTEP.

2. Verify underlay route between VTEPs.

3. Check MTU/encapsulation headroom.

4. Verify VNI mapping.

5. Inspect MAC/ARP/ND/EVPN state.

6. Capture UDP 4789.

Boundary: healthy underlay ≠ healthy overlay.

Confirmation

Confirm action

Continue?