Skip to content

Three Networks

You'll split your house into main, guest and gadget networks, each in its own lane, with a managed switch that knows the difference and rules you wrote between them.

About

The cheap smart plug and the laptop with your bank login don't belong on the same network. A used managed switch for about thirty dollars and a router that understands VLANs split the house into lanes, and the rules between the lanes are yours to write. The guest-network tickbox on a consumer router is the easy version and lives in Security & Privacy. This is tagging and routing by hand, port by port. Expect to lock yourself out at least once, so keep a laptop cabled to a port you left on the default VLAN for when you do.

At a glance

Per requirement
35 XP
Completion bonus
300 XP
Requirements
6
Takes
Two or three weekends
Skill level
Intermediate (months of practice)
Cost
Moderate (under $100)
Supplies
You need some
Where
At home
Other people
On your own
Locked for now
Earn two more Uncommon badges in Home Networking to open this one. Log in to see how far along you are.

Requirements

  1. 1
    Get a managed switch and a router that speaks VLANs, and leave yourself a way back in. Used managed switches with eight ports go for about thirty dollars when offices clear out. For the router, try OpenWrt on a spare consumer router, OPNsense on an old PC, or a prosumer unit if you already have one. Take a photo of the gear with a laptop cabled to a port you'll leave on the default VLAN, which is your way back in when you lock yourself out. Photo
  2. 2
    Draw the plan before you touch a setting: three VLANs, what goes in each, and who may talk to whom. Main is for people, guest is for visitors, and the gadget lane is for plugs, cameras and the TV. Gadgets may not start a conversation with main, main may reach gadgets, and guest reaches only the internet. Write the VLAN numbers and the address range for each on the drawing. Take a photo of it. Photo
  3. 3
    Create the VLANs and put one wired device in each. Tag the trunk port to the router with all three VLANs and untag each access port for exactly one. Give each VLAN its own DHCP range on the router. Take a screenshot of the switch VLAN table, and a screenshot from a device in each VLAN showing its address in a different range. Photo
  4. 4
    Add a Wi-Fi network for each VLAN. Most access points let you map a network name to a VLAN tag, and OpenWrt does it on a consumer router. The port the access point hangs off becomes a trunk too. Take a screenshot of the three network names on a phone, and the phone's address after joining each one. Photo
  5. 5
    Write the firewall rules between the lanes and show that the walls hold. The rules go on the router: deny from gadgets to main, allow main to gadgets, allow guest to the internet only, and let the replies through. From the gadget network, try to reach a device on main, and it should fail. From main, reach a device on gadgets, and it should work. Film both tests with the addresses visible. Video
  6. 6
    Move every device in the house to its lane and update your network map. This is the slow part, one device at a time, and something will stop working because it needed to talk across a lane you closed (casting to the TV is the usual one, and mDNS reflection is the usual fix). Take a photo of the new map with the VLAN marked next to each device, and tell us in one sentence what broke and how you fixed it. Photo