3 minutes
Subnetting — How I Finally Got It to Stick
So subnetting. The thing that makes people quit CCNA prep early.
I avoided it for longer than I should have. Not because I didn’t understand the concept, I kind of got it, but when it came to actually working through questions I was slow and uncertain and kept second guessing myself. I was using subnet calculators to check my work and that was the problem, I wasn’t actually learning anything I was just verifying answers.
Eventually I just sat down with a notebook and worked through it until it stopped being scary. Here’s what actually helped.
Why calculators are the enemy (at first)
When you use a calculator you skip the part where your brain builds the model. You type in an address, get back a bunch of numbers, move on. Does nothing for you in an exam or in a real conversation with someone.
The goal with CCNA is to work through subnetting problems in your head, or at most on rough paper, at a reasonable pace. That means you need the patterns to be automatic.
The thing that made it click
Subnetting is just dividing a block of addresses into equal chunks. The prefix length tells you the chunk size. That’s it.
Once you have this table in your head the rest follows:
| CIDR | Subnet Mask | Block Size | Usable Hosts |
|---|---|---|---|
| /24 | 255.255.255.0 | 256 | 254 |
| /25 | 255.255.255.128 | 128 | 126 |
| /26 | 255.255.255.192 | 64 | 62 |
| /27 | 255.255.255.224 | 32 | 30 |
| /28 | 255.255.255.240 | 16 | 14 |
| /29 | 255.255.255.248 | 8 | 6 |
| /30 | 255.255.255.252 | 4 | 2 |
Each row the block size halves. Usable hosts is always block size minus 2 (one for the network address, one for broadcast).
Working through an example
Say you get given 192.168.10.0/27 and you need to list the subnets.
Block size for /27 is 32. So you just count up in 32s from .0:
- .0 to .31 — first subnet, network .0, broadcast .31
- .32 to .63 — second subnet
- .64 to .95 — third subnet
Keep going until you hit 256. You end up with 8 subnets total. You can work that out in your head in about 20 seconds once the block sizes are automatic.
Where I’m at now
Can get through most subnetting questions without reaching for anything. Still slow on some of the nastier ones. The next thing I need to get solid is VLSM — that’s where you’re carving up address space into different sized subnets to avoid wasting addresses, which is what actually happens in real networks.
Going to do a separate write-up on that once I’ve got enough reps in to explain it properly.