How to set up a VLAN for isolating smart home devices

Walk into almost any Australian home these days and the number of connected gadgets is astonishing: an NBN router humming in the hallway, smart bulbs from Kmart or Bunnings, a video doorbell, two backyard cameras, a thermostat, a Google Nest speaker and a streaming stick that never powers off. All of them usually share one flat home network with your laptop and phone, so a cheap smart plug or an ageing camera can talk straight to your computer.

A VLAN — a virtual LAN — fixes that without pulling new cables through the house. It is a software-defined layer that carves one physical network into separate broadcast domains, each with its own subnet, DHCP pool and firewall rules. The practical version: your cameras, lights and sensors sit on an isolated IoT network, your family keeps browsing on a trusted network, and visitors get their own. Here is how to plan, build and test one, using gear and network conditions you will actually find in Australia.

Why isolate smart devices on a separate network

Most cheap IoT hardware ships with no security updates, default passwords and open services. If one gets compromised by a botnet sweeping the internet, the damage is far bigger when it sits on the same subnet as your laptop. Separation limits the blast radius: a compromised plug can reach other IoT gadgets, but it cannot reach the NAS in the study or the family computers.

There is a day-to-day benefit too. A 4K doorbell and two 1080p cameras streaming constantly will happily chew through a 100/20 Mbps NBN connection, and the first thing to suffer is a video call or a game. Put cameras on their own VLAN, cap their bandwidth or give them local-only storage, and the rest of the house keeps running at full speed.

A VLAN also makes troubleshooting sane. When the smart lights stop answering Alexa, you can inspect one address range instead of guessing across a single flat 192.168.1.0/24 network. Keep in mind a VLAN alone is only separation — the lockdown comes from firewall rules between those networks.

Plan the VLAN layout and subnets

Start with a sheet of paper and a list of every device that connects to the internet. Group them by job, not by brand: trusted, IoT, cameras, guests and media. Give each group a VLAN ID and a subnet that clashes with nothing else. Many Australian routers still hand out 192.168.1.0/24, so leave that range for your main network and move the others to 192.168.20.0/24 and up.

A layout for a suburban house with a backyard, a pool controller and a solar inverter might look like this. A /24 gives you 254 usable addresses per network, which is plenty for a home; if you run Home Assistant with a hundred sensors, spread that group over two subnets rather than squeezing everything into one.

VLAN Name Suggested subnet Typical devices Access to main LAN
10 Trusted 192.168.10.0/24 Laptops, phones, printers, NAS Full
20 IoT 192.168.20.0/24 Smart bulbs, plugs, thermostat, hub Blocked, internet allowed
30 Cameras 192.168.30.0/24 Doorbell, outdoor cameras, NVR Blocked except the NVR
40 Guests 192.168.40.0/24 Visitors, guest phones Internet only
50 Media 192.168.50.0/24 Chromecast, Apple TV, Sonos Casting only

Name things so future-you can read them. UniFi, TP-Link Omada and ASUS AiMesh all let you label networks like "Cameras" or "IoT", and those labels appear in the app while you troubleshoot at nine at night. Avoid names like "VLAN 2" — you will forget what that meant six months from now.

Choose a router and switch that support VLANs

You need two things: a router that supports 802.1Q tagging and inter-VLAN routing, and a managed switch that lets you mark ports as tagged, untagged or trunk. Most people end up buying the second, because the switch built into a consumer router offers one or two VLAN options and no useful port controls. Check VLAN support before you buy rather than after.

Before you spend money, this guide on choosing a smart home router covers the processing headroom and Wi-Fi capacity you need when every camera, bulb and speaker streams at once — useful whether you buy new or reuse what you already own.

Australian shoppers can find UniFi, Omada and Synology gear through local distributors and stores like JB Hi-Fi, Umart and Mwave, often a few hundred dollars cheaper than overseas prices once GST and freight are counted. If you keep your current box, check whether your NBN router supports VLANs — most ISP units from Telstra or Optus do not, though bridging or DMZ mode on an HFC or FTTN connection can help.

Configure the VLANs, trunk ports and DHCP pools

In your controller, create the VLANs you planned, assign each an ID and subnet, then set the uplink port to the router as a trunk carrying every VLAN. On the managed switch, mark the port for your access points as tagged so several networks can travel down one cable, and leave a plain untagged port for devices that only speak one network.

Give each VLAN its own DHCP scope so devices pull addresses from the correct range, and reserve fixed addresses for anything that matters: cameras, the NVR, your Home Assistant box, the SmartThings or Hubitat hub. Static leases survive reboots, which saves a lot of hunting when an app suddenly reports a device offline.

While the rack is open, keeping your gear tidy with clear labels on every cable and a port map saves an entire afternoon the first time a switch port needs changing. A laminated card beside the switch listing VLAN IDs and subnets is worth more than clever memory.

Save and apply. Expect a brief outage as devices renegotiate addresses and lose internet for a minute or two, which is normal and worth flagging so nobody assumes the NBN has packed in again.

Move devices across and give them fixed addresses

Now shift each device onto its correct network. Wired gear moves by swapping the switch port to a tagged port belonging to the right VLAN; Wi-Fi gear just needs its SSID changed to the network mapped to that VLAN. Cameras are easiest to hardwire, which is worth a cable run to the garage for a house with a big backyard and a long driveway.

Watch out for discovery. Chromecast, Sonos, Apple Home, Alexa and Google Home rely on mDNS and multicast broadcasts, which do not cross VLAN boundaries by default. Enable an mDNS reflector and IGMP proxy on your gear, or keep one hub and one speaker on the trusted network so casting and voice control still find lights in the IoT network.

Some vendors also need the phone and device on the same network during setup or firmware updates. Confirm your IoT VLAN has outbound internet access for the vendor's cloud, and schedule updates for a quiet time. A bricked bulb in a house full of kids ruins an arvo in a very specific way.

Set firewall rules and separate your Wi-Fi names

The firewall is where isolation becomes real. Start with default-deny between VLANs, then add only what you need: IoT devices permitted out to DNS, NTP and their vendor cloud but denied the trusted network; guests permitted out to the internet with client isolation on; cameras denied outbound entirely if you run a local NVR, or restricted to their cloud and time servers.

Give each VLAN its own SSID so people see what they are joining: Home, IoT, Cameras and Guests. Keep a separate 2.4 GHz SSID for anything older, because a surprising number of smart bulbs and plug-in modules refuse to join a 5 GHz network and sit there blinking, which looks like a VLAN fault but is not.

Media gear is the usual exception. Chromecast and Sonos need to reach trusted-network devices to cast, so allow discovery traffic from the media VLAN to the specific addresses they need. If you run rooftop solar, keep the inverter's monitoring interface on the trusted network, because some Fronius and Sungrow setups expose an open local web interface that should not be reachable from every VLAN.

Test it, then build it into your routine

Test from both sides. From a laptop on the trusted network, try to reach a camera address and confirm it fails; from an IoT device, confirm DNS and internet still work. Open the controller's traffic log while a camera streams, and check the switch port summary to confirm frames are leaving the correct VLAN.

Common Australian snags include double NAT when an NBN router sits in front of your own on HFC, IGMP proxy left off so a Chromecast drops out of a group cast, devices stuck holding an old DHCP lease, and IoT gear demanding a dedicated 2.4 GHz SSID. Work through them one at a time and note what you changed.

Start smaller than you think: create two networks — trusted and IoT — move the lights, plugs and thermostat across, confirm voice control still works, then add cameras and guests once that is solid. Once a smart plug can no longer reach your laptop directly, you have already gained the security benefit, and every extra VLAN after that is straightforward.