CIDR Notation Explained: How IP Addressing Works
Understand CIDR notation for IP addressing. Learn how the slash number defines network size, replacing classful addressing with flexible subnetting.
10.0.0.0/16ConceptDetailed Explanation
CIDR Notation Explained
CIDR (Classless Inter-Domain Routing) notation is the standard way to express IP addresses and their associated network masks. Introduced in 1993 (RFC 1519), it replaced the rigid classful addressing system (Class A, B, C) with flexible, variable-length subnetting.
The Format
CIDR notation consists of an IP address followed by a slash and a number:
10.0.0.0/16
- 10.0.0.0 — the network (or host) address
- /16 — the prefix length, indicating how many leading bits define the network
What the Prefix Length Means
The number after the slash tells you how many of the 32 bits (in IPv4) are the network portion. The remaining bits are the host portion.
| Prefix | Subnet Mask | Hosts |
|---|---|---|
| /8 | 255.0.0.0 | 16,777,214 |
| /16 | 255.255.0.0 | 65,534 |
| /24 | 255.255.255.0 | 254 |
| /32 | 255.255.255.255 | 1 |
Why CIDR Replaced Classful Addressing
Classful addressing only allowed three fixed sizes: /8 (Class A), /16 (Class B), and /24 (Class C). This was extremely wasteful. An organization needing 500 addresses would receive a Class B (/16) with 65,534 addresses — wasting over 65,000 addresses.
CIDR allows any prefix length from /0 to /32, so networks can be sized precisely to their needs. A /23 gives 510 hosts, a /22 gives 1,022, and so on.
CIDR in Practice
CIDR is used everywhere in modern networking: routing tables, firewall rules, cloud VPC configurations, DNS ACLs, and more. Understanding CIDR is fundamental to working with any IP network, from a home lab to a global enterprise architecture.
Use Case
A cloud architect uses CIDR notation to precisely size VPC subnets, allocating a /22 for a web tier needing 800 addresses instead of wasting a full /16.
Try It — Subnet Calculator
Related Topics
Subnet Mask to CIDR Conversion Table
255.255.255.0/24 · Calculation
/24 Subnet (255.255.255.0)
192.168.1.0/24 · IPv4
/16 Subnet (255.255.0.0)
172.16.0.0/16 · IPv4
Network vs. Host Portion of an IP Address
192.168.1.0/24 · Concept
VLSM: Variable Length Subnet Masking Explained
10.1.0.0/16 · Concept
The /0 Default Route (0.0.0.0/0)
0.0.0.0/0 · IPv4