Network and VLAN planner
Splitting a home or office into separate networks (staff, guests, cameras, smart devices) keeps a problem on one from reaching the others. List the networks you want and how many devices each must hold; the planner lays out the address ranges and writes the settings for your equipment.
| Network | VLAN | Subnet | Gateway | DHCP range | Devices |
|---|
Generated settings are a starting point. Check them against your own equipment and firmware, and back up your current configuration before changing anything.
What is a VLAN, and do I need one?
A VLAN (virtual LAN) lets one set of switches and access points carry several separate networks at once. Each network gets an ID number from 1 to 4094, and traffic is tagged with it so the equipment can keep the networks apart. To the devices on it, each VLAN looks like its own network with its own address range.
They are worth having when some devices should not be able to reach others: visitors' phones, cheap smart plugs and cameras that rarely get security updates, or work laptops that should stay apart from the family's. If everything on your network is trusted equally, one network is fine.
Setting this up on a UniFi gateway (Dream Machine, Cloud Gateway)
1. Create the networks. In the UniFi Network app go to Settings, then Networks, then New Virtual Network. Enter the name, untick Auto-Scale Network, and type the gateway address and prefix from the sheet above. Under Advanced choose Manual, set the VLAN ID, and set the DHCP range. Repeat for each network. VLAN 1 is the built-in Default network: edit it rather than adding a new one.
2. Attach WiFi. In Settings, WiFi, create or edit each wireless name and set its Network to the matching one. A guest WiFi on the guest network, a separate name for smart devices on theirs.
3. Attach wired ports. In Port Manager, choose a switch port and set its Native VLAN to the network the plugged-in device belongs on. Leave ports that connect to other switches and access points allowing all VLANs, which is the default, so every network reaches them.
4. Decide what may cross. By default a UniFi gateway routes between all its networks, so creating VLANs alone separates nothing. For guests and smart devices, tick Isolate Network on that network, or create firewall rules that block it from reaching your main network while still allowing your main network to reach it (so your phone can still control the smart TV). Test from a device on each network: it should reach the internet but not your main devices.
5. Move devices over a few at a time, and note any that need a fixed address: the sheet leaves a block outside DHCP in each network for those.
Menu names shift between UniFi versions. If a setting is not where this says, search the settings page for its name.
A sensible layout for a home or small office
Main for your own computers and phones. A work network if you want work laptops kept apart. Smart home and cameras on their own network, blocked from starting connections to Main. Guests fully isolated, internet only. Servers or a NAS on their own only if you want to control who reaches them. Fewer networks are easier to live with: start with Main, Guests and Smart home, and add more when you have a reason.