Hello and welcome back.
In our last lesson, you learned how to pinpoint the exact range of usable IP addresses within a given subnet. A key part of that process was identifying the subnet's "block size." You saw how knowing the block size helps you quickly find the network and broadcast addresses, which are the boundaries for your usable IPs.
Today, we're going to zero in on that concept. Our goal is to make the process of finding the block size and the resulting network starting addresses so fast and automatic that you can do it without a calculator. This is a core skill for any network professional, especially on the command line, and it's the bedrock of efficient network design. Mastering this will make you much faster at planning and troubleshooting.
1. The Fastest Way to Find Block Size
For day-to-day network administration, you need a method that's quick and reliable. The most common and fastest way to find the block size is by using the value of the subnet mask in the "interesting octet" (the octet where the subnetting occurs).
The formula is simple:
For example, with a /26 prefix, the subnet mask is 255.255.255.192. The interesting octet is the last one, and its value is 192.
This tells you two critical things:
- Each subnet in this range contains 64 total addresses.
- The network addresses will start at 0 and increment by 64:
0,64,128,192.
This powerful technique is explained in detail in the following reading from a classic CCNA study guide by Todd Lammle.
This guide explains the fast, practical method for subnetting. Focus on the section 'What are the valid subnets?', which introduces the '256 - subnet mask' formula to find the block size.
Read the section 'Subnetting a Class C Address—The Fast Way!'. Pay special attention to the third bullet point, 'What are the valid subnets?', which details the block size calculation.
2. An Alternative View: The "Magic Number"
To solidify your understanding, it helps to see the same problem from a different angle. The "block size" is sometimes called the "magic number." This number is simply the decimal value of the position of the last '1' bit in the subnet mask.
This video provides an excellent visual explanation of this concept. It reinforces the same block sizes we just discussed but explains their origin from a binary perspective.
CCNA - Subnet with the Magic Number
This video from NetITGeeks explains the 'Magic Number' technique, which is another way to think about block sizes. Seeing the binary logic behind the numbers can help cement the concept in your mind.
Watch from 04:49 to 08:19. The presenter demonstrates how the 'magic number' (block size) is determined for /25 (128), /26 (64), and /27 (32) prefixes, and how it's used to find the starting address of each network.
Both methods—the 256 - mask subtraction and the "Magic Number"—give you the same result. Use whichever one clicks best for you. Most people find the subtraction method faster for mental math.
3. Building Instant Recall
The ultimate goal is speed. You should be able to see a CIDR prefix and instantly know its block size. This is a matter of practice and memorization, just like learning the port numbers for common protocols.
The image below shows an example for a /28 mask. Notice how it explicitly points out that the block size is 16, and the network addresses (SNA) are simple multiples of 16.

To help you build this instant association, the Todd Lammle guide provides a fantastic summary table. Your goal should be to memorize this information.
This is the most important part of this lesson for building speed. This section of the Lammle guide summarizes everything you need to know for common prefixes in a concise table.
Read the section titled 'What Do We Know?'. Study this table until you can confidently recall the mask, block size, and number of hosts for each prefix from /25 to /30.
4. Practice: Subnetting in Your Head
Now let's apply this. The skill you're building is to take any IP address and its mask and instantly find which subnet it belongs to.
The Mental Process:
- Look at the prefix (e.g., /27).
- Recall the block size (32).
- Count by the block size in the interesting octet until you pass the IP address's value.
- The number before you passed the IP's value is the starting address of its subnet.
Example: Find the subnet for 192.168.10.140 /27.
- /27 -> Block size is 32.
- Count by 32: 0, 32, 64, 96, 128, 160...
140is between128and160.- Therefore, the network address is
192.168.10.128.
Let's try a few. Determine the network starting address for each.
- Problem 1:
10.5.20.70 /26 - Problem 2:
203.0.113.220 /28 - Problem 3:
198.51.100.250 /29
Solutions:
- Problem 1 (
/26): Block size is 64. Count: 0, 64, 128...70is between 64 and 128. Network:10.5.20.64. - Problem 2 (
/28): Block size is 16. Count: ..., 192, 208, 224...220is between 208 and 224. Network:203.0.113.208. - Problem 3 (
/29): Block size is 8. Count: ..., 240, 248, 256...250is between 248 and 256. Network:198.51.100.248.
5. High-Volume Practice for Speed
As you requested, here is an opportunity for high-volume practice. The best way to make this skill second nature is through repetition. Use the following tool, focusing on quickly identifying the Network ID.
You've used this tool before. This time, your focus should be on speed. For each problem, try to calculate the 'Network ID' in your head as quickly as possible before filling out the other fields.
Go to the website and start practicing. For each problem, look at the CIDR prefix, determine the block size, and then find the Network ID. See how fast you can get. Don't worry about the other fields until you've nailed the Network ID.
Conclusion
In this lesson, you've focused on developing the speed and accuracy needed to work with subnets effectively. This isn't just about passing an exam; it's about being able to plan and analyze networks quickly in a real-world setting.
Key Takeaways:
- You can find the block size of a subnet with the formula
256 - mask_value. - The network starting addresses are simply multiples of the block size (0, 64, 128, etc.).
- Committing the common prefixes (/25 through /30) and their corresponding block sizes to memory is the key to speed.
In our next lesson, we will begin Module 2: Efficient Address Allocation with VLSM. You'll see exactly why the skill you just mastered is so critical. We will start by explaining how Variable Length Subnet Masking (VLSM) minimizes address waste, and you'll use your knowledge of block sizes to choose the perfect-sized subnet for different network segments.