Homelab network setup

From nix-community/nur-combined · View interactive version

Homelab network setup is an AI agent skill from the GitHub repository nix-community/nur-combined. Practical home and homelab network planning for gateways, switches, access points, IP ranges, DHCP reservations, DNS, cabling, and common beginner mistakes.

How to use this skill

Skill file

Homelab Network Setup

Use this skill to design a home or small-lab network that can grow without

needing a full rebuild.

When to Use

server addresses.

How It Works

Start by separating device roles:

Internet
  |
Modem or ONT
  |
Gateway or router      NAT, firewall, DHCP, DNS, inter-VLAN routing
  |
Managed switch         wired clients, AP uplinks, optional VLAN trunks
  |
Access points          Wi-Fi only; ideally wired backhaul
Servers and NAS        stable addresses, DNS names, monitoring
Clients and IoT        DHCP pools, isolated later if VLANs are available

Pick a gateway that matches the operator, not just the feature checklist:

| Option | Best fit | Notes |

| --- | --- | --- |

| ISP router | Basic internet only | Limited control and often poor VLAN support |

| UniFi gateway | Managed home network | Good UI, ecosystem lock-in |

| OPNsense or pfSense | Flexible homelab | Strong VLAN, firewall, VPN, and DNS control |

| MikroTik | Advanced network users | Powerful, but easy to misconfigure |

| Linux router | Tinkerers | Document rollback before using as primary gateway |

IP Plan

Avoid the most common default, 192.168.1.0/24, when you expect to use VPNs.

It often conflicts with hotels, offices, and ISP routers.

Example small homelab plan:

192.168.10.0/24  trusted clients
192.168.20.0/24  IoT and media devices
192.168.30.0/24  servers and NAS
192.168.40.0/24  guest Wi-Fi
192.168.99.0/24  network management

Gateway convention: .1
Infrastructure reservations: .2 through .49
Dynamic DHCP pool: .50 through .240
Spare room: .241 through .254

Use home.arpa for local names. It is reserved for home networks and avoids the

leakage/conflict problems of ad hoc names like home.lan.

nas.home.arpa
pihole.home.arpa
gateway.home.arpa
switch-01.home.arpa

DHCP And DNS

as a service.

DHCP DNS options at that address.

with dynamic leases.

Cabling And Wi-Fi

Examples

Beginner Upgrade

Goal: Keep the ISP router but stabilize a small lab.

  1. Set DHCP reservations for NAS, Pi, and any SSH hosts.
  2. Move local names to home.arpa.
  3. Disable duplicate DHCP servers on secondary routers or APs.
  4. Wire the main AP instead of relying on wireless backhaul.

VLAN-Ready Plan

Goal: Prepare for future segmentation without enabling it immediately.

  1. Choose non-overlapping /24 ranges for trusted, IoT, servers, guest, and

management.

  1. Reserve .1 for the gateway and .2-.49 for infrastructure on every subnet.
  2. Buy a gateway and switch that support VLANs and inter-VLAN firewall rules.
  3. Document which SSIDs and switch ports will eventually map to each network.

Anti-Patterns

same trust boundary.

See Also

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.