liveBook · Manning

Chapter 12: VLANs

What you will learn in chapter 12 of Acing the CCNA Exam: Volume 1 Fundamentals and Protocols

Introduces VLANs as a way to divide a LAN at Layer 2, contrasting them with Layer 3 subnetting.

After this chapter you will be able to

What it builds on

Section by section

Introduction

Introduces VLANs as a way to divide a LAN at Layer 2, contrasting them with Layer 3 subnetting.

Key terms: Virtual LANs, VLANs, subnets, network segmentation, Layer 2, Layer 3

12.1 Why we need VLANs

Introduces the question of why VLANs are needed by previewing a comparison of unsegmented networks with networks segmented at Layer 3 and at both Layer 3 and Layer 2.

12.1.1 Layer 3 segmentation with subnets

This section explains how assigning departments separate IP subnets makes their traffic pass through a router, where security policies can control it, without requiring separate switches.

Key terms: subnetting, Layer 3, router, security policies, subnet, switch, SW1

12.1.2 Layer 2 segmentation with VLANs

Explains why subnets alone do not separate a switch’s broadcast domains and how VLANs provide Layer 2 segmentation.

Key terms: subnetting, Layer 3, broadcast domain, broadcast frame, unknown unicast frames, VLANs, ports, virtual switches, broadcast domains, forward

12.2 Configuring VLANs and access ports

The section contrasts a switch’s automatic frame forwarding with the port configuration needed to use VLANs.

Key terms: MAC address table, source MAC address, VLANs, switch’s ports

12.2.1 Creating and naming VLANs

Explains the switch’s default VLANs and shows how to create, name, temporarily disable, and delete VLANs in Cisco IOS.

Key terms: show vlan brief, VLAN database, VLAN 1, VLANs 1002–1005, vlan vlan-id, VLAN configuration mode, name vlan-name, VLANxxxx, shutdown, act/lshut

12.2.2 Assigning ports to VLANs

This section shows how to assign switch ports to VLANs and explains what that assignment means for frame forwarding and connected hosts.

Key terms: access port, trunk port, access mode, switchport mode access, switchport access vlan vlan-id, Dynamic Trunking Protocol (DTP), switchport access vlan, vlan command, name command, forward

12.3 Connecting switches with trunk ports

Explains why switches use trunk links to carry multiple VLANs and how tagged trunk traffic differs from untagged access-port traffic.

Key terms: trunk port, trunk link, access link, VLAN, tag, tagged port, access port, untagged port, switchport access vlan

12.3.1 The IEEE 802.1Q tag

This subsection explains how IEEE 802.1Q tags identify VLANs on trunked Ethernet frames, what the tag’s fields mean, and how Cisco’s older ISL tagging differs.

Key terms: IEEE 802.1Q, trunk ports, Tag Protocol Identifier (TPID), EtherType, 0x8100, VLAN Identifier (VID), Tag Control Information (TCI), Priority Code Point (PCP), Drop Eligible Indicator (DEI), Quality of Service (QoS)

12.3.2 Configuring trunk ports

This section shows how to configure and verify trunk ports, control which VLANs they carry, and handle native VLAN traffic safely.

Key terms: switchport trunk encapsulation, switchport mode trunk, show vlan brief, show interfaces trunk, DTP, Vlans allowed on trunk, Vlans allowed and active in management domain, switchport trunk allowed vlan, add, remove

12.4 Inter-VLAN routing

Defines inter-VLAN routing and explains why a separate router link for every VLAN is usually impractical.

Key terms: inter-VLAN routing, subnets, VLANs, Layer 2, Layer 3, access ports, router on a stick, trunk link, multilayer switch

12.4.1 Router on a stick

Explains how router on a stick routes between VLANs through one switch-to-router trunk, how to configure its subinterfaces, and how to handle the native VLAN.

Key terms: router on a stick, ROAS, trunk link, subinterfaces, VLAN tag, subinterface configuration mode, encapsulation dot1q vlan-id, no shutdown, show ip interface brief, native VLAN

12.4.2 Multilayer switching

Explains how a multilayer switch routes between VLANs using SVIs and reaches external networks through a routed port.

Key terms: multilayer switch, Layer 3 switch, switch virtual interface, SVI, default gateway, VLAN, ip routing, interface vlan vlan-id, up/up, access port

12.5 Summary

Where this is used later

Concepts explained in this chapter

← Chapter 11: Subnetting IPv4 networks Chapter 13: Dynamic Trunking Protocol and VLAN Trunking Protocol →

These guides are generated from the text of Manning books by Manning's knowledge graph and link to the sections they draw on. The full books are available on liveBook and at manning.com.