Pcornel
Virtualization · Virtual Networking

Tagged Traffic

Cheat sheet · https://pcornel.dk/topic.php?topic=3527

Back to the Topic

Answer

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.

Remember

  • 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.

First checks

  • tcpdump -e -n -i <uplink> vlan 20 — tagged frames on uplink
  • ip -d link show eth0.20 — guest VLAN subinterface
  • bridge vlan show — tagged port membership

Verify in this order

frame + 802.1Q tag → trunk → untag at access

Where it usually breaks

First mismatch in guest NIC → virtual switch/bridge → VLAN/port group/security policy → physical uplink → routed path → peer/workload; preserve identity/native error/pre-state before mutation.

Virtual Networking → Tagged Traffic reference map

BoundaryMeaningEvidence limit
Tag present802.1Q header visiblePacket evidence
VLAN ID12-bit VLAN identifierMust match design
AdmissionVirtual port permits tagPolicy evidence
PreservationTag reaches uplink/peerPath evidence

Read-only verification commands unless stated otherwise. Confirm syntax for your platform and release. Full reference: https://pcornel.dk/topic.php?topic=3527

Confirmation

Confirm action

Continue?