802.1Q Trunking lab practice
Carry several VLANs over one link with 802.1Q, control the allowed list and native VLAN, and diagnose trunks that will not form.
4 labs · 11 lessons · 4 commands · 5 projects
A trunk carries many VLANs over one link by adding an 802.1Q tag to each frame. Frames in the native VLAN are sent untagged, which is why both ends must agree on it.
Trunks fail in a small number of ways: the link never becomes a trunk, a VLAN is not on the allowed list, the native VLANs differ, or the VLAN does not exist on the far switch. show interfaces trunk shows all four.
Hands-on labs
- VLAN Trunking Mode (free)
- Access and Trunk Ports on One Switch (free)
- Changing the Trunk Native VLAN (free)
- VLAN Native Mismatch Repair (Pro)
Lessons, in order
- VLAN Trunking & 802.1Q (2. Network Access, 11 min)
- DTP & VTP Protocols (2. Network Access, 12 min)
- Read administrative and operational switchport mode (2. Network Access, 12 min)
- Tell access ports from trunk ports (2. Network Access, 11 min)
- Bring up an 802.1Q trunk (2. Network Access, 13 min)
- Check a two-switch trunk end to end (2. Network Access, 13 min)
- Add a VLAN to a trunk's allowed list (2. Network Access, 12 min)
- Change the native VLAN on a trunk (2. Network Access, 12 min)
- Repair a native VLAN mismatch (2. Network Access, 12 min)
- Repair a trunk with mismatched allowed lists (2. Network Access, 12 min)
- Assessment: 802.1Q Trunk (2. Network Access, 13 min)
Commands
- show interfaces trunk — Lists every operational trunk with its mode, encapsulation, native VLAN and the VLANs allowed, active and forwarding on it.
- show interfaces switchport — Shows one port’s administrative and operational switchport mode, access VLAN, native VLAN and trunking settings.
- show vlan brief — Lists every VLAN on the switch with its name, status and the access ports assigned to it.
- show cdp neighbors — Lists directly connected Cisco devices discovered with CDP: device ID, local and remote port, capability and platform.
Related projects
- Departmental VLAN Network — Pemberton Logistics shares one wiring closet between Sales, Engineering and HR, and HR has asked why payroll broadcasts reach every desk. Split the two floor switches into three named VLANs, put each department's ports in its own, and carry all three between the switches.
- School Campus Trunk with a Pruned VLAN Allowed List — A secondary school runs staff (VLAN 10), pupil (VLAN 20) and management (VLAN 99) networks. The science block's switch (SCI-SW) is linked to the main building's switch (MAIN-SW), and both are factory-fresh. Policy says the management VLAN, which reaches every switch's management interface and the server room's admin consoles, must never be carried to the science block, where pupils have physical access to the patch panel. Build the VLANs and ports on both switches, trunk the link carrying only staff and pupil traffic, and prove management stops at the main building with a test laptop placed in VLAN 99 on the science side.
- Gym Chain Two-Floor Trunk with Equipment and Office VLANs — A gym has cardio equipment telemetry on one VLAN and the office on another, split across two floors. Trunk the floors together so both VLANs span the building.
- Two-Floor Office with 802.1Q Trunks & Router-on-a-Stick — A regional insurance firm occupies Floors 1 and 2 of an office building. Floor 1 hosts Claims & Operations (VLAN 110), while Floor 2 hosts Underwriting & Management (VLAN 120). You must configure an inter-switch 802.1Q trunk link and a router-on-a-stick topology with native VLAN hardening.
- First Multi-Vendor Trunk: Cisco Access to Juniper Distribution — Kestrel Architects has bought a Juniper EX (DIST-EX) as its distribution switch; desks are still on a Cisco 2960 (ACCESS-2960). The design team (VLAN 70, 10.70.0.0/24) has a PC on the Cisco switch and the plotter server on the Juniper. Carry VLAN 70 across the Fa0/24 to ge-0/0/0 link and prove the PC reaches the plotter.