Pcornel
Browse topics
Options
Recent
Favorites
Virtualization · Technical reference

VLAN Trunking

Direct answer

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.

When to use this

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.

First 30 seconds

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.

Operational verification

multiple VLAN tags → trunk port → switch

Evidence · next step

Test native/untagged traffic and every operationally critical VLAN/failover path.

Continue only after interpreting the current observation.
Context & applicabilityCommon mistakes · platform/version boundaries
Common mistakes
Common traps

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.

Platform / version applicability
virtualization-network
applies
Structured applicability is explicit Topic metadata; it does not infer compatibility beyond the stored rows.
At a glance

Operational reference

Fast context before you go deeper.

Platformvirtualization-network
Scope / prerequisiteUse it for virtual appliances, nested switches, bridges or uplinks that must transport more than one VLAN rather than m…
What next?3 suggested next steps
Evidence1
On this pageJump to a specific section
Operational workflow

Verification & Troubleshooting

Start with the observed symptom, prove the nearest boundary, and move outward only when the current state is understood.

1 steps Observe → verify → isolate → change minimally → repeat the original test.
ObservedRecord what the original test actually shows

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 references

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.

observation · 1
Key points
  • 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.
Key checks
  • bridge vlan show dev <tap> — trunk VLANs on a port
  • Set-VMNetworkAdapterVlan -VMName <vm> -Trunk -AllowedVlanIdList 10-20 -NativeVlanId 0 — Hyper-V trunk to guest
  • tcpdump -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.

Source basisSource attribution states what this section is based on; it is not independent proof that the current environment matches it.
Additional reference context Scope · expected state · examples · history · terminology Open only when you need the supporting context
Technical verification history

Verification history & basis

When and against what this Topic was checked. Later text edits do not count as a new check.

2026-09-14 · vendor docvirtualization-network current

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%
Terminology layer

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.

Aliases that resolve here
virtual trunkvm trunk portvlan trunk vmtrunking hypervisor
Embedded reference data

Quick lookup tables

Virtual Networking → VLAN Trunking reference map

Fast virtual-network boundaries for Virtual Networking → VLAN Trunking.

BoundaryMeaningEvidence limit
Allowed VLANsExplicit VLAN setPolicy boundary
Tagged VLAN802.1Q framePreserved across trunk
Native/untaggedDesign-specificMust match peer
Guest trunkGuest handles tagsDriver/OS dependency
Confirmation

Confirm action

Continue?