Use it for virtual appliances, nested switches, bridges or uplinks that must transport more than one VLAN rather than map a VM to a single access VLAN.
VLAN Trunking
VLAN Trunking allows multiple VLANs to traverse a virtual or physical link by carrying tagged frames and, depending on design, an optional untagged/native VLAN.
1. Trunking carries multiple VLANs on one link.
2. Uplinks to physical switches are trunks.
3. Guest trunks (VGT) need guest VLAN config.
4. Allowed lists must match both sides.
5. Capture with tcpdump -e.
multiple VLAN tags → trunk port → switch
Test native/untagged traffic and every operationally critical VLAN/failover path.
Continue only after interpreting the current observation.Context & applicabilityCommon mistakes · platform/version boundaries
It does not show untested VLANs, native VLAN handling or failover uplinks are correct.
Next check: Test native/untagged traffic and every operationally critical VLAN/failover path.
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
guest/tag source → virtual trunk policy → virtual switch/bridge → host uplink trunk → physical trunk → destination VLAN
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 trunk is an allowed-VLAN policy, not simply “tagging enabled.”
- Both ends must agree on which VLANs are permitted and how untagged/native traffic is handled.
- A guest using a trunk must understand and generate the expected VLAN tags unless the hypervisor performs the mapping.
- Trunk misconfiguration can selectively break only some VLANs while link state remains healthy.
bridge vlan show dev <tap>— trunk VLANs on a portSet-VMNetworkAdapterVlan -VMName <vm> -Trunk -AllowedVlanIdList 10-20 -NativeVlanId 0— Hyper-V trunk to guesttcpdump -e -i <nic> vlan— see tags
ReferenceHow it works1 section · depth on demand
Guest-to-physical journey
VLAN Trunking should be traced end to end as: guest/tag decision → vNIC/port group → vSwitch trunk/access policy → host uplink → physical trunk → destination VLAN/gateway.
ReferenceImportant terms & boundaries2 sections · depth on demand
What this shows and what it does not
Link-up on a trunk shows carrier/attachment only, but it does not show each VLAN is permitted or interpreted identically at both ends.
Generic trunk/native VLAN theory belongs to Networking; this Topic owns virtualization attachment and tag-preservation boundaries.
In depth
A VLAN trunk carries multiple tagged VLANs on one link. For VMs this is needed on host uplinks (switch port in trunk mode allowing the VM VLANs) and occasionally to a guest (virtual firewall/router appliances that handle tags themselves).
! Switch (Cisco)
interface Te1/0/10
switchport mode trunk
switchport trunk allowed vlan 10,20,30
switchport trunk native vlan 999
spanning-tree portfast trunk
Guest trunk: VMware port group VLAN 4095 or vDS trunk range, Proxmox vNIC without tag on a VLAN-aware bridge, Hyper-V Set-VMNetworkAdapterVlan -Trunk -AllowedVlanIdList 10,20 -NativeVlanId 0.
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 → VLAN Trunking. 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 → VLAN Trunking reference map
Fast virtual-network boundaries for Virtual Networking → VLAN Trunking.
| Boundary | Meaning | Evidence limit |
|---|---|---|
| Allowed VLANs | Explicit VLAN set | Policy boundary |
| Tagged VLAN | 802.1Q frame | Preserved across trunk |
| Native/untagged | Design-specific | Must match peer |
| Guest trunk | Guest handles tags | Driver/OS dependency |