What it is
A VLAN (Virtual LAN) is a way to split a physical switch network into multiple logical networks. Each VLAN is its own broadcast domain. Frames are associated with a VLAN either by the port they enter (access port) or by an 802.1Q tag in the frame (trunk port).
Key points
- Access ports belong to one VLAN, trunk ports carry many VLANs with tags.
- VLANs reduce broadcast scope and help organize networks.
- Traffic between VLANs requires routing, usually via a layer three switch or router.
Concrete example
An office switch has VLAN 10 for users and VLAN 20 for servers. User ports are access ports in VLAN 10. The uplink between switches is a trunk carrying VLAN 10 and 20 with tags. A layer three switch routes between VLAN 10 and 20 and enforces that users can only reach specific server ports.