Plan a small IPv4 network
By EmuPath · Reviewed November 24, 2026 · Worked educational example
A small office needs 40 simultaneous client connections, plus a router, switch, access points and printers. The goal is to leave a little room to grow while keeping automatic addresses separate from infrastructure. Work through this example before opening the calculator.
1. Count connections, not people
One person may use a laptop and a phone at the same time. For this exercise, 40 means client devices, not staff. Budget another 10 addresses for infrastructure and leave some spare capacity. This is one IPv4 LAN; guest isolation and multiple VLANs need separate plans.
We use the private range 192.168.10.0. Check existing LANs and VPN routes before adopting any example range on real equipment: overlapping networks can make destinations ambiguous. Private addresses are not globally unique public addresses.
2. Choose a prefix with enough room
IPv4 has 32 bits. A /26 leaves 6 bits for addresses, giving 2⁶ = 64 total addresses. In this conventional broadcast subnet, reserve the network and broadcast addresses, leaving 62 usable addresses. This host-count rule is for this LAN example, not every special-purpose prefix.
- /27: 32 total, 30 usable — too small for 40 clients alone.
- /26: 64 total, 62 usable — fits our clients, infrastructure and a modest reserve.
- /25: 128 total, 126 usable — useful if growth requires more room, but unnecessary for this exercise.
Open the subnet calculator and enter 192.168.10.0/26. The expected mask is 255.255.255.192, network 192.168.10.0, broadcast 192.168.10.63, and usable range 192.168.10.1–192.168.10.62. The next /26 starts at .64, not .63.
3. Write down an allocation
All shortened addresses below belong to 192.168.10.x. The gateway consumes one of the 62 usable addresses.
- .0 — Network
- Identifies the subnet; do not assign it to a device.
- .1 — Router LAN interface
- The default gateway for clients leaving this subnet.
- .2–.9 — Infrastructure
- Eight addresses for managed equipment and printers, outside the automatic pool.
- .10–.59 — DHCP pool
- 50 leases: enough for 40 simultaneous clients and 10 spare leases.
- .60–.62 — Reserve
- Three usable addresses held back for future planning.
- .63 — Broadcast
- Do not assign it to a host.
Check the arithmetic: 1 gateway + 8 infrastructure + 50 DHCP + 3 reserve = 62. A pool’s inclusive count is last minus first plus one: 59 − 10 + 1 = 50. A /26 does not automatically mean all 62 addresses should be offered by DHCP.
4. Translate the plan into router fields
In a manufacturer router demo, find LAN settings and DHCP settings. Identify the LAN address, mask, starting lease address, ending lease address and DNS options. Some archived demos only show a setup wizard or cannot save changes; use them to identify the controls, not to prove a live network works.
The example LAN address is .1 with the /26 mask; the DHCP pool is .10 through .59. Clients normally receive .1 as their default gateway. The DNS server is whichever resolver the real network is designed to use. Do not assume the gateway provides DNS forwarding merely because it routes traffic.
If you assign a printer a static address, keep it outside the automatic pool or configure an appropriate reservation supported by the DHCP server. Do not let two devices claim the same address. Changing a real router’s LAN address can end your management session; this lesson requires no changes to live equipment.
5. Diagnose the symptom before changing settings
- A client gets .70 with a /26 mask: it is in the .64–.127 subnet, while our gateway is in .0–.63. Check the lease source, mask and pool; increasing DNS timeouts will not fix the mismatch.
- Only 30 clients can receive leases: inspect the actual DHCP range and active leases. The prefix sets the subnet capacity, but a shorter pool can run out first. Also check stale leases and reservations.
- External IP connectivity works but names fail: investigate DNS configuration and resolver reachability. A failed ping by itself is not proof of failure because a destination or firewall may block ICMP.
- Guest Wi-Fi can reach the office printer: a different SSID alone does not guarantee isolation. Review guest isolation, VLAN membership and firewall policy; those controls are outside this single-LAN address plan.
Check your plan
Choose an answer to see the reasoning. Your answers stay in this page and are not submitted.
What to record before a real deployment
Keep the chosen subnet, gateway, DHCP pool, reserved devices, DNS design and expected client count together. Record where the plan differs from existing networks and who can approve changes. This worksheet is an address plan, not a complete security or availability design.
References and scope
The scenario, allocation and self-check are original worked teaching material. Private addressing is defined in RFC 1918; prefix notation and address aggregation are explained in RFC 4632. Product interfaces differ from this example. Report an error with the step and expected result.