Subnetting Basics for Beginners: Break Down Networks the Easy Way
Learn how to divide networks into smaller pieces, understand subnet masks, and master subnetting for the CompTIA A+ exam.
March 25, 2026
What Is Subnetting and Why Does It Matter?
Imagine you own a huge apartment building with 256 units. You could let everyone have the same key and share one big hallway, but that would be chaos. Instead, you divide the building into floors, give each floor its own section, and control who has access to what. That's exactly what subnetting does for networks.
Subnetting is the process of dividing one large network into smaller, more manageable sub-networks (subnets). Instead of having all 500 computers on one big network, you might create separate subnets for Sales, Engineering, HR, and Guest Wi-Fi.
Why bother? Because subnetting improves security, reduces network congestion, and makes troubleshooting easier. It's like organizing your garage—everything has its place, and you can find what you need faster.
Advertisement
First, Let's Understand IP Addresses
Before we dive into subnetting, you need to understand how IP addresses work. An IPv4 address has two parts:
IP Address Structure
192.168.1.100
- Network portion: 192.168.1 (identifies which network you're on)
- Host portion: 100 (identifies your specific device on that network)
Think of it like a street address: "123 Main Street" where "Main Street" is the network (everyone on the street shares that) and "123" is your specific house number.
What Is a Subnet Mask?
A subnet mask tells your computer which part of the IP address is the network and which part is the host. It's like drawing a line to separate the street name from the house number.
Common Subnet Masks
- 255.255.255.0 – Most common for home/small networks (256 addresses)
- 255.255.0.0 – Medium networks (65,536 addresses)
- 255.0.0.0 – Large networks (16,777,216 addresses)
Here's how it works: wherever the subnet mask shows 255, that part is the network. Wherever it shows 0, that part is for hosts.
Example Breakdown
Advertisement
Why Do We Need Subnetting?
Let's say you're a network admin at a company with 500 employees. If everyone is on one big network (192.168.1.0/24), you have problems:
Problems with One Big Network
- Security risk – Everyone can see everyone else's traffic. Sales can accidentally access HR files.
- Broadcast storms – Every device hears every broadcast message, slowing down the network.
- Hard to troubleshoot – One bad device can affect the entire network.
- No organization – Can't separate departments or control access.
Benefits of Subnetting
- Improved security – Separate networks for HR, Finance, and Guest Wi-Fi. HR's data stays private.
- Better performance – Smaller networks = less broadcast traffic = faster speeds.
- Easier management – "The Sales subnet is down" is easier to fix than "the entire network is slow."
- Efficient IP usage – Don't waste IP addresses on networks that only need 10 devices.
Real-world example: A school might create subnets for Students, Teachers, Staff, and Guest Wi-Fi. Teachers can access grading systems, but students can't. Guests get internet but can't reach internal resources.
Understanding CIDR Notation (The Slash Numbers)
You've probably seen IP addresses written like 192.168.1.0/24. That /24 is called CIDR notation (Classless Inter-Domain Routing), and it's just a shortcut for the subnet mask.
What Does /24 Mean?
The number after the slash tells you how many bits are used for the network portion. Since an IPv4 address has 32 bits total:
- /24 = 24 bits for network, 8 bits for hosts = 255.255.255.0
- /16 = 16 bits for network, 16 bits for hosts = 255.255.0.0
- /8 = 8 bits for network, 24 bits for hosts = 255.0.0.0
Common CIDR Notations You Should Know
| CIDR | Subnet Mask | Usable Hosts | Common Use |
|---|---|---|---|
| /24 | 255.255.255.0 | 254 | Home/small office |
| /25 | 255.255.255.128 | 126 | Small departments |
| /26 | 255.255.255.192 | 62 | Small subnets |
| /27 | 255.255.255.224 | 30 | Small teams |
| /28 | 255.255.255.240 | 14 | Printers/servers |
| /30 | 255.255.255.252 | 2 | Point-to-point links |
Why not 256 hosts? Because two addresses are always reserved: the network address (first IP) and broadcast address (last IP). So /24 gives you 256 - 2 = 254 usable addresses.
Advertisement
Real-World Subnetting Example
Let's say you work at a company that just got the network 192.168.10.0/24. You need to create three subnets:
- Sales Department: 50 devices
- Engineering: 100 devices
- Guest Wi-Fi: 20 devices
Step-by-Step Solution
Subnet 1: Engineering (needs 100 devices)
Network: 192.168.10.0/25
Subnet Mask: 255.255.255.128
IP Range: 192.168.10.1 - 192.168.10.126
Usable Hosts: 126 devices (enough for 100)
Broadcast: 192.168.10.127
Subnet 2: Sales (needs 50 devices)
Network: 192.168.10.128/26
Subnet Mask: 255.255.255.192
IP Range: 192.168.10.129 - 192.168.10.190
Usable Hosts: 62 devices (enough for 50)
Broadcast: 192.168.10.191
Subnet 3: Guest Wi-Fi (needs 20 devices)
Network: 192.168.10.192/27
Subnet Mask: 255.255.255.224
IP Range: 192.168.10.193 - 192.168.10.222
Usable Hosts: 30 devices (enough for 20)
Broadcast: 192.168.10.223
Notice how we started with one /24 network and broke it into three smaller subnets. Each department is isolated, secure, and has exactly the IP addresses it needs.
Quick Subnetting Tips and Tricks
1. The Powers of 2 Are Your Friend
Subnet sizes are always powers of 2. Memorize these:
2. Remember the Magic Numbers
These subnet mask values show up constantly:
- 128, 192, 224, 240, 248, 252, 254, 255
3. Always Subtract 2 for Usable Hosts
A /24 network has 256 addresses, but you can only use 254 because the first is the network address and the last is the broadcast address.
4. Use Online Subnet Calculators (But Learn the Basics First)
Tools like subnet calculators are great for double-checking your work, but the A+ exam expects you to do basic subnetting math by hand.
What You Need to Know for the CompTIA A+ Exam
The A+ exam won't make you do advanced subnetting, but you need to understand the basics. Here's what to memorize:
Key Facts
- Subnet mask 255.255.255.0 = /24 – Most common for small networks
- Private IP ranges: 10.0.0.0/8, 172.16.0.0/12, 192.168.0.0/16
- CIDR notation: The number after the slash = how many bits are the network portion
- Usable hosts: Total addresses - 2 (network + broadcast)
- Why subnet? Security, performance, organization
- /24 gives you 254 usable hosts
- /30 gives you 2 usable hosts (used for point-to-point links)
Common Exam Questions
- Q: What does /24 mean in CIDR notation?
A: 24 bits for network, 8 bits for hosts (255.255.255.0) - Q: How many usable hosts in a /24 network?
A: 254 (256 - 2) - Q: Why do we subnet networks?
A: Security, performance, better organization - Q: What are the two reserved addresses?
A: Network address (first) and broadcast address (last) - Q: Is 192.168.1.5 on the same subnet as 192.168.1.200 with mask 255.255.255.0?
A: Yes (both are on 192.168.1.0/24)
Final Thoughts
Subnetting can feel overwhelming at first, but once you understand the core concept—dividing networks into smaller pieces—the rest is just math. You're not expected to be a subnetting wizard for the A+ exam, but you should be comfortable with:
- ✅ Understanding what a subnet mask does
- ✅ Recognizing common CIDR notations like /24, /25, /30
- ✅ Knowing why subnetting improves security and performance
- ✅ Calculating usable hosts (total - 2)
Remember: subnetting is like dividing an apartment building into floors. Each floor (subnet) is its own isolated area with its own set of units (IP addresses). Master this concept, and the rest will click into place. 🏢🔢