VLANs (Virtual LANs)
You'll learn: How to create logical network segments within a single physical switch to boost security and reduce unnecessary broadcast traffic.
What is a VLAN?
Imagine a large office building with one physical switch connecting 50 computers. Without VLANs, every broadcast frame (like ARP requests) reaches all 50 devices—even if only the Accounting department needs to communicate internally. VLANs let you divide that single physical switch into multiple logical networks, as if you had separate switches for each department.
A VLAN is a logical grouping of devices on the same physical network infrastructure. Devices in VLAN 10 can't directly communicate with devices in VLAN 20, even though they're plugged into the same switch.
Why Use VLANs?
Security: Sensitive devices (like servers) can be isolated from general workstations. Even though they share the same physical switch, VLAN boundaries act like walls.
Reduced Broadcast Traffic: Remember broadcast domains from the previous lesson? VLANs shrink broadcast domains. A broadcast in VLAN 10 only reaches VLAN 10 members, not the entire switch. This dramatically cuts unnecessary traffic.
Logical Organization: Group devices by function (Sales, Engineering, Guest WiFi) rather than physical location.
How It Works
Each switch port is assigned to a VLAN ID (a number like 10, 20, 100). When a frame arrives, the switch only forwards it to ports in the same VLAN. Inter-VLAN communication requires a router or Layer 3 switch—VLANs enforce boundaries just like separate physical networks would.
Key Takeaway: VLANs partition a physical switch into multiple isolated logical networks, improving security and slashing broadcast traffic without buying extra hardware.