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^72^62^52^42^32^22^12^0
1286432168421

Example: How does the computer see 192? It turns on the 128 bit and the 64 bit. (128 + 64 = 192). Binary: 11000000.

A visualization of the IPv4 structure
A visualization of the IPv4 structure

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.

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.

🚀 Ultimate Study Guide

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.

500+ Practice Scenarios
Detailed Explanations
Instant PDF Access
Get The Guide Now

You MUST memorize these ranges for the exam:

ClassPrivate RangeUsage
Class A10.0.0.0 to 10.255.255.255Large Enterprises / Data Centers
Class B172.16.0.0 to 172.31.255.255AWS/Cloud, Mid-size companies
Class C192.168.0.0 to 192.168.255.255Home 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.

A diagram showing the NAT boundary
A diagram showing the NAT boundary

Special Addresses to Know

Aside from RFC 1918, there are two other special ranges you must identify.

  1. Loopback (127.0.0.0/8): Used for testing the protocol stack on the local device. ping 127.0.0.1 tests if your own Network Card is working. These packets never leave the computer.
  2. 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:

  1. Network Portion: Like the “Street Name.”
  2. Host Portion: Like the “House Number.”

How do we know where the Street Name ends and the House Number begins? The Subnet Mask.

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.

A visual breakdown of the Subnet Mask "ANDing" process
A visual breakdown of the Subnet Mask “ANDing” process

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.

A flowchart titled "The Magic Number Method
A flowchart titled “The Magic Number Method
🚀 Ultimate Study Guide

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.

500+ Practice Scenarios
Detailed Explanations
Instant PDF Access
Get The Guide Now

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:

Summary: The Power of Math

To pass Topic 1.6 and 1.7, remember:

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.

🚀 CCNA Early Access
Want the next CCNA lessons before everyone else?

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.

🔓 Get Early Access 📚 All CCNA Posts

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