Skip to main content
networking

VLAN (Virtual LAN)

A VLAN segments a physical switch into multiple isolated broadcast domains using 802.1Q tags. Devices in different VLANs cannot communicate without a router (inter-VLAN routing). VLANs provide security isolation, reduce broadcast traffic, and enable network segmentation without separate physical infrastructure.

Definition

A VLAN creates a logical broadcast domain within a physical switch fabric. Frames tagged with 802.1Q carry a 12-bit VLAN ID (1-4094) in a 4-byte tag inserted between the source MAC and EtherType fields. Untagged ports (access ports) belong to one VLAN. Tagged ports (trunk ports) carry traffic from multiple VLANs between switches. Broadcast, unknown unicast, and multicast (BUM) traffic stays within its VLAN – a broadcast storm in VLAN 10 does not affect VLAN 20. VLAN segmentation is the foundation of network security architecture: management traffic on VLAN 100, servers on VLAN 200, user workstations on VLAN 300, guest WiFi on VLAN 400. Without VLANs, all devices share one broadcast domain and can sniff each other's traffic. VLAN hopping attacks (double-tagging, switch spoofing) bypass segmentation if trunk ports are misconfigured.

Examples

  • ip link add link eth0 name eth0.100 type vlan id 100
  • show vlan brief (Cisco IOS)
  • bridge vlan add vid 100 dev swp1 pvid untagged (Linux bridge)

Related Protocols

Related Terms