Network · build story · October 2026

One cable, two opinions: finding a native VLAN mismatch in my home network

One setting on one port, a runbook, and a home network split into zones.

So here's a fun one. My phone was getting a different IP address depending on which room I was in. Same Wi-Fi name, same password. Front of the house, 192.168.1.something. Back of the house, 10.10.20.something, which is the range I'd set aside for my servers.

Nothing was actually broken. Internet worked, everything worked. That's why I didn't notice it for ages.

It turned out to be one setting on one port. Here's how I found it, how I fixed it without knocking the whole house offline, and how I used the cleanup as an excuse to finally split my network up properly.

What I'm running

Quick rundown of the gear:

  • Gateway: UniFi UXG Max, with a Cloud Key Gen2+ running the controller
  • Switches: USW Flex, USW Flex 2.5G 8 and USW Flex 2.5G 5
  • Access points: two U7 Pros and an AC Pro (plus a Nano HD I added since)
  • Servers: a Proxmox box running Pi-hole and a Windows Server VM, and a network printer
The UniFi topology view: the gateway feeds two switches; one leads to an access point and a second switch with another access point, the other to the Cloud Key and two more access points
How it's all wired, according to the controller.

What was going on

  • One Wi-Fi network, two different subnets, depending on which AP you were closest to.
  • Half my switches and APs had management addresses in the server range.
  • The controller said all of those devices were on "Default" anyway.

That last one is what got me. The controller was telling me one thing and DHCP was doing something else.

Finding it

Quick VLAN refresher: every trunk port has a native network, which is where untagged traffic goes. Both ends of the cable need to agree on what that is. Mine didn't.

Diagram: gateway port 1 treats untagged traffic as Servers (VLAN 20) while the switch on the other end treats it as Default (VLAN 1), so everything behind it lands in 10.10.20.x; port 2 agrees on Default and gets 192.168.1.x
Same cable, two different ideas of what untagged means.
LinkSwitch thinks untagged isGateway thinks untagged isWhat happened
Flex 2.5G 8 ↔ gateway port 1Default (1)Servers (20)✗ Everything behind it got 10.10.20.x
USW Flex ↔ gateway port 2Default (1)Default (1)✓ 192.168.1.x, like it should

So the switch was sending untagged traffic thinking it was VLAN 1. The gateway got it on port 1, decided it was VLAN 20, and handed out a server address. Everything behind that switch got the same treatment: another switch, two APs, my Proxmox box and the desktops.

And because my main Wi-Fi was set to "Native Network", phones just took whatever the AP's uplink gave them. One Wi-Fi name, two subnets.

Not just flipping the switch

The obvious fix is to set the gateway port to Default and call it a day. Problem is, my servers had their IPs hard-coded in the 10.10.20.x range, and the only reason they worked was the mismatch. Fix the gateway on its own and they'd all drop off.

So I wrote a runbook before touching anything. Every step got a check and a way to undo it:

  1. Look before touching. Which devices had fixed IPs, what DNS each network handed out, what plugged into what. Then a full controller backup, saved somewhere other than the Cloud Key.
  2. The actual fix, done back to back. Set the Proxmox box's switch port to Servers on purpose, then set gateway port 1 back to Default.
  3. Move the wired PCs to their own Computers network.
  4. Move the Wi-Fi to a Mobile Devices network instead of "Native Network".
  5. Clean up and take a fresh backup.

I also picked a rule while I was at it: VLAN ID = third octet. VLAN 20 is 10.10.20.0/24, VLAN 30 is 10.10.30.0/24, and so on. Now I can look at any IP and know what network it's on.

Doing it

The main change took about 15 minutes. The servers came back in seconds. The switches and APs dropped off for a few minutes, grabbed proper 192.168.1.x addresses and reconnected on their own. One AP got stuck, so I bounced its switch port and it came right back. Then I moved the PCs and the Wi-Fi over one at a time, checking each before doing the next.

The UniFi devices list: every switch, access point and the gateway online with a 192.168.1.x management address
Every switch and AP back on 192.168.1.x where they belong.
The networks list: Default VLAN 1, Computers VLAN 10, Servers VLAN 20, IoT VLAN 30, Guest VLAN 40 and Mobile Devices VLAN 50, each on the matching 10.10.N.0/24 subnet apart from Default
The networks once it was done.

Did it work?

I checked everything against what it was doing before:

TestBeforeAfter
Phone near front AP192.168.1.x10.10.50.x ✓
Phone near back AP10.10.20.x ✗10.10.50.x ✓
Phone near AC Pro10.10.20.x ✗10.10.50.x ✓
Desktop on Flex 2.5G 510.10.20.x ✗10.10.10.x ✓
Switch/AP management IPsall over the placeall 192.168.1.x ✓
Servers10.10.20.x by accident10.10.20.x on purpose ✓
Controller shows the real networknoyes ✓
The clients list: desktops on Computers, the Proxmox host, Pi-hole, a Windows server and the printer on Servers, doorbells and a TV on IoT, phones and tablets on Mobile Devices, with names and MAC addresses masked
Everything on the network it should be on (names and MACs hidden).

Splitting things up while I was in there

Since I was already elbow-deep in it, I finished the job:

  • IoT (VLAN 30): the doorbells and the TV get their own network, with internet and DNS and nothing else. I moved them with per-device overrides so nobody had to re-join Wi-Fi, and I tested an actual doorbell press before moving anything else. A doorbell that doesn't ring was not an option.
  • Guest (VLAN 40): its own Wi-Fi, guests can't see each other, internet only.
  • Firewall rules: phones and tablets can reach DNS and the printer on the server network, and that's it. Servers can't start connections to PCs or phones. My admin laptop gets a pass so I can still manage things from the couch.
Diagram: behind the gateway, an Internal zone holds Default, Servers, Computers and Mobile; an IoT zone and a Guest network each get internet and DNS only
One network per job, grouped into zones.
The zones list: Internal holds Default, Servers, Computers and Mobile Devices; Hotspot holds Guest; a custom IoT zone holds IoT
Which network lives in which zone.
The zone matrix: Internal to IoT is blocked, IoT to Internal is blocked, Hotspot only gets return traffic to Internal
The zone matrix: who can talk to who.
Eight custom firewall policies: admin laptop to Servers, block Mobile to Servers, block Servers starting connections to clients, Guest, IoT and Mobile to Pi-hole DNS, and Mobile to the printer, with hit counts
My custom rules, with hit counts.

Stuff that caught me off guard

  • My Pi-hole was ignoring most of the house. By default it only answers devices on its own network. Once I split things up, everything else quietly fell back to public DNS. Nothing broke, the ad-blocking just stopped. Lesson learned: test DNS from each network, not just from the server.
  • A power cut gave me a second DHCP server. After an outage, the Cloud Key came back with an address from a totally different range. My cellular backup router had booted faster than the gateway and started handing out addresses on my LAN. It only plugs into the gateway's WAN2 port now.
  • Default rules aren't always what you'd expect. Traffic from my trusted networks to IoT was blocked out of the box. Fine for doorbells, annoying if you want to cast to the TV.
  • Old config hides in weird places. A leftover routing rule was quietly sending three of my machines out the backup connection. A final sweep for anything out of place found it, plus a reservation for a printer nobody had seen in 200 days.

What I'd do differently, and what's next

  • Take actual before screenshots. I've got tables and diagrams of the before state, but screenshots would have been nicer.
  • Get a second Pi-hole on its own hardware, so DNS doesn't go down when the Proxmox box does.
  • Lock the management network down to just my admin laptop.
  • Move to identity-based access instead of port-based: 802.1X with NPS putting people and devices on the right network wherever they plug in. That's the next post.

← Back to the work

Looking for someone who does this for fun, too?