Networking11 min read

How to Set Up a Homelab Network

From IP addressing to a complete homelab network topology. Learn to design a secure, scalable network architecture with DHCP, DNS, static routes, and LAN/WAN isolation.

1. IP Address Planning

Good IP address planning prevents chaos as your Homelab grows. Without it, you end up with conflicting DHCP ranges, hard-to-remember static IPs, and services that break when you add new devices.

The key principle: <strong class="text-white">choose a private subnet you're comfortable with and allocate ranges for each use case</strong>. Most home networks use 192.168.1.0/24 — it works fine for Homelabs too.

RangePurposeAssignment
192.168.1.1Router / GatewayFixed — your router's LAN IP
192.168.1.2–49Router DHCP PoolDynamic — laptops, phones, tablets
192.168.1.50–99Homelab ServersStatic — Proxmox hosts, NAS, Docker hosts
192.168.1.100–149Homelab ServicesStatic/DHCP reservation — Pi-hole, NPM, Home Assistant
192.168.1.150–179VLANs / IoTDHCP pool for IoT VLAN
192.168.1.180–199VLANs / GuestsDHCP pool for guest VLAN
192.168.1.200–254Reserved / SpecialManual assignment only

2. Subnet Design

For most Homelabs, a single /24 subnet (254 usable addresses) is sufficient. As you grow to multiple VLANs or need more granular control, consider splitting into multiple /24 subnets.

<strong class="text-white">Private IP ranges (RFC 1918):</strong>

CIDRUsable IPsWhen to Use
192.168.1.0/24254Small Homelab, single network
192.168.0.0/23510Medium Homelab with two /24s
172.16.0.0/1665,534Large Homelab with multiple VLANs
10.0.0.0/816.7MEnterprise or cluster setup

3. DHCP Configuration

Your router's DHCP server assigns IPs to new devices automatically. Configure it correctly from day one:

1

Set the DHCP range correctly

Configure your router's DHCP to only assign IPs in a specific range (e.g., 192.168.1.2–192.168.1.99). Never let DHCP touch the static IP range you reserved for servers.

2

Set DHCP lease time

For a stable Homelab, set a long lease time (24–72 hours). Short leases can cause IPs to change unexpectedly when devices reconnect.

3

Configure DNS servers

Point DHCP clients to your Pi-hole (e.g., 192.168.1.100) as the primary DNS. Set a public DNS (1.1.1.1 or 8.8.8.8) as secondary.

4

Reserve IPs for your servers

Use DHCP reservations (MAC address → fixed IP) for your Homelab servers instead of static IPs on the servers themselves. This makes server migration easier.

4. DNS Setup for Your Homelab

A well-configured DNS is the backbone of a smooth Homelab. Instead of memorizing IPs, you access services by name.

<strong class="text-white">DNS hierarchy for a Homelab:</strong>

1

Set Pi-hole as your network DNS

Configure your router to hand out your Pi-hole IP as the primary DNS for all DHCP clients.

2

Add local DNS records in Pi-hole

In Pi-hole Admin UI → Local DNS → DNS Records. Add A records mapping your service names to IPs.

3

Configure upstream DNS in Pi-hole

Set upstream DNS in Pi-hole to 1.1.1.1 (Cloudflare) and 8.8.8.8 (Google). This is how Pi-hole resolves internet domains while blocking ads.

NameIPPurpose
pi-hole.homelab.local192.168.1.100Ad blocking DNS server
npm.homelab.local192.168.1.101Nginx Proxy Manager
ha.homelab.local192.168.1.102Home Assistant
wireguard.homelab.local192.168.1.103WireGuard VPN
nas.homelab.local192.168.1.104NAS / file storage
uptime.homelab.local192.168.1.105Uptime Kuma monitoring

5. Network Topology

A well-structured Homelab network looks like this:

🌐 Internet

WAN side of your router. Your router has one public IP.

🖧 Router / Gateway

NAT, firewall, and DHCP server. Connects WAN to LAN. This is the single choke point controlling all traffic.

🔀 Managed Switch

Connects all wired devices. Supports VLANs for segmentation. One trunk port to router carries all VLANs.

🖥️ Homelab VLAN (192.168.1.50–99)

Your servers, NAS, Docker host, Proxmox nodes. Only accessible from Management VLAN and via VPN.

💻 Main LAN VLAN (192.168.1.2–49)

Family laptops, phones, personal devices. Normal internet access.

📱 IoT VLAN (192.168.1.150–179)

Smart devices. Internet access allowed. No access to Main LAN or Homelab VLAN.

6. Running Your Own DHCP Server

Advanced Homelabs often run their own DHCP server (e.g., on a Proxmox VM running OPNsense or pfSense) instead of relying on the consumer router. This gives you finer control over DHCP ranges per VLAN.

1

Disable DHCP on your router

If you're running a firewall VM (OPNsense/pfSense), disable the router's built-in DHCP to avoid conflicts.

2

Configure DHCP on your firewall VM

In OPNsense: Services → DHCPv4. Create a DHCP range for each VLAN interface.

3

Set static mappings

Reserve IPs for your Homelab servers by MAC address. DHCP will always assign the same IP regardless of which port the server connects to.

7. IPv6 in Your Homelab

Most ISPs now provide IPv6 prefixes. Enabling IPv6 in your Homelab is future-proofing — but requires careful configuration to avoid security issues.

<strong class="text-white">Key consideration:</strong> Unlike IPv4 NAT, every device with a public IPv6 address is directly reachable from the internet (unless your router blocks it). This is a significant security change.

🛡️ Enable IPv6 with firewall rules

Allow outgoing IPv6 connections from your LAN but block inbound unless explicitly forwarded (similar to IPv4). OPNsense and pfSense handle this well.

📊 Track IPv6 prefix changes

Most residential ISPs use dynamic prefix delegation — your IPv6 prefix changes periodically. Use a dynamic DNS service that supports IPv6 AAAA records to keep your domain pointing to your current IP.

🔒 Disable IPv6 if unsure

If you're not ready to configure IPv6 firewall rules, disable IPv6 on your Homelab VLANs. It won't affect IPv4 connectivity.

Frequently Asked Questions

Should I use 192.168.x.x or 10.x.x.x for my Homelab?

192.168.x.x is more common and sufficient for most Homelabs. 10.x.x.x is typically used in enterprise environments or when you need more than 254 addresses in a single subnet. Stick with 192.168.1.x — it's simpler and works perfectly for a Homelab.

How do I choose between static IPs and DHCP reservations?

Use DHCP reservations for servers — it's cleaner. The server gets an IP automatically on boot, but the router always assigns the same IP based on MAC address. If you migrate the server, it still gets the right IP. With static IPs, you have to reconfigure every server manually when migrating.

Can I have multiple DHCP servers on one network?

Only one DHCP server should be active per subnet/VLAN at a time. If two DHCP servers conflict, devices get confused and may get wrong IPs. If you want to run your own DHCP server (e.g., on OPNsense), disable the router's DHCP on that VLAN first.

What is the difference between DNS and DHCP?

DHCP assigns IP addresses to devices automatically. DNS translates domain names (like pi-hole.homelab.local) to IP addresses. They work together: DHCP tells a device which DNS server to use, and DNS resolves names to IPs for all devices.

How do I connect to my Homelab when I'm away from home?

WireGuard VPN is the best option. Set up WireGuard on your Homelab server, forward port 51820/UDP to it, and install the WireGuard app on your phone/laptop. You'll get an IP inside your home network and can access everything as if you were home.