DEV Community

Falade Timilehin
Falade Timilehin

Posted on

CompTIA Network+: IPv4 Network Addressing

If you’re studying for the CompTIA Network+ or working in IT, mastering IPv4 addressing and subnetting is non-negotiable.

Most people struggle with binary math and subnetting calculations, but once you break down the core mechanics, it clicks.

Here is your ultimate cheat sheet to mastering IPv4 for the Network+ exam and real-world network admin tasks. 👇


1. Public vs. Private IP Addresses (RFC 1918)

Private IPs aren't routable on the public web. Devices use NAT (Network Address Translation) at the router to communicate globally.

Memorize these three reserved RFC 1918 ranges for the exam:

  • Class A: 10.0.0.010.255.255.255 (/8 | 255.0.0.0)
  • Class B: 172.16.0.0172.31.255.255 (/12 | 255.240.0.0)
  • Class C: 192.168.0.0192.168.255.255 (/16 | 255.255.0.0)

2. Crucial IPs to Spot instantly

  • Loopback (127.0.0.1): Tests your local TCP/IP stack (ping 127.0.0.1).
  • APIPA (169.254.0.1169.254.255.254): If a device gets a 169.254.x.x address, your DHCP server failed to respond. It can talk locally, but can't reach the internet.

3. Quick Subnet Boundary Formula

Forget slow binary conversions during exam time. Use the Magic Number rule:

  1. Find the Block Size: Subtract the subnet mask's changing octet from 256.
  2. Example: For a /26 mask (255.255.255.192), $256 - 192 =$ 64 (Block size is 64).

  3. Determine Subnets: Count up by your block size (0, 64, 128, 192).

  4. Calculate Usable Hosts: Always use $2^h - 2$ (Subtract 1 for the Network ID and 1 for the Broadcast Address).


4. Subnetting vs. Supernetting

  • Subnetting: Carves a large network into smaller ones to reduce broadcast traffic.
  • Supernetting (Route Summarization): Combines multiple small networks into a single route entry (e.g., merging four /24 subnets into one /22 route) to save router memory and CPU.

💡 Pro-Tip for Exam Day: The moment your tutorial time starts, write out the 8-bit values (128, 64, 32, 16, 8, 4, 2, 1) on your scratch paper!

What’s the one networking concept that took you the longest to master? Let me know in the comments! 💬


CompTIA #NetworkPlus #Networking #ITCertification #Subnetting #Cybersecurity #ITCareers #TechTips

Top comments (0)