Pcornel
Browse topics
Options
Recent
Favorites
Networking · Technical reference

Campus VLANs & Trunking

Direct answer

Campus VLANs and trunking at ENCOR level: VLANs on every switch, 802.1Q trunks with a matching native VLAN and pruned allowed lists, static trunk modes instead of DTP, and Layer 2 kept inside each distribution block.

When to use this

Use it when a VLAN works on some switches but not across the campus, or when reviewing trunk design and hardening.

First 30 seconds

1. show interfaces trunk on both switches — port listed as trunking?

2. Native VLAN the same on both ends?

3. VLAN in "allowed", "allowed and active" and "forwarding" on both ends?

4. Missing in "active" → VLAN not created on that switch. Missing in "forwarding" → STP blocking or VTP pruning.

5. show interfaces <if> switchport — not negotiated into access mode?

Operational verification

both ends trunking → same native VLAN → VLAN allowed on both ends → VLAN exists on both switches → VLAN forwarding in STP → frames tagged and delivered

Failure signatureHosts in the same VLAN on different switches cannot reach each other

Hosts on one switch reach each other, but not hosts in the same VLAN on another switch.

Possible stored cause: The VLAN is missing on a switch in the path or is not allowed/forwarding on an inter-switch trunk.
Context & applicabilityCommon mistakes · platform/version boundaries
Common mistakes
Common mistakes

Path: Networking → Infrastructure → Campus VLANs & Trunking. Local intent: ENCOR-level VLAN/trunk troubleshooting, native VLAN, allowed VLAN sets and end-to-end Layer 2 path consistency.

Platform / version applicability
Cisco IOS / IOS XE
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.

PlatformCisco IOS / IOS XE
Scope / prerequisiteUse it when a VLAN works on some switches but not across the campus, or when reviewing trunk design and hardening.
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.

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

Hosts on one switch reach each other, but not hosts in the same VLAN on another switch.

Step 1 Verification & evidence Verify boundary
Step 2 Common failure modes Narrow the fault

VLAN missing, wrong access VLAN, VLAN pruned/not allowed, native mismatch or port not operating as trunk.

Step 3 Troubleshooting workflow Narrow the fault

Focus for this topic: VLAN missing, wrong access VLAN, VLAN pruned/not allowed, native mismatch or port not operating as trunk.

Step 4 Evidence-first troubleshooting Narrow the fault

When forwarding or policy looks correct in configuration but behaves unexpectedly, distinguish control/configuration intent from hardware programming/capacity. Verify the relevant MAC/CEF/ACL state before assuming the hardware table is the cause.

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
Command lookup Jump straight to Cisco syntax
Key points

A VLAN crosses a trunk only if it exists on both switches, is allowed on both ends and forwards in STP — show interfaces trunk lists allowed, active and forwarding separately. Use switchport mode trunk + switchport nonegotiate, an unused native VLAN, and switchport trunk allowed vlan add (never without add on a live trunk).

Key checks
  • show interfaces trunk — trunk ports, mode, encapsulation, native VLAN, allowed / active / forwarding VLANs.
  • show interfaces <if> switchport — administrative and operational mode, negotiation, native VLAN.
  • show dtp interface <if> — DTP state and negotiation.
  • show spanning-tree interface <if> — per-VLAN STP state on the trunk.
  • show cdp neighbors <if> detail — the neighbour's port, and native VLAN mismatch messages.
ReferenceWhat it is1 section · depth on demand

Concept overview

ENCOR-level VLAN/trunk troubleshooting, native VLAN, allowed VLAN sets and end-to-end Layer 2 path consistency.

Key ideas: Access ports classify untagged endpoint traffic into VLANs; trunks carry multiple VLANs with 802.1Q tags except native-VLAN behavior.

ReferenceWhy it matters1 section · depth on demand

Why it matters

Access ports classify untagged endpoint traffic into VLANs; trunks carry multiple VLANs with 802.1Q tags except native-VLAN behavior.

ReferenceHow it works2 sections · depth on demand

How it works

An access frame enters a VLAN, the switch learns source MAC state, and inter-switch links must carry that VLAN with correct 802.1Q/native behavior. Spanning tree then decides which Layer-2 links can forward. A gateway or routed SVI is a separate Layer-3 boundary.

Mechanism, scope & boundaries

CAM and TCAM support different lookup styles. CAM is well suited to exact matches such as MAC-address forwarding entries; TCAM supports ternary/wildcard matching used by ACLs and other policy/forwarding lookups. Hardware table capacity is finite and platform dependent.

ReferenceImportant terms & boundaries1 section · depth on demand

In depth

Campus VLAN and trunk design

VLANs separate broadcast domains, and trunks carry several VLANs between switches with 802.1Q tags. Cisco's campus design guide (CVD) shapes how far they should stretch. In traditional Layer 2 multilayer designs, spanning tree blocks redundant links and an FHRP provides the gateway. The guide recommends restricting a VLAN to a single access switch to avoid loops. Routed access goes further and keeps every Layer 2 domain inside one closet. A simplified distribution layer (a stack or StackWise Virtual pair) allows dual-homed EtherChannel trunks with no blocked links.

VLAN design choices (CVD)

DesignVLAN spanTrunks
VLAN per access switchOne closetAccess to the distribution pair only
VLANs spanning closetsSeveral access switchesLoops are possible; STP blocks links
Routed accessOne switch; no trunks to the distribution layerRouted uplinks
Simplified distributionAccess to a logical distribution switchOne EtherChannel trunk per access switch

Trunk settings that must match

SettingIf it doesn't match
Allowed VLAN listThe VLAN works on one side only; traffic for it is dropped
Native VLANUntagged frames land in different VLANs; CDP reports the mismatch
Encapsulation and modeThe trunk doesn't form (DTP)
VLAN existence on both switchesFrames for that VLAN are dropped
acc1(config)# vlan 110
acc1(config-vlan)# name USERS-2F
acc1(config)# interface TenGigabitEthernet1/1/1
acc1(config-if)# switchport mode trunk
acc1(config-if)# switchport nonegotiate
acc1(config-if)# switchport trunk native vlan 999
acc1(config-if)# switchport trunk allowed vlan 110,120,999
acc1# show interfaces trunk
Port        Mode         Encapsulation  Status        Native vlan
Te1/1/1     on           802.1q         trunking      999
Port        Vlans allowed and active in management domain
Te1/1/1     110,120,999
Port        Vlans in spanning tree forwarding state and not pruned
Te1/1/1     110,120,999
acc1# show vlan brief

Reading show interfaces trunk

The three VLAN lists answer different questions:

1. Which VLANs are configured as allowed.

2. Which of them exist and are active on this switch.

3. Which are forwarding in spanning tree and not pruned.

A VLAN missing from the third list doesn't pass, even though it's allowed.

Hardening

Turn off DTP (switchport nonegotiate), use an unused native VLAN, allow only the VLANs that are needed, and put access ports explicitly in access mode. All of this limits VLAN-hopping attacks and accidental trunks.

Documented example, not captured output.

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 docCisco IOS / IOS XE Current documentation reviewed 2026-09-14

Authoritative/upstream documentation reviewed for bounded claims in Infrastructure → Campus VLANs & 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%
Depth when you need it

Deep reference

Healthy vs suspicious evidence

How to read the evidence

Verification: Verify switchport mode, VLAN admission and STP state, then confirm the source/destination MAC learns on the expected logical interface during the original flow.

Design & tradeoffs

ENCOR design tradeoffs

Large Layer 2 domains simplify mobility but increase failure/broadcast scope; routed boundaries improve isolation.

Confirmation

Confirm action

Continue?