LOGBOOK

HELP

Quiz Entry - updated: 2026.07.14

How do you determine the subnet requirements and choose the appropriate prefix length?

Count the hosts the busiest subnet needs, then pick the smallest prefix whose 2^h − 2 covers it; also confirm the number of subnets (LANs/WANs/links) fits.

Subnet planning balances two competing demands: enough host addresses per network, and enough separate networks. Start from the host side — count every device that needs an address in the largest segment, remembering to include the router interface, servers and printers, not just user PCs. Then find the smallest number of host bits h where 2^h − 2 covers that count (you subtract 2 for the unusable network and broadcast addresses). For example, a subnet needing 50 hosts requires 6 host bits because 2^6 − 2 = 62 covers it while 2^5 − 2 = 30 does not, giving a /26. Finally sanity-check the other axis: count your LANs, WAN links and point-to-point connections, and make sure the prefix you chose leaves enough borrowed bits to create that many subnets. Picking too generous a prefix wastes addresses; too tight a one leaves you no room to grow.

Subnet Design Process:

Step 1: Determine host requirements

  • Count devices needing IP addresses per subnet
  • Add addresses for router interfaces, servers, printers

Step 2: Choose prefix length based on hosts needed

Hosts Needed Min Host Bits Prefix Hosts Available
2 2 /30 2
3-6 3 /29 6
7-14 4 /28 14
15-30 5 /27 30
31-62 6 /26 62
63-126 7 /25 126
127-254 8 /24 254

Step 3: Determine number of subnets needed

  • Count LANs, WANs, and point-to-point links

Key formula: Find smallest n where 2^n - 2 ≥ hosts needed

Go deeper:

From Quiz: NETW1 / IPv4 Addressing | Updated: Jul 14, 2026