In this guide
A flat network puts every device on the same segment: staff computers, guest phones, cameras and printers. A VLAN splits one physical network into separate logical ones, so a problem or an intruder in one does not reach the others. This guide explains what you need to set it up and how to plan it.
What you need
| Part | Role |
|---|---|
| Managed switch | Supports VLANs (IEEE 802.1Q) on its ports |
| Router or firewall | Routes between VLANs and applies rules. It also gives internet access |
| Access points | Map each Wi-Fi network (SSID) to a VLAN |
| Plan | A list of VLANs with names, numbers and address ranges |
An unmanaged switch cannot do VLANs. See managed vs unmanaged network switches.
Access ports and trunk ports
An access port belongs to one VLAN and carries untagged traffic for a device such as a computer or printer. A trunk port carries traffic for several VLANs between switches, or to an access point or router, with a tag on each frame that names its VLAN. Set the same VLAN numbers at both ends of a trunk.
Common VLANs
- Staff: computers, laptops and file servers.
- Guests: internet only, with no access to the office network.
- Voice: phones, prioritized for call quality.
- Cameras and building systems: kept apart from staff devices.
- Management: switch and access point admin pages, reachable only from a few places.
Routing and rules
Devices on different VLANs cannot talk to each other until a router, a firewall or a layer 3 switch routes between them. This is the point where you decide what is allowed, such as letting staff reach a printer in another VLAN while guests reach only the internet. See router vs firewall vs UTM and access point planning.
Planning tips
Write down the VLAN numbers, names and address ranges before configuring. Keep the management VLAN separate, label the switch ports and test each VLAN from a device before the change goes live.
Frequently asked questions
Do I need a router for VLANs?
You need something to route between VLANs, such as a router, a firewall or a layer 3 switch. Devices in one VLAN can talk to each other through the switch alone.
Can guest Wi-Fi use a VLAN?
Yes. Map the guest Wi-Fi network to its own VLAN that reaches the internet only, and block access to the other VLANs.
What does tagged and untagged mean?
Tagged frames carry a VLAN number and travel on trunk links. Untagged frames come from a device on an access port, and the switch adds the VLAN.


