Use this Topic to determine whether VLAN tags should be created by the guest, virtual switch/bridge or upstream network and whether they remain intact across each required trunk boundary.
Tagged Traffic
Tagged traffic carries an IEEE 802.1Q VLAN tag in each Ethernet frame, so a virtual switch, host uplink or physical switch knows which VLAN the frame belongs to. Trunk ports carry tagged frames for many VLANs over one link.
1. Tagged traffic carries an 802.1Q header.
2. Both ends must agree on VLAN IDs.
3. MTU: tags add 4 bytes.
4. Capture to verify.
5. Double tagging only by design.
frame + 802.1Q tag → trunk → untag at access
Inspect the reverse direction and another critical VLAN.
Continue only after interpreting the current observation.Context & applicabilityCommon mistakes · platform/version boundaries
It does not show untagged/native behavior, other VLAN IDs or return traffic.
Next check: Inspect the reverse direction and another critical VLAN.
Operational reference
Fast context before you go deeper.
Verification & 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 path Verify boundary
frame creation → 802.1Q tag insertion → virtual port admission → virtual forwarding → uplink → peer
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.
- A VLAN tag is observable packet evidence; a configured VLAN value is only intent until the frame is inspected.
- Tags may be added, removed or translated at different virtualization boundaries depending on port mode.
- Guest VLAN interfaces require the vNIC/virtual port to permit those tags.
- Unexpectedly stripped tags often look like generic L2 failure.
tcpdump -e -n -i <uplink> vlan 20— tagged frames on uplinkip -d link show eth0.20— guest VLAN subinterfacebridge vlan show— tagged port membership
ReferenceWhy it matters1 section · depth on demand
In depth
Tagged traffic carries an 802.1Q header (4 bytes: TPID 0x8100, priority, VLAN ID). In virtualization, tags are added either by the vSwitch (VST), by the guest (VGT) or by the physical switch (EST).
Debugging tags:
tcpdump -e -n -i eno1 vlan 20 # on the host uplink: see tags
tcpdump -e -n -i tap120i0 # VM tap: should be untagged for access-style vNICs
MTU: the tag adds 4 bytes on the wire; physical switches handle this, but nested encapsulation (VXLAN over VLAN) needs MTU headroom.
ReferenceImportant terms & boundaries2 sections · depth on demand
What this shows and what it does not
Observing the intended tag at one capture point shows tag presence there, not that the next hop accepts or preserves it.
Packet/header semantics belong to Networking; this Topic is the virtualization location/handling model.
Guest tagging (trunk to VM)
| Platform | Configuration |
|---|---|
| vSphere | VLAN 4095 (standard) or VLAN trunk range (vDS) |
| Hyper-V | Set-VMNetworkAdapterVlan -Trunk -AllowedVlanIdList 10-20 -NativeVlanId 1 |
| Proxmox | NIC without tag + trunks=10;20 |
The guest then creates VLAN sub-interfaces itself.
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 Virtual Networking → Tagged Traffic. Documentation verification only; this is not observed lab or production Evidence.
Basis: https://libvirt.org/formatnetwork.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.
Quick lookup tables
Virtual Networking → Tagged Traffic reference map
Fast virtual-network boundaries for Virtual Networking → Tagged Traffic.
| Boundary | Meaning | Evidence limit |
|---|---|---|
| Tag present | 802.1Q header visible | Packet evidence |
| VLAN ID | 12-bit VLAN identifier | Must match design |
| Admission | Virtual port permits tag | Policy evidence |
| Preservation | Tag reaches uplink/peer | Path evidence |