Ever wondered what those weird numbers after IP addresses mean? Like 192.168.1.0/24
or 10.0.0.0/8
?
That’s CIDR notation, and it’s basically how the entire internet stays organized. Let me break it down for you.
Back in the 1990s, the internet was literally running out of IP addresses. Routing tables were becoming massive nightmares. CIDR came to the rescue by:
Without CIDR? The internet would’ve crashed under its own weight years ago.
192.168.1.0/24
breaks down like this:
192.168.1.0
= your network address/24
= how many bits are used for the network partThink of it like your home address:
Every IP address has 32 bits total. With /24
:
That /24
is shorthand for subnet mask 255.255.255.0
:
11111111.11111111.11111111.00000000
1s = network portion, 0s = host portion
Let’s work with 192.168.1.0/24
:
192.168.1.0
192.168.1.255
192.168.1.1
to 192.168.1.254
/8 → 16M+ hosts (like 10.0.0.0/8)
/16 → 65K hosts (like 172.16.0.0/16)
/24 → 254 hosts (like 192.168.1.0/24)
/30 → 2 hosts (perfect for router links)
The pattern? Bigger CIDR number = smaller network. Counter-intuitive but that’s how it works!
192.168.1.0/24
Network: ←──── 24 bits ────→ ← 8 host bits →
Binary: 11000000.10101000.00000001.00000000
Decimal: 192 .168 .1 .0
Got 192.168.1.0/24
? You can split it into smaller networks:
192.168.1.0/26 → 62 hosts (1-62)
192.168.1.64/26 → 62 hosts (65-126)
192.168.1.128/26 → 62 hosts (129-190)
192.168.1.192/26 → 62 hosts (193-254)
Each /26
gives you 62 usable addresses instead of 254.
Mistake #1: Thinking you can assign 192.168.1.0
to a device
Nope! That’s the network address, not a host address.
Mistake #2: Forgetting about broadcast addresses
192.168.1.255
in a /24
network is for broadcast, not devices.
Mistake #3: Getting the math wrong
/24
network = 2⁸ = 256 total addresses, but only 254 are usable.
Mistake #4: Thinking bigger numbers = bigger networks
/30
is actually smaller than /24
. More network bits = fewer host bits.
192.168.1.0/24
/24
, router links get /30
/12
and carve them upCIDR is like the postal system for the internet. Once you get the pattern, it’s pretty straightforward:
IP/number
format/24
networksMaster this and you’ll understand how 90% of networking actually works under the hood.
Q1: What’s the usable range for 10.50.0.0/16
?
A: 10.50.0.1
to 10.50.255.254
Q2: How many /24
subnets can you make from /22
?
A: 4 subnets (2²⁴⁻²² = 4)
Q3: Can you assign 172.16.5.255
to a device in 172.16.5.0/24
?
A: No way - that’s the broadcast address
Got questions? Drop them in the comments. CIDR clicks differently for everyone, so don’t worry if it takes a few tries to sink in!