Home / CIDR cheat sheet
IPv4 CIDR Cheat Sheet
Every prefix from /0 to /32 in one table — netmask, wildcard mask, total addresses and usable hosts. Useful for subnetting drills, CCNA practice and config reviews.
| Prefix | Netmask | Wildcard | Host bits | Total | Usable |
|---|
Remember: usable = 2host bits − 2 for everything except /31 (RFC 3021, 2 usable) and /32 (single host, 1 usable).
Common prefixes at a glance
| Prefix | Where you meet it |
|---|---|
| /8 | Class A default, huge private block (10.0.0.0/8) |
| /12 | 172.16.0.0/12 — the middle RFC 1918 range |
| /16 | Class B default, one campus or large VLAN group |
| /24 | Class C default, the most common LAN subnet (254 hosts) |
| /25 – /27 | Splitting a /24 into smaller VLANs |
| /30 | Classic point-to-point link (2 usable) |
| /31 | RFC 3021 point-to-point, both ends usable |
| /32 | Single host route, loopback, firewall rule |