Welcome to Day 5 of your CCNA journey.
This is it. This is the day that separates the hobbyists from the engineers.
Up until now, we have discussed hardware (Routers, Switches) and concepts (TCP vs. UDP). Today, we do math. IPv4 Addressing and Subnetting is the language of the internet. It is not enough to simply “understand” it; you must be fluent in it. You must be able to look at an IP address like 192.168.10.33/27 and instantly know its Network ID and Broadcast ID without using a calculator.
Warning: The CCNA exam does not allow calculators. You have to do this in your head or on a whiteboard.
This guide covers CCNA Exam Topic 1.6 (Configure and verify IPv4 addressing and subnetting) and Topic 1.7 (Private vs. Public IP). We will break down the binary structure, memorize the RFC 1918 private ranges, and I will teach you the “Magic Number” method to solve subnetting questions in under 10 seconds.
The Anatomy of an IPv4 Address
An IPv4 address is a 32-bit binary number. Because humans are bad at reading 32 zeros and ones, we divide it into 4 octets (groups of 8 bits) and convert them to Decimal. This is called Dotted-Decimal Notation.
The Binary Conversion Chart
To survive the CCNA, you must memorize the powers of 2.
| 2^7 | 2^6 | 2^5 | 2^4 | 2^3 | 2^2 | 2^1 | 2^0 |
|---|---|---|---|---|---|---|---|
| 128 | 64 | 32 | 16 | 8 | 4 | 2 | 1 |
Example: How does the computer see 192? It turns on the 128 bit and the 64 bit. (128 + 64 = 192). Binary: 11000000.

Public vs. Private IPs (RFC 1918)
There are approximately 4.3 billion IPv4 addresses. The world ran out of them years ago. To solve this, we use NAT (Network Address Translation) and Private IP Addresses.
Public IP Addresses
These are routable on the internet. They must be unique globally. You lease these from an ISP.
- Example: The IP address of Google’s server (8.8.8.8).
Private IP Addresses (RFC 1918)
These are NOT routable on the internet. They are free to use within your home or office (LAN). Your router translates them to a single Public IP before sending traffic to the internet.
Ace the CCNA 200-301 Exam
Stop memorizing and start understanding. Get 500 realistic, scenario-based questions designed to test your skills and boost your confidence before test day.
You MUST memorize these ranges for the exam:
| Class | Private Range | Usage |
|---|---|---|
| Class A | 10.0.0.0 to 10.255.255.255 | Large Enterprises / Data Centers |
| Class B | 172.16.0.0 to 172.31.255.255 | AWS/Cloud, Mid-size companies |
| Class C | 192.168.0.0 to 192.168.255.255 | Home Routers, Small Office |
Exam Tip: If you see a question asking “Which of these addresses can communicate over the internet?”, eliminate any address starting with 10, 192.168, or 172.16-31 immediately.

Special Addresses to Know
Aside from RFC 1918, there are two other special ranges you must identify.
- Loopback (
127.0.0.0/8): Used for testing the protocol stack on the local device.ping 127.0.0.1tests if your own Network Card is working. These packets never leave the computer. - APIPA / Link-Local (
169.254.x.x): “Automatic Private IP Addressing.” If your computer is set to DHCP (automatic) but cannot find a DHCP server, Windows assigns itself a random 169.254 address.- Troubleshooting Tip: If you see a 169.254 address, it means your DHCP server is down or unreachable.
The Subnet Mask and CIDR
An IP address is actually two addresses in one:
- Network Portion: Like the “Street Name.”
- Host Portion: Like the “House Number.”
How do we know where the Street Name ends and the House Number begins? The Subnet Mask.
- A 1 in the mask means “This bit belongs to the Network.”
- A 0 in the mask means “This bit belongs to the Host.”
CIDR Notation (Classless Inter-Domain Routing)
Instead of writing 255.255.255.0, we use a slash notation (/24) to indicate how many bits are turned on.
/8=255.0.0.0(Class A default)/16=255.255.0.0(Class B default)/24=255.255.255.0(Class C default)

Subnetting: The “Magic Number” Method
This is the skill you need to practice. The exam will give you an IP like 192.168.10.33/27 and ask: “What is the Network ID? What is the Broadcast ID?”
Here is the fastest way to solve it (The Magic Number Method).
Scenario: Subnet 192.168.10.0 with a /27 mask.
Step 1: Convert CIDR to Decimal /27 means 27 ones. 11111111.11111111.11111111.11100000 Octet 1: 255 Octet 2: 255 Octet 3: 255 Octet 4: 224 (128+64+32) Mask: 255.255.255.224
Step 2: Find the Magic Number (Block Size) Take the “Interesting Octet” (the one that isn’t 0 or 255). That’s the 4th octet (224). Subtract it from 256. 256 – 224 = 32 Your Magic Number is 32. This is your Block Size.
Step 3: Write out the Multiples Count by 32 until you pass your target IP. 0, 32, 64, 96…
Step 4: Answer the Question The Exam IP was .33.
.33falls in the block between32and64.- Network ID: The bottom of the block (
192.168.10.32). - Broadcast ID: The number right before the next block starts (
192.168.10.63). - Usable Range: Network + 1 to Broadcast – 1 (
.33to.62).

Ace the CCNA 200-301 Exam
Stop memorizing and start understanding. Get 500 realistic, scenario-based questions designed to test your skills and boost your confidence before test day.
Interactive Resource: The CCNA Subnetting Cheat Sheet
Right-click and save this text block. Print it. Memorize it. These are the values for the 4th Octet (Class C subnetting), which covers 90% of exam questions.
| CIDR | Mask (.x) | Magic # (Block) | Hosts (Usable) ||------|-----------|-----------------|----------------|| /25 | .128 | 128 | 126 || /26 | .192 | 64 | 62 || /27 | .224 | 32 | 30 || /28 | .240 | 16 | 14 || /29 | .248 | 8 | 6 || /30 | .252 | 4 | 2 (P2P Links) || /31 | .254 | 2 | 0 (Special) || /32 | .255 | 1 | 1 (Host Route) |
Key Patterns:
/30is used for point-to-point links (Router to Router) because it only gives 2 usable IPs./32is a specific host (used in ACLs).
Summary: The Power of Math
To pass Topic 1.6 and 1.7, remember:
- RFC 1918: 10.x.x.x, 172.16-31.x.x, 192.168.x.x.
- APIPA: 169.254.x.x (DHCP failed).
- Magic Number: 256 – Mask.
Ready for Day 6? Now that we know IPv4, we have to deal with the future. The world is running out of IPv4 addresses, and the solution is complex. Tomorrow, we dive into the hexadecimal world of IPv6 Addressing.
New CCNA content is being published regularly, with early access for supporters on Buy Me a Coffee. Get upcoming lessons ahead of the public release and follow the complete CCNA series.
More CCNA lessons are coming soon. Support the series and get access as new posts go live.
This post first appeared at - The CyberSec Guru