Skip to content
Tech July 24, 2024 6 min read

Subnetting for Beginners: The Only Guide You Need for CCNA

Subnetting questions fail more CCNA candidates than any other topic. This guide makes the math click in 10 minutes.

Subnetting is the single topic that separates people who pass the CCNA from people who do not. It appears in at least 5-8 questions on the exam, often as multi-step problems where one miscalculation cascades into several wrong answers. The good news is that once the core concept clicks, subnetting becomes mechanical arithmetic — and with practice, you can solve any subnet question in under 30 seconds.

The One Concept That Makes Everything Click

An IPv4 address is 32 bits. A subnet mask divides those 32 bits into two groups: network bits (identifying which network) and host bits (identifying which device). A /24 mask means 24 bits for the network and 8 bits for hosts. The number of hosts is always 2 raised to the power of the remaining bits, minus 2 (for network and broadcast addresses). For /24: 2^8 - 2 = 254 usable hosts. For /26: 2^6 - 2 = 62 usable hosts.

Every time you add one bit to the network portion, you halve the number of hosts. /24 gives 254 hosts. /25 gives 126. /26 gives 62. /27 gives 30. /28 gives 14. Memorize this sequence and you can instantly answer "how many hosts?" for any subnet. Going the other direction, every bit you remove from the network portion doubles the hosts: /23 gives 510, /22 gives 1022.

Finding the Network Address in 5 Seconds

The network address is found by ANDing the IP address with the subnet mask. But for exam speed, use this shortcut: find the "interesting octet" (the one where the subnet mask is not 255 or 0), determine the block size (256 minus the mask value in that octet), and find the nearest multiple of the block size that is less than or equal to the IP's value in that octet.

Example: 192.168.1.137/26. The mask is 255.255.255.192. Interesting octet is the fourth. Block size = 256 - 192 = 64. Multiples of 64: 0, 64, 128, 192. Since 137 falls between 128 and 192, the network address is 192.168.1.128. The broadcast is the next multiple minus 1: 192 - 1 = 191, so broadcast is 192.168.1.191. Usable range: .129 to .190. Total time: about 10 seconds with practice.

The Subnetting Cheat Table

For the exam and real-world work, memorize this table: /24 = 256 addresses (254 hosts), /25 = 128 (126), /26 = 64 (62), /27 = 32 (30), /28 = 16 (14), /29 = 8 (6), /30 = 4 (2), /31 = 2 (point-to-point links), /32 = 1 (single host). With this table and the block size method, you can solve any subnetting question on the CCNA in under 30 seconds.

Practice with our subnet calculator — enter any IP and CIDR to instantly see network address, broadcast, host range, and all details. Use it to verify your manual calculations until the process becomes automatic.

🐛 Report a Calculator Error
Found a bug or outdated data? Reports go directly to Kevin and are reviewed personally.