The Core Idea
Borrowing Bits to Create Smaller Networks
Subnetting takes a single, larger network block and divides it into multiple smaller sub-networks (subnets), by 'borrowing' bits from what would otherwise be the host portion of an address and reassigning them to the network portion instead. Each additional bit borrowed doubles the number of subnets you can create, while simultaneously halving the number of host addresses available within each resulting subnet.
This matters practically because organizations rarely want one enormous flat network holding every single device — subnetting lets you organize devices into logically and physically separate groups (like one subnet per office floor, or one per department), improving security (isolating traffic between subnets), reducing broadcast traffic (broadcasts stay contained within their own subnet), and making IP address allocation match actual organizational structure.
💡 Memory Trick
Picture a single large open-plan office being divided into smaller, separately-walled rooms. The MORE walls (borrowed bits) you add, the MORE separate rooms (subnets) you end up with — but each individual room necessarily becomes SMALLER, holding fewer desks (host addresses) than the original undivided space could have held per section. You're trading fewer, larger spaces for more, smaller ones — the total office square footage doesn't change, just how it's carved up.
CIDR Notation and Subnet Masks
Reading and Calculating Subnet Sizes
1
CIDR Notation
Written as an IP address followed by a slash and a number, like 192.168.1.0/24 — the number after the slash indicates how many bits (out of 32, for IPv4) are dedicated to the network portion. A /24 means 24 network bits and 8 host bits remaining.
2
Calculating Host Addresses
The number of host bits remaining determines how many total addresses that subnet contains: 2^(host bits). A /24 has 8 host bits, giving 2^8 = 256 total addresses. Two of those addresses are typically reserved (the network address itself, and the broadcast address), leaving 254 usable host addresses.
Example: a /24 subnet has 256 total addresses, 254 of which are usable for actual devices.
3
Subnet Mask Equivalent
CIDR notation and the traditional subnet mask (like 255.255.255.0) represent the exact same information in two different formats — a /24 corresponds to 255.255.255.0, a /16 corresponds to 255.255.0.0, and so on, since each format is simply describing how many leading bits are set to 1 to mark the network portion.
4
Splitting a Network Further
To split a /24 network into 4 smaller equal subnets, you borrow 2 additional bits (since 2² = 4), turning it into four /26 subnets, each containing 2^6 = 64 total addresses (62 usable). Each additional bit borrowed doubles the number of subnets while halving each subnet's size.
Why It's a Practical, Everyday Skill
Matching Subnet Size to Actual Need
Effective subnetting means sizing each subnet appropriately for its actual number of devices — allocating a /24 (254 usable addresses) to a small department that only has 15 devices wastes the vast majority of that block, while allocating a /28 (14 usable addresses) to a department that actually needs 30 devices leaves no room for growth and forces an awkward re-subnetting later.
This is a routinely tested, hands-on skill in networking certifications and real network design work: given a required number of hosts, correctly calculating the smallest subnet size that comfortably fits that requirement (with some room for growth) while minimizing wasted address space across the whole allocated network.
🖥️ Applied Scenario
You're given a single 192.168.1.0/24 network block and need to create four separate subnets — one for each of four office departments, each needing no more than 50 devices.
1
You calculate that borrowing 2 bits from the host portion (turning /24 into /26) creates exactly 2² = 4 subnets, matching the required number of departments.
2
You verify each resulting /26 subnet provides 2^6 = 64 total addresses, or 62 usable host addresses after reserving the network and broadcast addresses — comfortably covering each department's 50-device requirement with some room to grow.
3
You assign the four resulting subnets — 192.168.1.0/26, 192.168.1.64/26, 192.168.1.128/26, and 192.168.1.192/26 — one to each department, isolating their traffic from each other.
4
Conclusion: borrowing exactly 2 bits produced exactly the 4 subnets needed, each appropriately sized for the 50-device requirement, without excessive wasted address space.
📌 Exam Application
Exam questions frequently give you a required number of subnets or hosts and ask you to calculate the correct CIDR prefix length (or subnet mask) needed, and to list the resulting subnet ranges. You may also be asked to convert between CIDR notation and traditional dotted-decimal subnet mask format, or to calculate the number of usable host addresses for a given prefix length.
⚠️ Most Common Subnetting Mistakes
The most common mistake is forgetting to subtract the 2 reserved addresses (network address and broadcast address) when calculating USABLE host addresses — a /24 has 256 total addresses but only 254 usable ones, and this off-by-two error is a frequently tested trap. Another frequent error is confusing which direction bits are being 'borrowed' — borrowing bits from the HOST portion (increasing the prefix length, like /24 to /26) creates MORE, SMALLER subnets, while it's easy to accidentally reverse this and think a larger prefix number means a larger subnet, when it actually means the opposite.
✓ Quick Self-Test
Given a network block and a required number of subnets (or hosts per subnet), can you calculate the correct CIDR prefix length and list the resulting subnet ranges? Can you explain why a /24 subnet provides 254 usable addresses rather than 256?
→
← All Networking Lessons