CIDR—Classless Inter-Domain Routing—is the notation used to describe an IP network and its size. When you see 192.168.1.0/24, the address identifies the block and /24 says that the first 24 bits are the network portion.
Why the slash number matters?
IPv4 addresses contain 32 bits. A /24 leaves 8 bits for addresses inside the subnet, so the block contains 28 = 256 addresses. A /16 leaves 16 bits and contains 65,536 addresses. A /30 leaves only 2 host bits and contains four total addresses.
CIDR and subnet masks are two ways to write the same boundary
| CIDR | Subnet mask | Total IPv4 addresses |
|---|---|---|
| /8 | 255.0.0.0 | 16,777,216 |
| /16 | 255.255.0.0 | 65,536 |
| /24 | 255.255.255.0 | 256 |
| /25 | 255.255.255.128 | 128 |
| /26 | 255.255.255.192 | 64 |
| /27 | 255.255.255.224 | 32 |
| /28 | 255.255.255.240 | 16 |
| /29 | 255.255.255.248 | 8 |
| /30 | 255.255.255.252 | 4 |
Network, broadcast, and host addresses
For a conventional IPv4 subnet such as 192.168.1.0/24, 192.168.1.0 identifies the network and 192.168.1.255 is the broadcast address. The addresses between them are normally usable by hosts. That is why a /24 is often described as having 254 usable host addresses rather than 256.
Private address space is larger than one /24
The private IPv4 ranges defined for internal networks are 10.0.0.0/8, 172.16.0.0/12, and 192.168.0.0/16. Individual home networks commonly carve a smaller subnet—often a /24—out of one of those ranges. For example, 192.168.1.0/24 is one subnet inside the broader private 192.168.0.0/16 block.
Why home users encounter CIDR?
You will see it when configuring VPNs, firewall rules, VLANs, static routes, cloud networks, and DHCP scopes. It answers “which addresses belong to this network?” in a compact way.
Planning example
Suppose you want separate networks for normal devices and IoT equipment. You might use 192.168.10.0/24 for the main LAN and 192.168.20.0/24 for IoT. The different network portions make the separation clear, but routing and firewall rules still determine whether the two networks are allowed to communicate.
Use the Subnet Calculator when you want the exact network, broadcast, mask, and range for a prefix.
Subnetting without memorizing every mask
A /24 leaves 8 host bits (256 addresses), /25 leaves 7 (128), /26 leaves 6 (64), and each additional prefix bit halves the block. For practical planning, calculate the network/broadcast and then verify that DHCP/static ranges fit without overlap.
Route summarization and VLSM
CIDR also lets networks use variable prefix lengths and summarize contiguous routes. The same notation that describes a home /24 scales to provider and enterprise routing. A subnet calculator helps with arithmetic; routing design still requires topology and policy.
IPv6 note
IPv6 also uses prefix lengths, but there is no IPv4-style broadcast address and normal LANs commonly use /64. Do not transfer every IPv4 subnetting assumption directly to IPv6.
Video walkthrough for What Is CIDR? A Plain-English Guide to Prefix Lengths and IPv4 Subnets
A visual foundation for network and host bits, masks, and subnetting. Use the calculator for exact arithmetic after understanding the concept.
Subnet Mask Explained — PowerCert Animated Videos. Watch on YouTube