VXLAN Header & VNI Evidence
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.
Context & applicabilityCommon mistakes · platform/version boundaries
Operational reference
Fast context before you go deeper.
show nve vniVerification & 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 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 · 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.
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.
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
vxlanorudp.port == 4789.
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.
| Part | Size | Contents |
|---|---|---|
| Outer Ethernet | 14 bytes | MAC addresses of the underlay hop |
| Outer IP | 20 bytes | Source and destination: the two tunnel endpoints |
| Outer UDP | 8 bytes | Destination port 4789; a source port derived from the inner frame |
| VXLAN header | 8 bytes | Flags and the VNI |
| Inner Ethernet frame | The original frame, including its own MAC addresses and, usually, no VLAN tag |
The VXLAN header.
| Field | Size | Meaning |
|---|---|---|
| Flags | 8 bits | The I bit (0x08) is set to say the VNI is valid |
| Reserved | 24 bits | Zero |
| VNI | 24 bits | The segment identifier |
| Reserved | 8 bits | Zero |
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
| Layer | Field of interest | Typical value |
|---|---|---|
| Outer Ethernet | Source and destination MAC | Next-hop router MACs in the underlay |
| Outer IP | Source and destination | Local and remote VTEP loopbacks |
| Outer IP | DSCP | Copied from the inner packet on most platforms |
| UDP | Destination port | 4789 |
| UDP | Source port | Hash of the inner flow (49152–65535 recommended) |
| VXLAN | Flags | 0x08 (I bit set) |
| VXLAN | VNI | For example 10110 |
| Inner Ethernet | MACs, VLAN-less | The original host frame |
Overhead
| Part | Bytes |
|---|---|
| Outer Ethernet | 14 (18 with a VLAN tag) |
| Outer IPv4 | 20 (40 for IPv6) |
| UDP | 8 |
| VXLAN | 8 |
| 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.
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 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%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.