Days 16, 17, 18: VLANs

CCNA 200-301 Study Guide: VLANs, Trunking, and DTP

1.0 Foundational Concepts: Introduction to VLANs

Virtual LANs (VLANs) provide the mechanism for network segmentation at Layer 2. By creating distinct broadcast domains, administrators can logically group users regardless of their physical location on the switch.

1.1 The Metaphor: The Soundproof Office

Think of a large, open-plan office where everyone is shouting. This is a single broadcast domain; the noise (broadcast traffic) makes it hard for anyone to focus. Implementing VLANs is like building soundproof glass walls. People in the "Sales" room can talk to each other without distracting the "Finance" room, even though they are all in the same building (on the same physical switch).

1.2 Core Benefits

1.3 VLAN Ranges

Cisco switches support two ranges of VLAN IDs:

VLAN Range

Numeric Range

Storage Location

Notes

Normal

1 – 1005

vlan.dat (Flash)

VLANs 1002–1005 are reserved for legacy tech.

Extended

1006 – 4094

running-config (NVRAM)

Requires VTP Transparent mode on older switches.

1.4 Basic VLAN Configuration


2.0 Inter-Switch Communication: VLAN Trunking

Trunking allows a single physical link to carry traffic for multiple VLANs between switches.

2.1 The 802.1Q Tagging Protocol

IEEE 802.1Q (Dot1q) is the industry-standard protocol for trunking. It inserts a 4-byte (32-bit) tag into the Ethernet header to identify the VLAN ID.

2.2 The Native VLAN

By default, traffic on the Native VLAN is sent across a trunk untagged.

2.3 Trunk Configuration


3.0 Automated Negotiation: Dynamic Trunking Protocol (DTP)

DTP is a Cisco proprietary protocol that automates the formation of trunk links. While convenient, it is considered a security risk in modern networks.

3.1 DTP Operational Modes

3.2 DTP Negotiation Outcomes

Local Mode

Neighbor: Auto

Neighbor: Desirable

Neighbor: Trunk

Neighbor: Access

Dynamic Auto

Access

Trunk

Trunk

Access

Dynamic Desirable

Trunk

Trunk

Trunk

Access

Trunk

Trunk

Trunk

Trunk

Mismatch

Access

Access

Access

Mismatch

Access

4.0 Verification and Best Practices

4.1 Key Verification Commands

Command

Purpose

show vlan brief

Lists all active VLANs and their assigned access ports.

show interfaces trunk

Shows active trunks, encapsulation, and allowed/native VLANs.

show interface [ID] switchport

Displays administrative vs. operational modes (e.g., DTP status).

4.2 Security Best Practices

  1. Disable DTP: Use switchport mode access and switchport nonegotiate on user-facing ports.

  2. Hard-code Trunks: Never rely on Dynamic Auto; use switchport mode trunk.

  3. VLAN Pruning: Only allow necessary VLANs across a trunk to save bandwidth.

  4. Secure the Native VLAN: Move the native VLAN away from VLAN 1 and use a dedicated "dummy" VLAN.

TL;DR Summary




Revision #1
Created 2026-03-14 19:21:56 UTC by Tony Utter
Updated 2026-03-14 19:22:35 UTC by Tony Utter