The Ultimate Guide to Subnetting: Mastering the Network Boundary

Subnetting is the process of taking a large network, and carving it into smaller, more manageable pieces. Why do we do it?

  • Security: Keeping students off the teacher’s network
  • Performance: Limiting “broadcast traffic” so the network doesn’t get bogged down.
  • Efficiency: Not wasting thousands of IP addresses in one small office.

1. The Foundation: Binary and Bits

To understand subnets, we need to remember that a computer can only see 1s and 0s. An IPv4 address is made of 32 bits, divided into four “octets” (8 bits each).

Each bit in an octet has a specific value. If the bit is “1”, you add its value. If it’s “0”, you don’t.

  • 128 | 64 | 32 | 16 | 8 | 4 | 2 | 1
  • Example: The Binary 11000000 translates to 192 (128+64).

2. The Subnet Mask: The “Stop Sign”

the Subnet Mask tells the computer which part of the IP address is the Network (The street name) and which part is the Host (The house number).

  • 1s in a mask mean “This is the Network.”
  • 0s in a mask mean “This is a Host.”

The Classful Defaults:

  • Class A (/8): 255.0.0.0 – Massive Networks
  • Class B (/16): 255.255.0.0 – Medium networks
  • Class C (/24): 255.255.255.0 – Small Networks (typically your home router)

3. CIDR Notation (The “Slash”)

In the modern IT world, we don’t write out 255.255.255.0 every time. we use CIDR (Classless Inter-Domain Routing).

  • /24 simply means there are 24 ones in the subnet mask.
  • /25 means we “borrowed” one bit from the host side to create two smaller subnets.

4. How to subnet in 4 Steps (The “Magic Number” Method)

if you get questions like: “You have the network 192.168.1.0/26. what are the subnets?”

  1. Find the Magic Number: Subtract the interesting octet of the mask from 256.
    • A /26 mask is 255.255.255.192.
    • 256 – 192 = 64 (64 is your magic number)
  2. Find the Subnet IDs: Start at 0 and add your magic number unti you hit 256.
    • 0, 64, 128, 192.
  3. Find the Broadcast Address: It is always one number less than the next subnet.
    • For the first subnet (0), the broads is 63
  4. Find the Usable Host Range: Everything in between!
    • First usable: .1 | last usable: .62

๐Ÿงช The “Support Associate” Practical Cheat Sheet

Memorize this “Cheat Sheet” for the exam. It shows how many hosts you get for the most common subnets:

CIDRSubnet MaskTotal HostsUsable Hosts (2^n – 2)
/24255.255.255.0256254
/25255.255.255.128128126
/26255.255.255.1926462
/27255.255.255.2243230
/30255.255.255.25242 (Point-to-Point

โš ๏ธ EXAM TIP: Why are we subtracting 2? Because the First Address Is the Network ID and the Last Address Is the Broadcast ID. You can’t assign those to a computer!

What’s Next?

Now that we have tackled the math of IPv4, we need to talk about the “Infinite” future. Tomorrow, We will dive into IPv6 Addressing. We’ll Learn how to shorten those long hexadecimal strings and why you’ll never have to worry about subnetting a /64 !

๐Ÿ“š Sources & Further Reading.

  • CompTIA Network+ N10-009: Objective 1.4 – Given a scenario, configure IPv4 and IPv6 addressing.
  • The Cyber Ledger: TCP/IP Model vs OSI
  • Professor Messer: Seven Second Subnetting

This article is an independent summary of my learning journey. All trademarks and copyrighted materials belong to their respective owners.

Leave a Reply

Your email address will not be published. Required fields are marked *