Lesson 1 of 9 · 26m
Lab Architecture and VLAN Design That Survives Growth
Choose trust zones, address plans, and VLAN boundaries based on failure and compromise behavior rather than device categories.
The worst home labs grow like sedimentary rock: a desktop here, a Raspberry Pi there, a camera network nobody remembers, and one flat /24 binding them all together. It works right up until a vulnerable smart plug can scan your NAS, or your test cluster starts broadcasting mDNS into the family Netflix session. The point of segmentation is not tidiness. It is control over blast radius.
Start with trust zones, not hardware
Do not begin by counting switches. Begin by asking which systems would hurt if they failed, were compromised, or simply became noisy. A practical lab usually converges on these zones:
VLAN 10 mgmt switches, hypervisors, UPS, out-of-band interfaces
VLAN 20 trusted laptops, phones, personal workstations
VLAN 30 servers NAS, internal applications, databases, auth services
VLAN 40 services reverse proxies, public-facing self-hosted apps
VLAN 50 iot cameras, smart devices, TVs, vendor cloud gadgets
VLAN 60 guest visitors and unknown devices
VLAN 70 lab disposable VMs, malware-adjacent testing, experimentsThis is not doctrine. It is a starting point. The important part is that each zone has a distinct trust relationship. Management can reach almost nothing from the public side. IoT cannot initiate connections to trusted clients. Disposable lab machines cannot see the NAS merely because they share a rack.
Write the traffic matrix before the firewall rules
A VLAN without policy is just extra broadcast domains. Write down allowed flows first:
trusted -> mgmt ssh, https, ipmi only from admin workstations
trusted -> servers application ports only; no direct database unless needed
services -> servers application backend ports only
iot -> internet required vendor endpoints, if tolerable
guest -> internet dns, http, https only
lab -> nowhere except explicitly controlled egress or an isolated service VLANThen implement the matrix as close to the routing point as possible. Consumer routers often let you create VLANs but not express useful inter-VLAN policy. That is decoration, not segmentation.
Addressing is documentation you can type
Pick a plan that leaves room and encode meaning consistently:
10.10.10.0/24 mgmt
10.10.20.0/24 trusted
10.10.30.0/24 servers
10.10.40.0/24 services
10.10.50.0/24 iot
10.10.60.0/24 guest
10.10.70.0/24 labReserve ranges deliberately. For example, .1 gateway, .2-.20 infrastructure, .21-.100 static servers, .100-.199 DHCP, .200+ temporary systems. Future you should be able to infer function from an address during an incident.
The first failure mode: asymmetric routing
When a firewall permits a request but blocks the return path, or when a host has multiple interfaces on overlapping networks, symptoms masquerade as application bugs. Check both directions:
ip route get 10.10.30.15
traceroute -n 10.10.30.15
sudo tcpdump -ni any host 10.10.30.15 and port 443Field notes
- Do not put hypervisor management on the same network as tenants or IoT devices. A compromised experiment should not be able to reach IPMI.
- Managed switches with weak firmware update stories are themselves attack surface. They belong in the threat model.
- Keep one wired admin path that does not depend on the lab being healthy. If everything routes through the thing you are fixing, you built a trap.
- VLAN hopping is less common than simple misconfiguration. Audit trunk ports, native VLANs, and unused switch ports before blaming exotic attacks.
Was this lesson helpful?