Understanding the relationship between an IP address and its subnet mask is fundamental for anyone managing a network, studying for certifications like CCNA or CompTIA Network+, or troubleshooting connectivity issues. A well-organized IP address subnet mask cheat sheet serves as an indispensable reference, translating complex binary math into instantly readable values for CIDR notation, wildcard masks, usable host counts, and block sizes. This guide provides a comprehensive breakdown of IPv4 subnetting essentials, designed to be bookmarked and referenced whenever you need to calculate network boundaries quickly.
Why Subnetting Matters
Before diving into the tables, it helps to understand why we subnet. A single large network (a flat network) creates excessive broadcast traffic, security vulnerabilities, and management headaches. Subnetting divides a large network into smaller, logical segments called subnets.
This segmentation achieves three critical goals:
- Performance: Reduces broadcast domains, lowering CPU overhead on hosts.
- Security: Allows administrators to apply Access Control Lists (ACLs) and firewall rules between departments or device types.
- Efficiency: Prevents wasting public or private IP addresses by allocating only the necessary host space per segment.
The subnet mask is the tool that defines where the network portion of an address ends and the host portion begins. Mastering the cheat sheet means mastering the boundary line.
The Core Reference: IPv4 Subnet Cheat Sheet
The following table is the heart of any subnetting reference. It covers the standard Class A, B, and C boundaries alongside the Variable Length Subnet Mask (VLSM) values used in modern Classless Inter-Domain Routing (CIDR).
| CIDR Notation | Subnet Mask (Dotted Decimal) | Wildcard Mask | Block Size (Magic Number) | Total IPs | Usable Hosts | Classful Context |
|---|---|---|---|---|---|---|
| /8 | 255.0.0.Practically speaking, 255. Think about it: 254. And 0 | 0. 255 | 4,096 | 4,096 | 4,094 | |
| /21 | 255.15.That's why 255 | 1,048,576 | 1,048,576 | 1,048,574 | ||
| /13 | 255. 255.255.255.15 | 16 | 16 | 14 | ||
| /29 | 255.That's why 224. So naturally, 0 | 0. 240.Day to day, 0. Because of that, 255. 224.0.0 | 0.0 | 0.In real terms, 255 | 16,777,216 | 16,777,216 |
| /9 | 255. In real terms, 0 | 0. On top of that, 0. Because of that, 0. 0.0 | 0.And 254. 128 | 0.255 | 131,072 | 131,072 |
| /16 | 255.In real terms, 0 | 0. That said, 0. Practically speaking, 255 | 512 | 512 | 510 | |
| /24 | 255. That's why 7. 15.192.128.Worth adding: 0. 0.255.0.1.252.255 | 8,388,608 | 8,388,608 | 8,388,606 | ||
| /10 | 255.0.0 | 0.1.And 0 | 0. Think about it: 192 | 0. 255.This leads to 255. And 255. 0 | 0.On top of that, 255. 0 | 0.224 |
| /17 | 255.But 0. On top of that, 255 | 32,768 | 32,768 | 32,766 | ||
| /18 | 255. 255.248 | 0.255.In real terms, 0. Now, 255. 0.And 0. 192.248.That's why 240 | 0. Plus, 255. But 0. 0.255 | 524,288 | 524,288 | 524,286 |
| /14 | 255.0.7.0 | 0.255.0 | 0.Now, 255 | 256 | 256 | 254 |
| /25 | 255. Consider this: 252. 0.Worth adding: 255 | 16,384 | 16,384 | 16,382 | ||
| /19 | 255. 0.255.Now, 0. 63.0 | 0.255.255.Even so, 0. Now, 255. Plus, 255. 127.0.And 127 | 128 | 128 | 126 | |
| /26 | 255. Here's the thing — 255 | 4,194,304 | 4,194,304 | 4,194,302 | ||
| /11 | 255. So 31 | 32 | 32 | 30 | ||
| /28 | 255. But 0 | 0. 255.And 255. So 63 | 64 | 64 | 62 | |
| /27 | 255. 255.248.255.Here's the thing — 3. 0 | 0.So 0. Consider this: 255. 255 | 2,048 | 2,048 | 2,046 | |
| /22 | 255.Plus, 3. 31.63.And 255 | 1,024 | 1,024 | 1,022 | ||
| /23 | 255. Worth adding: 0 | 0. On top of that, 255. 0.Because of that, 255. Because of that, 128. 240.Because of that, 255 | 8,192 | 8,192 | 8,190 | |
| /20 | 255. Consider this: 255 | 262,144 | 262,144 | 262,142 | ||
| /15 | 255. Plus, 255 | 2,097,152 | 2,097,152 | 2,097,150 | ||
| /12 | 255. 0. |