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
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.
| Link | Switch thinks untagged is | Gateway thinks untagged is | What happened |
|---|---|---|---|
| Flex 2.5G 8 ↔ gateway port 1 | Default (1) | Servers (20) | ✗ Everything behind it got 10.10.20.x |
| USW Flex ↔ gateway port 2 | Default (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:
- 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.
- 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.
- Move the wired PCs to their own Computers network.
- Move the Wi-Fi to a Mobile Devices network instead of "Native Network".
- 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.
Did it work?
I checked everything against what it was doing before:
| Test | Before | After |
|---|---|---|
| Phone near front AP | 192.168.1.x | 10.10.50.x ✓ |
| Phone near back AP | 10.10.20.x ✗ | 10.10.50.x ✓ |
| Phone near AC Pro | 10.10.20.x ✗ | 10.10.50.x ✓ |
| Desktop on Flex 2.5G 5 | 10.10.20.x ✗ | 10.10.10.x ✓ |
| Switch/AP management IPs | all over the place | all 192.168.1.x ✓ |
| Servers | 10.10.20.x by accident | 10.10.20.x on purpose ✓ |
| Controller shows the real network | no | yes ✓ |
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.
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.