Tool
IPv4 subnet calculator
Enter a network in CIDR notation to see its mask, usable address range and host count, then divide it into smaller subnets for your VLANs. Everything is calculated in your browser.
Planning a home network
A /24 network holds 254 usable addresses, which is plenty for any single segment in a home. Rather than one large network, use several /24 networks joined by your firewall, one per VLAN. Our example plan gives the whole home 10.42.0.0/16 and makes the third octet match the VLAN ID:
| VLAN | Name | Subnet |
|---|---|---|
| 10 | Management | 10.42.10.0/24 |
| 20 | Trusted | 10.42.20.0/24 |
| 30 | Lab | 10.42.30.0/24 |
| 40 | IoT | 10.42.40.0/24 |
| 50 | Guest | 10.42.50.0/24 |
| 60 | Cameras | 10.42.60.0/24 |
| 70 | Storage, not routed | 10.42.70.0/24 |
| None | VPN tunnel | 10.42.99.0/24 |
The full reasoning is in VLANs and Segmentation.
Private address ranges
- 10.0.0.0/8: the largest private block and our usual recommendation for home labs.
- 172.16.0.0/12: covers 172.16.0.0 to 172.31.255.255 only. Addresses such as 172.40.0.1 are public.
- 192.168.0.0/16: common on consumer routers. Avoid 192.168.0.0/24 and 192.168.1.0/24, which collide with almost every network you will connect from over a VPN.
The calculator also recognizes shared address space used for carrier-grade NAT, 100.64.0.0/10. If your firewall's WAN address falls in that range, inbound connections cannot reach you; see Remote Access and VPNs.
Small subnets
A /31 has no separate network or broadcast address and is used for point-to-point links between two routers. A /32 is a single host address. Both are shown correctly, but you will rarely need them at home.