Switching · 6 min read · 26 November 2026

What Is a VLAN? Virtual LANs Explained With Simple Examples

A VLAN splits one physical network into separate virtual networks, so staff, guests, cameras and phones cannot see each other. How VLANs work, tagging, and when you need them.

A VLAN (virtual LAN) divides one physical network into several separate networks, so devices in one VLAN cannot talk to devices in another unless a router or firewall allows it. One set of switches and cables can then carry staff, guests, cameras and phones as if each had its own network.

Why businesses use VLANs

  • Security: a guest phone or an infected laptop cannot reach cameras, payment terminals or servers.
  • Less noise: broadcast traffic stays inside each VLAN, so large networks stay fast.
  • Priority: voice and video VLANs can get quality-of-service priority.
  • Simpler changes: moving a user to another team is a switch setting, not a new cable.

A typical office plan

VLANWho is in itWhat it may reach
StaffPCs, laptops, printersInternet, servers, printers
VoiceIP phonesThe phone system (PBX)
CamerasIP cameras, NVROnly the recorder and the security team
GuestsVisitor Wi-FiInternet only
ManagementSwitches, access points, gatewayIT administrators only

How VLANs work

Each VLAN has a number from 1 to 4094. A switch port is set up in one of two ways:

  • Access port: belongs to one VLAN; the connected PC, camera or phone does not need to know about VLANs.
  • Trunk port: carries several VLANs between switches, access points and the gateway. Each frame gets a small IEEE 802.1Q tag that says which VLAN it belongs to.

The guide access port vs trunk port goes deeper. To let VLANs talk to each other in a controlled way, a router, gateway or Layer 3 switch routes between them and the firewall decides what is allowed; see inter-VLAN routing.

What you need

  1. Managed switches: unmanaged switches cannot create VLANs.
  2. Access points that map each Wi-Fi name (SSID) to a VLAN.
  3. A gateway or Layer 3 switch with firewall rules between the VLANs.

Step-by-step settings are in configure VLANs on a managed switch and segment IoT and CCTV devices.

FAQ

Frequently asked questions

Is a VLAN the same as a subnet?

Not exactly, but they usually go together: each VLAN normally gets its own IP subnet, and a router or Layer 3 switch connects the subnets.

Do VLANs make the network slower?

No. Tagging adds only a few bytes to each frame. VLANs often make networks faster because broadcast traffic stays inside each VLAN.

Can I use VLANs with an unmanaged switch?

No. VLANs need managed switches. An unmanaged switch puts every port in the same network.

Are VLANs enough for security?

They are an important first step. Combine them with firewall rules between VLANs, strong Wi-Fi security and controlled admin access.

Need help designing your network?

Navijin engineers provide free design consultations, bills of materials and quotations for business projects.