CIDR (Classless Inter-Domain Routing) notation, defined in RFC 4632, represents IP address ranges as a base address followed by a prefix length (e.g., 192.168.1.0/24). The prefix length indicates how many bits of the address identify the network — a /24 network has 256 addresses (254 usable hosts), while a /16 has 65,536. CIDR replaced the older classful addressing system (Class A/B/C) in 1993 and is fundamental to IP subnetting, routing, and firewall configuration.
How does CIDR notation work?
CIDR replaced the old classful addressing system (Class A/B/C) in 1993. Instead of fixed /8, /16, /24 boundaries, CIDR allows any prefix length from /0 to /32, enabling efficient IP address allocation. A CIDR block like 10.0.0.0/16 means the first 16 bits identify the network, and the remaining 16 bits identify individual hosts within it.
What are the most common subnet sizes?
| CIDR | Subnet Mask | Usable Hosts | Typical Use |
|---|---|---|---|
| /32 | 255.255.255.255 | 1 | Single host, loopback |
| /30 | 255.255.255.252 | 2 | Point-to-point links |
| /24 | 255.255.255.0 | 254 | Small office, home network |
| /16 | 255.255.0.0 | 65,534 | Cloud VPC, campus network |
| /8 | 255.0.0.0 | 16,777,214 | Large enterprise (10.0.0.0/8) |
How does subnetting differ for cloud providers?
Cloud platforms like AWS, GCP, and Azure reserve additional addresses within each subnet. AWS reserves 5 addresses per subnet (network, broadcast, DNS, future use, and gateway). When planning cloud VPCs, use this calculator to determine available hosts, then subtract the provider's reserved addresses.
Need to debug network patterns? Try our Regex Tester for matching IP address formats, or our Base64 Encoder for encoding network credentials.