
IPv4 Subnet Mask Cheat Sheet: A Handy Guide
IPv4 Subnet Mask Cheat Sheet
CIDR Notation | Subnet Mask | Total Subnets | Hosts per Subnet (usable) |
---|---|---|---|
/8 | 255.0.0.0 | 1 | 16,777,214 |
/9 | 255.128.0.0 | 2 | 8,388,606 |
/10 | 255.192.0.0 | 4 | 4,194,302 |
/11 | 255.224.0.0 | 8 | 2,097,150 |
/12 | 255.240.0.0 | 16 | 1,048,574 |
/13 | 255.248.0.0 | 32 | 524,286 |
/14 | 255.252.0.0 | 64 | 262,142 |
/15 | 255.254.0.0 | 128 | 131,070 |
/16 | 255.255.0.0 | 256 | 65,534 |
/17 | 255.255.128.0 | 512 | 32,766 |
/18 | 255.255.192.0 | 1,024 | 16,382 |
/19 | 255.255.224.0 | 2,048 | 8,190 |
/20 | 255.255.240.0 | 4,096 | 4,094 |
/21 | 255.255.248.0 | 8,192 | 2,046 |
/22 | 255.255.252.0 | 16,384 | 1,022 |
/23 | 255.255.254.0 | 32,768 | 510 |
/24 | 255.255.255.0 | 65,536 | 254 |
/25 | 255.255.255.128 | 131,072 | 126 |
/26 | 255.255.255.192 | 262,144 | 62 |
/27 | 255.255.255.224 | 524,288 | 30 |
/28 | 255.255.255.240 | 1,048,576 | 14 |
/29 | 255.255.255.248 | 2,097,152 | 6 |
/30 | 255.255.255.252 | 4,194,304 | 2 |
/31 | 255.255.255.254 | Special Use | Special Use |
/32 | 255.255.255.255 | Single Host | Single Host |
Understanding IPv4 subnet masks is crucial for anyone working in networking or IT. Subnetting divides networks into smaller, more manageable sections, optimizing performance and security. This cheat sheet briefly references IPv4 subnet masks, their corresponding CIDR notation, total subnets, and the number of hosts available in each subnet. There are many of them out there, so I figured I would add one.
What is a Subnet Mask?
A subnet mask is a 32-bit number that separates the network and host portions of an IP address. The mask ensures that devices can determine whether an IP address belongs to the same network or a different one.
For example, an IP address of 192.168.1.1
with a subnet mask of 255.255.255.0
means the network part is 192.168.1
and the host part is .1
.
CIDR Notation Explained
Classless Inter-Domain Routing (CIDR) is a shorthand for subnet masks. Instead of writing 255.255.255.0
, CIDR uses a “/” followed by the number of bits set to 1 in the mask (e.g., /24
).
Key Points to Remember
- Network ID and Broadcast Address: In any subnet, two addresses are reserved:
- The network ID (first address in the range).
- The broadcast address (last address in the range).
- Subnetting Benefits:
- Efficient IP address management.
- Enhanced network security.
- Reduced network traffic congestion.
- Choosing the Right Subnet Mask:
- Use larger masks (e.g., /16 or /8) for networks with many devices.
- Use smaller masks (e.g., /24 or /30) for tightly controlled environments, such as point-to-point links.
Practice Scenarios
- Scenario 1: You need 50 hosts per subnet. Which subnet mask should you use?
- Answer: /26 (255.255.255.192), which provides 62 usable hosts.
- Scenario 2: You’re dividing a /16 network into 64 subnets. What will the new subnet mask be?
- Answer: /22 (255.255.252.0), dividing the address space into 64 subnets.
Final Thoughts
Subnetting may seem daunting at first, but this cheat sheet simplifies the process. By understanding subnet masks and their implications, you can design efficient, scalable, and secure networks. Keep this guide handy for quick reference, and happy subnetting!
j2networks family of siteshttps://j2sw.com
https://startawisp.info
https://indycolo.net
#packetsdownrange #routethelight