Use it when large packets fail across a VXLAN fabric or you need to read the encapsulation in a capture.
Encapsulation
Context & applicabilityCommon mistakes · platform/version boundaries
Operational reference
Fast context before you go deeper.
ping 10.255.0.2 source loopback1 df-bit packet-size 1550Verification & 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 Checks Verify boundary
ping 10.255.0.2 source loopback1 df-bit packet-size 1550
show nve peers
show interface nve1 counters
The underlay ping with DF set must succeed at the encapsulated size; otherwise large frames are dropped.
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.
ReferenceWhy it matters1 section · depth on demand
Worked example
VXLAN wraps every original Ethernet frame in new UDP, IP and Ethernet headers. Those 50 extra bytes are why VXLAN fabrics require a larger MTU on the underlay than on the hosts. The worked example adds up the headers and shows what happens when the MTU is too small.
VXLAN encapsulation: original Ethernet frame + 8-byte VXLAN header (flags, 24-bit VNI) + UDP (destination 4789) + outer IP + outer Ethernet.
Worked example: 1500-byte inner IP packet + 14 inner Ethernet + 8 VXLAN + 8 UDP + 20 outer IPv4 = 1550 bytes on the underlay (70 with IPv6 outer header). If the underlay MTU is 1500, large packets are dropped silently because VTEPs normally set DF or cannot fragment — the classic "ping works, file transfers hang" fault.
ReferenceImportant terms & boundaries3 sections · depth on demand
UDP source port entropy
In depth
VXLAN header fields (RFC 7348)
| Field | Size | Value |
|---|---|---|
| Flags | 8 bits | I bit set (0x08) = VNI is valid |
| Reserved | 24 bits | 0 |
| VNI | 24 bits | Segment ID — about 16 million segments |
| Reserved | 8 bits | 0 |
Outer UDP destination port is 4789 (IANA). The inner frame is carried without its FCS.
MTU arithmetic for both underlay families
| Underlay | Outer Eth | Outer IP | UDP | VXLAN | Total overhead |
|---|---|---|---|---|---|
| IPv4, no outer 802.1Q | 14 | 20 | 8 | 8 | 50 bytes |
| IPv4 with outer 802.1Q | 18 | 20 | 8 | 8 | 54 bytes |
| IPv6 | 14 | 40 | 8 | 8 | 70 bytes |
For 1500-byte host frames the underlay IP MTU must be at least 1550 (IPv4) or 1570 (IPv6); most fabrics use 9216 on underlay links to leave room. RFC 7348 says VTEPs should not fragment VXLAN packets, so an undersized underlay drops them instead.
Identify VXLAN in a capture
tcpdump -ni eth0 udp port 4789
Wireshark decodes UDP 4789 as VXLAN automatically and shows the VNI, then the inner Ethernet frame. Check that the outer source/destination are the expected VTEP loopbacks and that the VNI matches the VLAN mapping on both sides.
Outer source port and ECMP
The outer UDP source port is derived from a hash of the inner headers, so different inner flows take different underlay ECMP paths. A capture where all VXLAN packets use the same source port means the inner traffic is one flow — or the VTEP does not add entropy, and one underlay link carries everything.
Security note
VXLAN has no authentication or encryption. Anyone who can send UDP 4789 to a VTEP can inject frames into a VNI; filter UDP 4789 at the fabric edge and use MACsec or IPsec on links that leave a trusted area.
VXLAN header and overhead
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 → Encapsulation. Documentation verification only; this is not observed lab or production Evidence.
Basis: https://www.rfc-editor.org/rfc/rfc7348.html · confidence 94%