Reference Sheet

Subnet Cheat Sheet

Networking · Google IT Cert Course 2 · CIDR, netmasks, host ranges

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 126 split 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

  1. Netmask  → how many octets are locked? (slash ÷ 8)
  2. Host bits  → 32 minus the slash number
  3. Hosts  → 2(host bits) − 2
  4. Network addr  → given address, last free octet = 0
  5. Broadcast  → last free octet = 255
  6. 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 1Bit 2Bit 3Bit 4 Bit 5Bit 6Bit 7Bit 8
128 64 32 16 8 4 2 1
stolen (network) ↑ ↑ free (host)

Example above shows /28 — 4 bits stolen (28 − 24 = 4). Yellow = locked, grey = free.

The mental path — step by step for any split CIDR:

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 28 − 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
Netmask255.0.0.0
Usable hosts~16,000,000
Network addr10.0.0.0
Broadcast10.255.255.255
Host range10.0.0.1 → 10.255.255.254
172.20.0.0/16
Netmask255.255.0.0
Usable hosts~65,000
Network addr172.20.0.0
Broadcast172.20.255.255
Host range172.20.0.1 → 172.20.255.254
192.168.100.0/24
Netmask255.255.255.0
Usable hosts254
Network addr192.168.100.0
Broadcast192.168.100.255
Host range192.168.100.1 → 192.168.100.254
192.168.1.0/25 split octet
Netmask255.255.255.128
Usable hosts126
Network addr192.168.1.0
Broadcast192.168.1.127
Host range192.168.1.1 → 192.168.1.126