Switching & Wireless Setup¶
UniFi Ecosystem¶
The entire switching and wireless infrastructure uses Ubiquiti UniFi equipment, managed through UniFi OS Server running as a VM on Proxmox.
Why UniFi?¶
The FUTO guide recommends TP-Link Omada for switching and wireless. I went with UniFi because:
- Single pane of glass for all switches and APs
- Better VLAN management across the full stack
- Strong second-hand market (the NanoHDs were eBay purchases)
- Mature controller software with good visibility into network health
The trade-off is vendor lock-in within the switching/wireless layer. But since OPNsense handles all routing, firewalling, DNS, and VPN, the UniFi gear is just doing L2 switching and WiFi — replaceable if needed.
Hardware¶
| Device | Ports | PoE Budget | Role |
|---|---|---|---|
| USW-Lite-16-PoE | 16× GbE | 45W PoE+ | Core switch — all infrastructure |
| USW-Lite-8-PoE | 8× GbE | 52W PoE+ | Camera/endpoint switch |
| USW-Flex-2.5G-5 | 5× 2.5GbE | N/A (USB-C powered) | High-bandwidth connections |
| NanoHD ×2 | — | ~10.5W each | Wireless APs (downstairs + upstairs) |
UniFi OS Server¶
The standalone UniFi Network Application is being replaced by UniFi OS Server, so the old Docker-based controller was migrated:
- Deploy UniFi OS Server as a VM with the community-scripts Proxmox script
- On the old controller, use Site Export to move the site and devices across
- Keep the old controller stopped (not deleted) for a few days as a rollback, then delete it
Controller Settings¶
| Setting | Choice | Why |
|---|---|---|
| Automatic backups | Weekly | One-click restore if the VM dies |
| Firmware + application auto-updates | On | Small, low-risk updates; firmware is the main security fix path |
| Device auto-recovery | On | Devices that lose the controller try to recover on their own |
| Console analytics | Off | Nothing leaves the house that doesn't need to |
| AI channel optimisation | Off | Channels are set by hand and shouldn't move overnight |
Management on the Management VLAN¶
Every switch and AP has its management address on VLAN 10, set as a DHCP reservation on the firewall (no static IPs on devices). The move was done one device at a time from the controller, furthest from the core first, with the core switch last.
The untagged LAN still exists as a recovery path: it only allows DNS, NTP and UniFi inform/STUN to the controller, and DHCP option 43 there tells a factory-reset device where the controller is. See Firewall Rules.
Switch Configuration¶
Port Profiles¶
Each switch port needs the correct profile based on what's connected:
Trunk ports (uplinks between switches, connection to OPNsense, connections to Proxmox nodes):
- Native VLAN: Default (untagged LAN — the recovery path)
- Tagged VLANs: Allow All
Proxmox ports: native Management, all others tagged.
AP ports (NanoHD access points):
- Native VLAN: Management
- Tagged VLANs: Trusted (20), IoT (30), Guest (50)
Access ports (single-VLAN devices like the NAS, cameras):
- Assigned to the appropriate VLAN
- No tagged VLANs
VLAN Networks in UniFi¶
Create each VLAN as a network in the UniFi controller:
- Settings → Networks → Create New
- Set the VLAN ID (must match OPNsense)
- Set "DHCP Mode" to "None" (OPNsense handles DHCP)
- Repeat for each VLAN
Then create port profiles that reference these networks and assign them to the appropriate switch ports.
Wireless Configuration¶
SSIDs¶
| SSID | Security | VLAN | Band |
|---|---|---|---|
| GoozLab | WPA2 | 20 (Trusted) | 2.4GHz + 5GHz |
| GoozLab-IoT | WPA2 | 30 (IoT) | 2.4GHz + 5GHz |
| GoozLab-Guest | WPA2 | 50 (Guest) | 2.4GHz + 5GHz |
Each SSID is tagged to its VLAN in the wireless network settings. The AP handles the tagging — when a device connects to GoozLab-IoT, its traffic is tagged with VLAN 30 and routed through OPNsense accordingly.
Roaming and Channels¶
Both NanoHDs broadcast identical SSIDs, with fast roaming on. 5 GHz runs at 80 MHz on non-overlapping channels, with DFS and wireless meshing off.
If your APs are stuck at 20 MHz and every channel shows "Not available", see UniFi Empty Channel Plan.
Lessons Learned¶
PoE budget is a hard limit. The 16-port's 45W budget goes fast: two NanoHDs consume ~21W, leaving 24W. If you're adding PoE cameras, either use the 8-port switch (52W) or add PoE injectors. See PoE Power Budget Mismatch.
The Flex 2.5G needs PoE++ or USB-C. Don't try to power it from a PoE+ switch. See PoE Power Budget Mismatch for the full story.
DHCP collisions break everything. Before implementing a Management VLAN, all three switches got the same DHCP address. See The DHCP Collision.
Use DHCP reservations, not static IPs. Configure MAC-based DHCP reservations in OPNsense for all infrastructure devices. This centralises IP management and means you never need to SSH into a switch to change its IP.
Set a DNS-based inform URL. In the controller settings, set the inform host to a DNS name (e.g., unifi.goozlab.net) instead of an IP. When the controller moves, you update DNS once instead of re-informing every device. See UniFi Adoption Across Subnets.