A topic in the Open Knowledge Graph — a free, open map of 15,495 topics and the order to learn them in.

VLANs (Virtual Local Area Networks)

Graduate Depth 60 in the knowledge graph ☐ I know this ☆ Set as goal
241prerequisites beneath it
See this on the map →
Network Switching and Switching TablesMAC Addressing and Hardware Identification→
vlan segmentation layer-2 traffic-isolation

Core Idea

A VLAN is a logical subdivision of a physical network that isolates traffic at Layer 2, allowing multiple broadcast domains to coexist on one switch. VLANs are identified by VLAN IDs (1–4094) and enable traffic segregation for security, performance, and administrative purposes without requiring separate physical switches.

How It's Best Learned

Configure VLANs on a managed switch or in a network simulator; test that frames in different VLANs cannot communicate directly at Layer 2, and observe how a router enables inter-VLAN routing.

Common Misconceptions

Explainer

From your study of switching basics, you know that a switch learns which MAC addresses are reachable on which ports and forwards frames accordingly. By default, every port on a switch belongs to the same broadcast domain — when any device sends a broadcast frame (like an ARP request), every other device on the switch receives it. In a small network this is fine, but in a building with hundreds of devices, broadcast storms can saturate the network and every device wastes CPU processing irrelevant broadcasts. VLANs solve this by letting you partition a single physical switch into multiple independent broadcast domains.

Think of a VLAN as a virtual wall inside the switch. Ports assigned to VLAN 10 can only communicate at Layer 2 with other ports on VLAN 10 — they cannot see or be seen by ports on VLAN 20, even though they share the same physical hardware. Each VLAN gets a numeric VLAN ID (1–4094), and you assign switch ports to VLANs through configuration. An access port belongs to exactly one VLAN and connects to end devices (computers, printers). A trunk port carries traffic for multiple VLANs simultaneously between switches, using 802.1Q tagging — each frame on the trunk gets a small header inserted that identifies which VLAN it belongs to, so the receiving switch knows where to deliver it.

The practical benefits are immediate. A university can put all faculty devices on VLAN 100 and all student devices on VLAN 200, even if faculty and student offices are on the same floor and plugged into the same switch. The two groups are completely isolated at Layer 2 — a broadcast from a student's laptop never reaches faculty machines. This reduces broadcast traffic, improves performance, and limits the blast radius of network problems. If a student's machine gets infected with malware that floods the network, only VLAN 200 is affected.

Critically, VLANs alone do not allow communication between groups — that requires inter-VLAN routing. Since VLANs are separate broadcast domains, traffic from VLAN 100 to VLAN 200 must pass through a router or a Layer 3 switch, just as traffic between two physically separate networks would. This is often done with a "router on a stick" configuration, where a single router interface uses 802.1Q sub-interfaces to route between VLANs. The router becomes the policy enforcement point where you can apply access control lists and firewall rules, giving you both segmentation and controlled inter-segment communication.

Practice Questions 5 questions

Prerequisite Chain

Understanding Zero → The Number Zero → Counting to Five → Counting to 10 → One-to-One Correspondence → Counting a Set of Objects Up to 20 → Cardinality: The Last Number Counted → Matching Numerals to Quantities → Subitizing Small Quantities → Combining Small Groups Within 5 → Addition Within 10 → Number Bonds to 10 → Tens and Ones Place Value → Reading and Writing Three-Digit Numbers → Comparing Three-Digit Numbers → Comparing and Ordering Three-Digit Quantities → Comparing and Ordering Whole Numbers → Comparing Numbers 1 to 20 → Ordering Numbers to 20 → Number Line 0 to 20 → Addition Within 20 → Doubles and Near Doubles → Doubles Facts Within 10 → Near Doubles Facts Within 20 → Mental Math Strategies for Addition → Mental Math: Adding and Subtracting Tens → Addition Within 100 → Repeated Addition as Multiplication → Multiplication as Equal Groups → Multiplication: Arrays → Basic Multiplication Facts Through 10 → Multiplication Facts Within 100 → Division as Equal Sharing → Division as Grouping (Measurement Division) → Division: Grouping (Repeated Subtraction) Model → Division: Fair Sharing Model → Division as Equal Sharing → Division as Grouping → Basic Division Facts → Division Facts Within 100 → Multiplication and Division Fact Families → Relationship Between Multiplication and Division → Division Facts as Inverse of Multiplication → Remainders and Quotients in Division → Division Word Problems → Multi-Step Word Problems → Solving Multi-Step Word Problems → Multiplication Word Problems → Division Word Problems → Introduction to Long Division → Factors and Multiples → Prime and Composite Numbers → Equivalent Fractions → Multiplying Fractions → Ratios → Simple Probability → Multiple Access Protocols: ALOHA, CSMA, and Taking Turns → Ethernet and Frame Structure → MAC Addressing and Hardware Identification → Network Switching and Switching Tables → VLANs (Virtual Local Area Networks)

Longest path: 61 steps · 241 total prerequisite topics

Prerequisites (2)

Leads To (0)

No topics depend on this one yet.