Pcornel
Browse topics
Options
Recent
Favorites
Networking · Technical reference

VXLAN Header & VNI Evidence

Direct answer

A VXLAN packet is an Ethernet frame inside UDP: outer Ethernet, outer IP (the two tunnel endpoints), UDP to port 4789, an 8-byte VXLAN header with the 24-bit VNI, then the original frame.

When to use this

Use it to read VXLAN in a capture: which endpoints, which segment, which inner conversation — and whether the packet is too large for the underlay.

First 30 seconds

1. Capture in the underlay, filter vxlan — is the conversation there at all?

2. Not → the first endpoint does not encapsulate: VLAN not mapped, or flooding not working.

3. VNI as expected? If not, the mapping differs between switches.

4. Outer destination = the endpoint behind which the target lives?

5. Frame length versus the underlay MTU.

Operational verification

frame enters a VLAN mapped to a VNI → encapsulated towards the endpoint that owns the destination MAC → UDP 4789 passes the underlay unfragmented → arrives with the same VNI → decapsulated and delivered

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
Key commandshow nve vni
Scope / prerequisiteUse it to read VXLAN in a capture: which endpoints, which segment, which inner conversation — and whether the packet is…
What next?3 suggested next steps
Evidence1
On this pageJump to a specific section
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 workflow Verify boundary
show nve vni
show nve peers
show interface nve1

The VNI view shows which VNI each local VLAN or bridge domain maps to — the value to expect in the header. The peers view shows the endpoint addresses to expect as outer source and destination. The interface counters show packets encapsulated and decapsulated.

In a capture taken in the underlay, filter on vxlan or udp.port == 4789. For a packet of interest, read: outer source and destination IP (the endpoints), the VNI, then the inner source and destination MAC and IP. To follow one conversation, filter on the inner addresses — the outer ones are shared by all traffic between the two endpoints. Compare the frame length with the underlay MTU.

Known-good: the frame leaves the first endpoint with the expected VNI, addressed to the endpoint behind which the destination lives, and arrives there with the same VNI.

Step 2 Failure isolation workflow Narrow the fault
  • No encapsulated packet appears for the conversation. The first endpoint does not encapsulate it: the VLAN is not mapped to a VNI, or the destination is unknown and flooding is not working.
  • The VNI is not the expected one. The VLAN-to-VNI mapping differs between the endpoints.
  • The outer destination is the wrong endpoint. The first endpoint has stale information about where the MAC address is.
  • The packet leaves but never arrives. Dropped in the underlay — check its size against the MTU, and whether UDP 4789 is filtered.
  • Packets larger than about 1450 bytes inner size are lost. The underlay MTU is 1500.
  • All traffic between two endpoints takes one underlay path. The source port does not vary, or the underlay hashes on addresses only.
  • Wireshark does not decode the payload. The implementation uses a non-standard port; decode as VXLAN.
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

Keep the layers apart: outer addresses are the tunnel endpoints, the VNI is the segment, the inner frame is the real conversation. The overhead is 50 bytes over IPv4. The UDP source port varies per inner conversation so the underlay can share load. Filter on inner addresses to follow one conversation.

Key checks
  • show nve vni — the VNI each VLAN maps to: the value to expect in the header.
  • show nve peers — the endpoint addresses to expect as outer source and destination.
  • show interface nve1 — packets encapsulated and decapsulated.
  • Capture filter vxlan or udp.port == 4789.
ReferenceWhat it is1 section · depth on demand

Mental model

A VXLAN packet is an Ethernet frame inside a UDP packet. On the wire it has two sets of headers: the outer ones get the packet from one tunnel endpoint to the other, and after an 8-byte VXLAN header comes the original frame, untouched.

ReferenceWhy it matters1 section · depth on demand

Why it matters operationally

Reading a capture of VXLAN traffic means keeping the two layers apart. The outer addresses say which tunnel endpoints are involved, the VNI says which segment, and the inner frame is the actual conversation. Most questions — is it being encapsulated, into the right segment, towards the right endpoint, and is it too big — are answered by one of those three.

ReferenceHow it works1 section · depth on demand

How it works

Layout.

PartSizeContents
Outer Ethernet14 bytesMAC addresses of the underlay hop
Outer IP20 bytesSource and destination: the two tunnel endpoints
Outer UDP8 bytesDestination port 4789; a source port derived from the inner frame
VXLAN header8 bytesFlags and the VNI
Inner Ethernet frameThe original frame, including its own MAC addresses and, usually, no VLAN tag

The VXLAN header.

FieldSizeMeaning
Flags8 bitsThe I bit (0x08) is set to say the VNI is valid
Reserved24 bitsZero
VNI24 bitsThe segment identifier
Reserved8 bitsZero

The UDP source port is calculated from the inner frame's addresses and ports. All packets of one inner conversation therefore get the same source port, and different conversations get different ones — which lets the underlay spread VXLAN traffic over equal-cost paths, although the outer addresses are the same for everything between two endpoints.

Overhead. 14 + 20 + 8 + 8 = 50 bytes over IPv4, 54 with a VLAN tag on the outer frame, 70 over an IPv6 underlay. Tunnel endpoints normally set the don't-fragment bit and do not fragment, so the underlay has to carry the full size.

What changes on the way. Only the outer Ethernet header and the outer TTL change from hop to hop. Outer IP addresses, the VNI and the inner frame stay the same from one endpoint to the other.

Some older implementations use UDP port 8472; both ends must agree.

ReferenceImportant terms & boundaries1 section · depth on demand

In depth

The VXLAN header on the wire

A VXLAN packet carries two full sets of headers: the outer ones the underlay routes on, and the inner Ethernet frame. RFC 7348 defines the stack:

  • Outer headers: an outer Ethernet header, an outer IP header (protocol 17), and a UDP header with destination port 4789 and a hashed source port.
  • UDP checksum: sent as zero.
  • VXLAN header (8 bytes): flags with the I bit set, a 24-bit VNI and reserved fields.
  • Inner frame: the original Ethernet frame.

Header stack

LayerField of interestTypical value
Outer EthernetSource and destination MACNext-hop router MACs in the underlay
Outer IPSource and destinationLocal and remote VTEP loopbacks
Outer IPDSCPCopied from the inner packet on most platforms
UDPDestination port4789
UDPSource portHash of the inner flow (49152–65535 recommended)
VXLANFlags0x08 (I bit set)
VXLANVNIFor example 10110
Inner EthernetMACs, VLAN-lessThe original host frame

Overhead

PartBytes
Outer Ethernet14 (18 with a VLAN tag)
Outer IPv420 (40 for IPv6)
UDP8
VXLAN8
Total (IPv4, untagged)50

Why the source port matters

Underlay switches hash on the outer headers. Because RFC 7348 recommends deriving the UDP source port from the inner flow, different inner flows between the same two VTEPs still spread across ECMP paths. A capture where every packet between two VTEPs has the same source port points to poor hashing.

analyst$ tshark -r vxlan.pcap -Y vxlan -T fields -e ip.src -e ip.dst -e udp.srcport -e vxlan.vni -e eth.src -e eth.dst | head -4
10.255.10.11  10.255.10.12  52114  10110  a4:bb:6d:55:01:64  a4:bb:6d:66:02:20
10.255.10.11  10.255.10.12  61007  10110  a4:bb:6d:55:01:71  a4:bb:6d:66:02:20
analyst$ tshark -r vxlan.pcap -Y "vxlan.vni == 10110 && arp" -T fields -e arp.src.proto_ipv4 -e arp.dst.proto_ipv4
analyst$ tshark -d udp.port==4789,vxlan -r capture.pcap -Y vxlan -c 1 -V | grep -E "Flags|VXLAN Network Identifier"

Wireshark decodes port 4789 as VXLAN automatically. The -d option forces decoding for captures that use a non-standard port.

Fragmentation

RFC 7348 doesn't allow VTEPs to fragment VXLAN packets. Routers in the underlay may fragment them, but the destination VTEP may discard such fragments. Fix the MTU rather than relying on fragmentation.

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.
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 Header & VNI Evidence. Documentation verification only; this is not observed lab or production Evidence.

Basis: https://www.rfc-editor.org/rfc/rfc7348.html · confidence 94%
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
vxlan vni packet
Confirmation

Confirm action

Continue?