Post

Subnetting

Subnetting

🏛️ The Rise and Fall of Classful Addressing — A Legacy of the Internet

🧠 The Birth of Classful Addressing: Internet’s Early Blueprint

Before the digital world exploded with smartphones, cloud platforms, and smart fridges, the internet needed a way to manage its growing user base. Enter: Classful Addressing, a system born in the 1980s that would lay the foundation for early IP allocation.

It was simple. It was structured. But ultimately… it was flawed.


📦 Understanding the Classes

In Classful Addressing, IPv4 addresses were divided into 5 classes based on their first octet:

ClassFirst OctetSubnet MaskAddress RangeMax HostsUse Case
A1–126255.0.0.0 (/8)1.0.0.0 – 126.255.255.255~16 millionLarge organizations
B128–191255.255.0.0 (/16)128.0.0.0 – 191.255.255.255~65,000Medium-sized networks
C192–223255.255.255.0 (/24)192.0.0.0 – 223.255.255.255254Small networks
D224–239N/A224.0.0.0 – 239.255.255.255N/AMulticast
E240–255N/A240.0.0.0 – 255.255.255.255N/AResearch/Testing

🔁 Note: The 127.x.x.x range is reserved for loopback addresses.


❌ Why Classful Addressing Failed

As the internet grew, Classful Addressing became inefficient:

ProblemDescription
IP Address WasteA company needing 300 IPs would get a Class B (~65,000 IPs). Huge waste.
Fixed Block SizesNo flexibility — only /8, /16, /24 were available.
Routing Table BloatEach network needed its own route. Routing tables became massive.
Inefficient AllocationOrganizations held massive unused IP ranges.

💡 Enter CIDR: The Classless Savior

CIDR (Classless Inter-Domain Routing) was introduced in 1993 (RFC 1519) to fix Classful’s problems:

✅ Key Features:

  • Eliminated rigid classes (A, B, C)
  • Uses prefix notation (/13, /21, /30)
  • Supports subnetting and supernetting
  • Enables route summarization

🆚 Classful vs Classless (CIDR)

FeatureClassfulCIDR (Classless)
Address DivisionFixed (A, B, C)Flexible
Subnet MaskDefault per classAny length (e.g., /27)
IP AllocationWastefulEfficient
Routing TablesLarge and slowSummarized/Optimized
Used Today?❌ Deprecated✅ Industry Standard

🧠 TL;DR

  • Classful Addressing was simple but highly inefficient.
  • CIDR brought the flexibility, scalability, and efficiency that the modern internet needs.

🔧 CIDR & Subnetting: A Complete Technical Deep-Dive

Category: Technical / CCNA / Network+ Prep


1️⃣ What is CIDR?

CIDR (Classless Inter-Domain Routing) is the modern method for IP address allocation and routing.

  • Uses prefix notation like /24, /27
  • Efficient allocation (no more wasted IPs)
  • Supports supernetting and subnetting

💡 Example:

192.168.10.0/26/26 means 26 bits are used for the network portion.


2️⃣ What is Subnetting?

Subnetting divides a larger network into smaller, manageable subnets.

🧩 Why Subnet?

  • Logical segmentation
  • Better performance and security
  • Reduced broadcast traffic
  • Optimized IP usage

3️⃣ Subnetting Methods

📏 3.1 Fixed-Length Subnet Masking (FLSM)

  • All subnets are equal in size
  • Same subnet mask used everywhere
  • Simple, ideal for labs

📐 3.2 Variable-Length Subnet Masking (VLSM)

  • Subnets have different sizes
  • Efficient and scalable
  • Used in real-world networks

4️⃣ Subnetting by Borrowing Bits

Borrowed BitsSubnetsHosts/Subnet
12126
2462
3830
41614
5326

⚠️ Subtract 2 hosts per subnet (1 for network, 1 for broadcast)


5️⃣ Subnet Attributes Explained

AttributeDescription
Network AddressAll host bits = 0 (first IP, not usable)
Broadcast AddressAll host bits = 1 (last IP, not usable)
First UsableNetwork Address + 1
Last UsableBroadcast Address – 1
Max Hosts2^h – 2 (h = host bits)

🧪 Example: Subnet 192.168.10.0/26

  • Subnet Mask: 255.255.255.192
  • Total IPs: 64
  • Network Address: 192.168.10.0
  • Broadcast Address: 192.168.10.63
  • First Usable: 192.168.10.1
  • Last Usable: 192.168.10.62
  • Max Hosts: 62

6️⃣ Special Subnet Cases

  • 4 total IPs: 2 usable
  • Used in router-to-router links

🔹 /31 — RFC 3021

  • 2 total IPs: both usable
  • No network/broadcast
  • Efficient for P2P links (supported in Cisco IOS)

🔹 /32 — Host Route

  • 1 IP address (single host)
  • Used for:
    • Loopbacks
    • ACLs
    • Route summarization

7️⃣ VLSM Subnetting: Step-by-Step

Given: 192.168.1.0/24

SubnetRequired HostsCIDRAssigned BlockUsable IPs
A50/26192.168.1.0/26.1 – .62
B20/27192.168.1.64/27.65 – .94
C10/28192.168.1.96/28.97 – .110

🔁 Start with largest subnet and assign downwards.


8️⃣ Subnet Mask Summary Table

CIDRSubnet MaskHosts/Subnet
/24255.255.255.0254
/25255.255.255.128126
/26255.255.255.19262
/27255.255.255.22430
/28255.255.255.24014
/29255.255.255.2486
/30255.255.255.2522
/31255.255.255.2542 (P2P)
/32255.255.255.2551 (Host)

🧠 Final Thoughts

Whether you’re running an enterprise network or prepping for your CCNA exam, understanding CIDR and subnetting is foundational.

🏁 Classful addressing is gone — but its lessons helped shape the efficient, scalable networks we rely on today.


🙌 Connect With Me

GitHub LinkedIn YouTube Gmail

This post is licensed under CC BY 4.0 by the author.