Yes, a subnet cheat sheet can give you the most common CIDR masks, host counts, and quick formulas in a single glance. It lets you translate between slash notation and dotted‑decimal masks without pausing to search.
Subnet Basics in Two Sentences
A subnet is a logical subdivision of an IP network defined by a mask that separates network bits from host bits. The mask can be written as a slash number (CIDR) or as four decimal octets, and the number of host bits determines how many devices can live in that segment.
Common CIDR to Decimal Mask Table
| CIDR | Decimal Mask | Usable Hosts | Subnets per /24 |
|---|---|---|---|
| /30 | 255.255.255.252 | 2 | 64 |
| /29 | 255.255.255.248 | 6 | 32 |
| /28 | 255.255.255.240 | 14 | 16 |
| /27 | 255.255.255.224 | 30 | 8 |
| /26 | 255.255.255.192 | 62 | 4 |
| /25 | 255.255.255.128 | 126 | 2 |
| /24 | 255.255.255.0 | 254 | 1 |
| /23 | 255.255.254.0 | 510 | 0.5 |
| /22 | 255.255.252.0 | 1022 | 0.25 |
This table covers the most frequently used subnets in small‑to‑medium networks. The “Usable Hosts” column already subtracts the network and broadcast addresses, which are never assigned to devices.
How to Derive Host and Subnet Counts
Two simple formulas cover every IPv4 subnet:
- Usable hosts = 2^(32 - CIDR) - 2.
- Number of subnets created from a larger block = 2^(new CIDR - original CIDR).
For example, moving from a /24 to a /26 adds two more network bits (26 - 24 = 2). 2² = 4, so a /24 can be split into four equal /26 subnets.
A quick rule of thumb helps you estimate without a calculator: each time you increase the CIDR by one, you halve the number of hosts and double the number of subnets within the same address space.
Worked Example: Dividing a /24 into Four /26 Subnets
Suppose you have the network 192.168.10.0/24 and need four equal segments for separate departments.
- Identify the new CIDR. Adding two bits to the mask (24 + 2) gives /26.
- Calculate the block size. 2^(32‑26) = 64 addresses per /26 block.
- List the subnets by adding the block size to the base address:
- 192.168.10.0/26 – range 192.168.10.1 ‑ 192.168.10.62, broadcast 192.168.10.63
- 192.168.10.64/26 – range 192.168.10.65 ‑ 192.168.10.126, broadcast 192.168.10.127
- 192.168.10.128/26 – range 192.168.10.129 ‑ 192.168.10.190, broadcast 192.168.10.191
- 192.168.10.192/26 – range 192.168.10.193 ‑ 192.168.10.254, broadcast 192.168.10.255
- Assign each department a usable range. Remember that the first address in each block is the network identifier and the last is the broadcast address; neither can be used for a host.
- Document the subnets in a simple spreadsheet so you can reference them later.
This process works for any larger block. If you start with a /16 and need /20 subnets, increase the CIDR by four bits, calculate 2⁴ = 16 subnets, and use a block size of 2^(32‑20) = 4096 addresses per subnet.
Verification Tips and Common Misconception
A frequent misconception is that the host count listed in a CIDR table includes the network and broadcast addresses. The correct fact is that the usable host count is always two less than the raw 2^(host bits) total.
To verify a subnet you have designed, follow these steps:
- Write the network address, mask, and CIDR side by side.
- Calculate the broadcast address by setting all host bits to 1. If the result matches your notes, the mask is applied correctly.
- Ping the first usable host from a device in the same segment. A successful reply confirms that the network and host portions are aligned.
- Use a built‑in calculator (often found under Settings > Network > Advanced) or an online tool to cross‑check the host count and subnet list.
- Record any unused address ranges to avoid accidental overlap when you add future subnets.
If a ping fails, double‑check that you have not assigned the network or broadcast address to a device. Adjust the host range accordingly and repeat the test.
By keeping the cheat sheet table handy, applying the two formulas, and running the quick verification steps, you can design, split, and confirm subnets with confidence, even under time pressure.