VXLAN (vxlan)
- Layer: L2 (data link)
- Header: 8 octets (fixed)
- Notes: Encapsulation and tunnels
Reached from
| Lower layer | Selector | Value |
|---|---|---|
udp | dst_port / src_port | 4789 (0x12b5) |
Fields
| Field | Type | Default | Auto | Description |
|---|---|---|---|---|
flags | flags(8) | 0x8 | VXLAN flags (I bit = VNI is valid). | |
reserved1 | uint(24) | 0 | ||
vni | uint(24) | 0 | 24-bit VXLAN Network Identifier. | |
reserved2 | uint(8) | 0 |
flags
| Bit | Mask | Name |
|---|---|---|
| 3 | 8 (0x08) | vni_present |
Next layer
The next layer is selected by flags; when the field is Auto the builder writes the value of the protocol stacked above.
| Value | Protocol | Note |
|---|---|---|
| (any other value) | ethernet2 |
Sample templates
- vxlan —
templates/protocols/encap/vxlan.wpg.yaml