agentleFS
agenticlukeagenticluke/homelab-network-planner-plus/skill/SKILL.md

homelab-network-setup

Skill0 starsChanged 3 months agoMITView on GitHub

Plan and set up a safe home lab network, including devices, IP ranges, Wi-Fi, DNS, and network groups.

7 other projects use a version of this, 6 of them edited.

Adopted by

Most recently taken up by

The file

Show its rules and text

We split this skill into the rules it gives an agent

43 rules. 1 is common, 39 are distinctive, and 3 are very specific to this project.

  • 1

    Common

    Most of the 7 edited versions we read keep these.

  • 39

    Distinctive

    This author's own choices. Worth a look.

  • 3

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Use this skill to plan a home or small lab network.

    line 11
  2. Distinctive:

    Use this skill when you need to:

    line 15
  3. Distinctive:

    Add a NAS, Pi-hole, Home Assistant, lab server, or VPN.

    line 21
  4. Distinctive:

    Ask for these facts before making a plan:

    line 27
  5. Distinctive:

    If a fact is missing, state the guess you use.

    line 38
  6. Distinctive:

    Do not change the live network until there is a backup and rollback plan.

    line 40
  7. Distinctive:

    Keep each role clear:

    line 44
  8. Distinctive:

    Check that the gateway can handle the full internet speed with all needed features on.

    line 76
  9. Distinctive:

    Before replacing the ISP router, check:

    line 80
  10. Distinctive:

    Do not place two routers in a row unless double NAT is planned and written down.

    line 90
  11. Very specific:

    Avoid common ranges such as 192.168.0.0/24 and 192.168.1.0/24 when VPN use is likely.

    line 94
  12. Distinctive:

    Make sure every local and remote VPN range is different.

    line 96
  13. Distinctive:

    Do not give the same IP address to two devices.

    line 115
  14. Very specific:

    Use home.arpa for local names:

    line 117
  15. Very specific:

    Do not use made-up endings such as .lan.

    line 126
  16. Distinctive:

    Use DHCP fixed leases for devices you log in to, save as bookmarks, watch, or run as services.

    line 130
  17. Distinctive:

    Keep the gateway as DNS until a local DNS server is ready.

    line 131
  18. Distinctive:

    Do not point a DNS server back to itself in a loop.

    line 133
  19. Distinctive:

    Keep a tested way to reach the gateway if local DNS fails.

    line 134
  20. Distinctive:

    Start with simple rules:

    line 151
  21. Distinctive:

    Do not turn on all VLANs at once.

    line 163
  22. Distinctive:

    Do not ignore IPv6 if the ISP gives it to you.

    line 167
  23. Distinctive:

    Add IPv6 firewall rules that match the IPv4 safety plan.

    line 169
  24. Distinctive:

    Do not assume NAT protects IPv6 devices.

    line 170
  25. Distinctive:

    Check how the ISP gives out IPv6 ranges.

    line 171
  26. Distinctive:

    Test DNS, guest access, and VLAN rules over both IPv4 and IPv6.

    line 172
  27. Distinctive:

    Use wired links for access points when possible.

    line 177
  28. Distinctive:

    Use Cat 6 cable for most new home runs.

    line 178
  29. Distinctive:

    Use a PoE switch for access points and cameras when useful.

    line 179
  30. Distinctive:

    Keep a port map with room, wall jack, switch port, and VLAN.

    line 181
  31. Distinctive:

    Place access points in open, central spots.

    line 182
  32. Distinctive:

    Do not hide an access point in a metal box or behind large gear.

    line 183
  33. Distinctive:

    Use more access points at lower power when one loud access point cannot cover the home well.

    line 184
  34. Distinctive:

    Use mesh only where a cable cannot be run.

    line 185
  35. Common:

    Put the modem, gateway, switch, DNS server, and NAS on battery backup if power cuts are common.

    line 186
  36. Distinctive:

    Before a major change:

    line 190
  37. Distinctive:

    Write down all IP ranges, Wi-Fi names, and key device addresses.

    line 193
  38. Distinctive:

    Keep a laptop and Ethernet cable ready.

    line 194
  39. Distinctive:

    Test internet, DNS, Wi-Fi, local services, and remote access.

    line 197
  40. Distinctive:

    Do not change the network tool VLAN from a remote link.

    line 200
  41. Distinctive:

    Add fixed leases for the NAS, Pi, and login hosts.

    line 244
  42. Distinctive:

    Write the firewall rules before turning VLANs on.

    line 257
  43. Distinctive:

    Test all of these:

    line 261

“Common” is measured: kept by at least 6 in 10 of the 7 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Homelab Network Setup

This skill comes from the open-source community. Credit the original author in any copy or update.

Use this skill to plan a home or small lab network. The plan should be safe, clear, and easy to grow.

When to Use

Use this skill when you need to:

  • Plan a new home network.
  • Improve a network that only uses an ISP router.
  • Pick a gateway, switch, or Wi-Fi access point.
  • Plan IP ranges, DHCP, fixed leases, and DNS.
  • Add a NAS, Pi-hole, Home Assistant, lab server, or VPN.
  • Plan separate networks for guests, smart devices, and servers.
  • Fix double NAT, weak Wi-Fi, or server IP addresses that keep changing.

First Steps

Ask for these facts before making a plan:

  1. Internet speed and ISP device type.
  2. Home size, floors, and wall types.
  3. Number of wired and Wi-Fi devices.
  4. Current router, switches, and access points.
  5. Devices that must keep the same IP address.
  6. Need for guest Wi-Fi, smart devices, cameras, or remote VPN access.
  7. Budget and skill level.
  8. Need for IPv6, port forwarding, or public services.

If a fact is missing, state the guess you use.

Do not change the live network until there is a backup and rollback plan.

Device Roles

Keep each role clear:

Internet
  |
Modem or ONT
  |
Gateway or router      Firewall, DHCP, DNS, NAT, and network routing
  |
Managed switch         Wired devices, access points, and VLAN links
  |
Access points          Wi-Fi only, with wired links when possible
Servers and NAS        Fixed leases, clear names, and health checks
Clients and smart gear DHCP pools, with separate networks when needed

One device should run DHCP on each network. Two DHCP servers can give devices bad settings.

A spare router used as an access point should use AP mode. If it has no AP mode, turn off its DHCP and routing features.

Pick a Gateway

Choose a gateway that fits the person who will run it.

ChoiceBest fitMain concern
ISP routerBasic internet useMay have weak VLAN and firewall tools
UniFi gatewaySimple managed home networkWorks best with the UniFi system
OPNsense or pfSenseFlexible home labNeeds more setup and care
MikroTikSkilled network usersMany settings make errors easy
Linux routerPeople who like to buildA bad change can cut off the network

Check that the gateway can handle the full internet speed with all needed features on. VPN, traffic checks, and smart queue tools may lower speed.

Modem and ISP Checks

Before replacing the ISP router, check:

  • Can the ISP device use bridge or pass-through mode?
  • Does the ISP use CGNAT?
  • Does the ISP need a VLAN tag, login name, or special phone setup?
  • Does the ISP use IPv6?
  • Will bridge mode stop ISP TV or phone service?

CGNAT may block normal port forwarding. Use a VPN tunnel or another safe relay if remote access is needed.

Do not place two routers in a row unless double NAT is planned and written down.

IP Plan

Avoid common ranges such as 192.168.0.0/24 and 192.168.1.0/24 when VPN use is likely. Hotels, offices, and other homes often use them too.

Make sure every local and remote VPN range is different.

Example home lab plan:

192.168.10.0/24  trusted devices
192.168.20.0/24  smart 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 tools

Gateway: .1
Fixed leases: .2 through .49
DHCP pool: .50 through .240
Unused space: .241 through .254

A /24 network gives up to 254 usable addresses. Use a smaller or larger network only when there is a clear need.

Do not give the same IP address to two devices. Keep fixed leases outside the DHCP pool, unless the DHCP server safely tracks them.

Use home.arpa for local names:

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

Do not use made-up endings such as .lan. Do not use .local for normal DNS names because many devices use it for mDNS.

DHCP and DNS

  • Use DHCP fixed leases for devices you log in to, save as bookmarks, watch, or run as services.
  • Keep the gateway as DNS until a local DNS server is ready.
  • Give Pi-hole or another DNS server a fixed lease before clients use it.
  • Do not point a DNS server back to itself in a loop.
  • Keep a tested way to reach the gateway if local DNS fails.
  • A public backup DNS entry may bypass local blocks. State this tradeoff before adding one.
  • Set the right time zone and use a trusted time source. Bad time can break logs and secure links.

VLAN Plan

A VLAN is a separate network on shared gear. Each VLAN needs:

  • Its own ID.
  • Its own IP range.
  • A gateway address.
  • A DHCP scope.
  • Firewall rules.
  • A matching switch and Wi-Fi setup.

The gateway, switches, and access points must all support the VLAN plan.

Start with simple rules:

  • Trusted devices may reach needed server services.
  • Smart devices should not reach trusted devices.
  • Guest devices should reach the internet only.
  • Network tool pages should be open only to admin devices.
  • Block new traffic between groups unless it is needed.

Allow reply traffic for links that were already opened.

Some tools use mDNS to find printers, speakers, and smart devices. This search may not cross VLANs. Add an mDNS helper only for the groups that need it.

Do not turn on all VLANs at once. Test one group first with a spare device.

IPv6

Do not ignore IPv6 if the ISP gives it to you.

  • Add IPv6 firewall rules that match the IPv4 safety plan.
  • Do not assume NAT protects IPv6 devices.
  • Check how the ISP gives out IPv6 ranges.
  • Test DNS, guest access, and VLAN rules over both IPv4 and IPv6.
  • Turn off IPv6 only when there is a clear reason and the effect is known.

Cabling and Wi-Fi

  • Use wired links for access points when possible.
  • Use Cat 6 cable for most new home runs.
  • Use a PoE switch for access points and cameras when useful.
  • Label both ends of every cable.
  • Keep a port map with room, wall jack, switch port, and VLAN.
  • Place access points in open, central spots.
  • Do not hide an access point in a metal box or behind large gear.
  • Use more access points at lower power when one loud access point cannot cover the home well.
  • Use mesh only where a cable cannot be run.
  • Put the modem, gateway, switch, DNS server, and NAS on battery backup if power cuts are common.

Safe Change Plan

Before a major change:

  1. Save the current settings.
  2. Write down all IP ranges, Wi-Fi names, and key device addresses.
  3. Keep a laptop and Ethernet cable ready.
  4. Know the default and current gateway address.
  5. Make one change at a time.
  6. Test internet, DNS, Wi-Fi, local services, and remote access.
  7. Roll back if the result is not clear.

Do not change the network tool VLAN from a remote link. A bad rule may lock you out.

Concrete Usage Example

User request:

I have a 1 Gbps cable link, an ISP router, one Wi-Fi access point,
a NAS, Home Assistant, six smart plugs, and two cameras.
I want guest Wi-Fi and remote VPN access.

Good answer:

Use the ISP device in bridge mode if the ISP supports it.
Place a VLAN-ready gateway behind it.

Plan:
192.168.10.0/24  laptops and phones
192.168.20.0/24  smart plugs and cameras
192.168.30.0/24  NAS and Home Assistant
192.168.40.0/24  guests
192.168.99.0/24  gateway, switch, and access point

Use .1 as each gateway address.
Use .2 through .49 for fixed leases.
Use .50 through .240 for DHCP.

Give the NAS and Home Assistant fixed leases.
Block smart devices from trusted devices.
Allow trusted devices to reach needed smart device ports.
Give guests internet access only.
Set up VPN access to trusted and server networks.
Do not open the NAS or Home Assistant to the public internet.

Test one VLAN before moving all devices.
Keep the ISP router settings so the old setup can be restored.

Common Small Upgrades

Keep the ISP Router

  1. Add fixed leases for the NAS, Pi, and login hosts.
  2. Move local names to home.arpa.
  3. Turn off DHCP on spare routers and access points.
  4. Wire the main access point if possible.
  5. Save a copy of the router settings.

Get Ready for VLANs

  1. Pick separate IP ranges.
  2. Reserve .1 for each gateway.
  3. Reserve .2 through .49 for key devices.
  4. Buy a gateway, switch, and access points that support VLANs.
  5. Map each Wi-Fi name and switch port to a future network.
  6. Write the firewall rules before turning VLANs on.

Checks After Setup

Test all of these:

  • A client gets the right IP, gateway, and DNS settings.
  • Local names such as nas.home.arpa work.
  • The internet works from each allowed network.
  • Guest devices cannot reach local devices.
  • Smart devices cannot reach trusted devices.
  • Trusted devices can reach only the needed server ports.
  • VPN users can reach only the planned networks.
  • IPv4 and IPv6 follow the same safety rules.
  • The gateway can still be reached by cable.
  • The network still works after a gateway and switch restart.

Avoid These Mistakes

  • Double NAT with no clear need.
  • IP ranges that overlap with a VPN or remote site.
  • Changing server IP addresses.
  • More than one DHCP server on the same network.
  • Using a spare router as an access point while routing is still on.
  • Placing cameras, smart plugs, laptops, and servers in one trust group.
  • Making VLANs without matching switch and access point settings.
  • Allowing all traffic between VLANs.
  • Exposing admin pages or home services to the public internet.
  • Changing remote access rules without a local rollback path.
  • Backing up settings but never testing that they can be restored.

See Also

  • Skill: network-interface-health
  • Skill: network-config-validation

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.