Reference Sheet
Subnet Cheat Sheet
Networking · CIDR, netmasks, host ranges
In Chrome: choose "Save as PDF" as the destination. Portrait orientation recommended.
The Core Pattern
| CIDR | Netmask | Network Part | Host Bits | Usable Hosts |
|---|---|---|---|---|
| /8 | 255.0.0.0 | X . _ . _ . _ | 24 bits | ~16,000,000 |
| /16 | 255.255.0.0 | X.X . _ . _ | 16 bits | ~65,000 |
| /24 | 255.255.255.0 | X.X.X . _ | 8 bits | 254 |
| /25 | 255.255.255.128 | X.X.X . _ (half) | 7 bits | 126split octet |
Mental Shortcut
The slash ÷ 8 = how many octets are locked.
/8 → 1 locked octet → 255.0.0.0
/16 → 2 locked octets → 255.255.0.0
/24 → 3 locked octets → 255.255.255.0
Broadcast & Host Range — Always the Same Trick
| Address Type | Rule |
|---|---|
| Network address | Last free octet = 0 |
| Broadcast | Last free octet = 255 |
| Host range | Everything in between — .1 to .254 across the free octets |
The 5-Question Flow — Same Every Time
- Netmask → how many octets are locked? (slash ÷ 8)
- Host bits → 32 minus the slash number
- Hosts → 2^(host bits) − 2
- Network addr → given address, last free octet = 0
- Broadcast → last free octet = 255
- Range → .1 to .254 across the free octets
Split Octets — What Your Mind Should Do
A split octet happens when the slash doesn't land on a multiple of 8. Some bits of the last octet are "stolen" for the network part — the rest stay as host bits. The stolen bits determine the netmask, block size, and broadcast.
Octet bit values, left to right (always this order):
| Bit 1 | Bit 2 | Bit 3 | Bit 4 | Bit 5 | Bit 6 | Bit 7 | Bit 8 |
|---|---|---|---|---|---|---|---|
| 128 | 64 | 32 | 16 | 8 | 4 | 2 | 1 |
| stolen (network) ↑ | ↑ free (host) | ||||||
Example above shows /28 — 4 bits stolen (28 − 24 = 4). Gold = locked, grey = free.
The mental path — step by step for any split CIDR:
- 1Remainderslash ÷ 8 → quotient = full locked octets, remainder = bits stolen/25: 25÷8 = 3 R1 → 1 bit stolen
- 2Stolen valueread the bit value from the table above (start at 128, count right)1 bit → 128 | 2 bits → 128+64=192 | 3 bits → 224
- 3Netmasklast octet = sum of stolen bit values; full octets before it = 255/25 → 255.255.255.128
- 4Block size256 − last-octet netmask (or: value of the last stolen bit)256 − 128 = 128 → subnets start at .0 and .128
- 5Network addrround the 4th octet of your address down to the nearest multiple of block size192.168.1.50/25 → 50 rounds to 0 → network = 192.168.1.0
- 6Broadcastnetwork 4th-octet + block − 10 + 128 − 1 = 127 → broadcast = 192.168.1.127
- 7Host rangenetwork+1 to broadcast−1192.168.1.1 → 192.168.1.126
Split CIDR Quick-Reference
| CIDR | Bits stolen | Netmask | Block size | Usable hosts | Subnet starts at… |
|---|---|---|---|---|---|
| /25 | 1 | 255.255.255.128 | 128 | 126 | .0 and .128 |
| /26 | 2 | 255.255.255.192 | 64 | 62 | .0, .64, .128, .192 |
| /27 | 3 | 255.255.255.224 | 32 | 30 | .0, .32, .64, .96 … |
| /28 | 4 | 255.255.255.240 | 16 | 14 | .0, .16, .32, .48 … |
| /29 | 5 | 255.255.255.248 | 8 | 6 | .0, .8, .16, .24 … |
| /30 | 6 | 255.255.255.252 | 4 | 2 | .0, .4, .8, .12 … (point-to-point links) |
Worked Example — 192.168.10.0/24
| Question | Answer |
|---|---|
| Netmask | 255.255.255.0 |
| Host bits | 32 − 24 = 8 |
| Usable hosts | 2⁸ − 2 = 254 |
| Network address | 192.168.10.0 |
| Broadcast | 192.168.10.255 |
| Host range | 192.168.10.1 → 192.168.10.254 |
Practice Problems
10.50.0.0/8
| Netmask | 255.0.0.0 |
| Usable hosts | ~16,000,000 |
| Network addr | 10.0.0.0 |
| Broadcast | 10.255.255.255 |
| Host range | 10.0.0.1 → 10.255.255.254 |
172.20.0.0/16
| Netmask | 255.255.0.0 |
| Usable hosts | ~65,000 |
| Network addr | 172.20.0.0 |
| Broadcast | 172.20.255.255 |
| Host range | 172.20.0.1 → 172.20.255.254 |
192.168.100.0/24
| Netmask | 255.255.255.0 |
| Usable hosts | 254 |
| Network addr | 192.168.100.0 |
| Broadcast | 192.168.100.255 |
| Host range | 192.168.100.1 → 192.168.100.254 |
192.168.1.0/25split octet
| Netmask | 255.255.255.128 |
| Usable hosts | 126 |
| Network addr | 192.168.1.0 |
| Broadcast | 192.168.1.127 |
| Host range | 192.168.1.1 → 192.168.1.126 |