FREE NETWORKING REFERENCE

IPv4 subnetting cheat sheet

Use the table for quick recall, then practice calculating network boundaries without it.

CIDRMaskTotal addressesTraditional usable hosts*
/24255.255.255.0256254
/25255.255.255.128128126
/26255.255.255.1926462
/27255.255.255.2243230
/28255.255.255.2401614
/29255.255.255.24886
/30255.255.255.25242

1 · Find host bits

IPv4 has 32 bits. Host bits = 32 − prefix length.

2 · Find block size

In the interesting octet, block size = 256 − mask value.

3 · Find boundary

Locate the multiple of the block size containing the target IP.

4 · Verify range

Identify network address, broadcast address and the host range expected by the question.

*The familiar “total minus 2” host rule is a study shortcut for conventional subnets. Special cases such as /31 point-to-point use have different behavior.