Use it when VLANs do not pass between switches or the native VLAN does not match.
Trunking
Trunking carries several VLANs over one link by tagging frames with 802.1Q VLAN IDs; untagged frames belong to the native VLAN, which must match on both ends.
1. Trunks carry multiple VLANs with 802.1Q tags.
2. Native VLAN untagged — match both ends.
3. Prune allowed VLANs.
4. Disable DTP (switchport nonegotiate).
5. Check mismatches.
VLAN frames → 802.1Q tag → trunk → peer
Context & applicabilityCommon mistakes · platform/version boundaries
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 Common mistakes Narrow the fault
- Native VLAN mismatch between ends.
- Allowed VLAN list replaced instead of extended (
addkeyword forgotten).
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.
- Trunking carries several VLANs over one link using 802.1Q tags.
- Untagged frames belong to the native VLAN.
- Allowed VLAN lists must match the design.
show interfaces trunk— allowed and native VLANsshow interfaces <interface> switchport— mode trunk, DTP
ReferenceWhy it matters1 section · depth on demand
Overview
Access switches connect to the distribution layer with trunk links that carry all the VLANs used on that switch — typically user, voice and management. Configuring these uplinks explicitly, with only the needed VLANs allowed, keeps unnecessary traffic and spanning-tree load off the access layer.
Trunking on access switches: uplinks carry user, voice and management VLANs as 802.1Q tagged trunks.
interface Te1/1/1
switchport mode trunk
switchport trunk allowed vlan 10,20,120,999
switchport trunk native vlan 999
switchport nonegotiate
show interfaces trunk
Allow only needed VLANs per trunk to limit flooding and STP scope.
ReferenceImportant terms & boundaries3 sections · depth on demand
In depth
Trunking on a Layer 2 switch
A trunk is a point-to-point link that carries several VLANs, between switches or to a router, AP or controller. Cisco's Catalyst 9000 trunk guide uses IEEE 802.1Q: frames are tagged with their VLAN, except frames in the native VLAN (VLAN 1 by default), which are sent untagged.
Trunk facts (trunk guide)
| Item | Detail |
|---|---|
| Encapsulation | 802.1Q on all Ethernet interfaces |
| Native VLAN | VLAN 1 by default; must match on both ends or STP loops may result |
| Allowed VLANs | All (1–4094) by default; limit with switchport trunk allowed vlan |
| Removing VLAN 1 from the list | Reduces STP loop risk; CDP, PAgP, LACP, DTP and VTP still run in VLAN 1 |
| Pruning | VLANs 2–1001 eligible when VTP pruning is on |
DTP modes (trunk guide)
| Mode | Behaviour |
|---|---|
access | Never trunks; no DTP frames |
dynamic auto (default) | Trunks only if the neighbour is trunk or desirable; two auto ports stay access |
dynamic desirable | Actively tries to form a trunk |
trunk | Always a trunk; still sends DTP unless nonegotiate |
nonegotiate | No DTP frames; the neighbour must be set to trunk manually |
DTP is Cisco proprietary: with non-Cisco switches, configure both ends as trunks.
SW1(config)# interface TenGigabitEthernet1/1/1
SW1(config-if)# switchport mode trunk
SW1(config-if)# switchport nonegotiate
SW1(config-if)# switchport trunk native vlan 999
SW1(config-if)# switchport trunk allowed vlan 50,110,120
SW1# show interfaces trunk
Port Mode Encapsulation Status Native vlan
Te1/1/1 on 802.1q trunking 999
Port Vlans allowed on trunk
Te1/1/1 50,110,120
Port Vlans allowed and active in management domain
Te1/1/1 50,110,120
Port Vlans in spanning tree forwarding state and not pruned
Te1/1/1 50,110,120
Restrictions (trunk guide)
| Point | Detail |
|---|---|
| Port security | A trunk port can't be a secure port |
| 802.1X | Not on trunk or dynamic ports |
| EtherChannel | Trunks in a bundle must share configuration |
Use switchport add or remove to change allowed lists; a plain switchport trunk allowed vlan replaces the whole list.
Documented example, not captured output.
Platform, version and operating-envelope scope
Cisco IOS / IOS XE first; DTP support, the default trunk mode and whether ISL encapsulation exists vary by platform (most current Catalyst switches support 802.1Q only).
Trunk configuration
interface GigabitEthernet1/0/48
switchport mode trunk
switchport nonegotiate
switchport trunk native vlan 999
switchport trunk allowed vlan 10,20,30
Documented example, not captured output. Check with show interfaces trunk (mode, native VLAN, allowed and forwarding VLANs) on both ends. Use switchport trunk allowed vlan add — without add the list is replaced.
ReferenceConfiguration & state1 section · depth on demand
Known-good / broken configuration and state reference
Broken: link-up can coexist with wrong VLAN, blocked STP state, native/allowed mismatch or stale/incorrect MAC forwarding.
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 Network Devices → Layer 2 Switch → Trunking. Documentation verification only; this is not observed lab or production Evidence.
Basis: https://www.cisco.com/c/en/us/support/ios-nx-os-software/ios-xe-17/series.html · confidence 94%