Fundamentals

What Is CIDR Notation?

A plain-English explanation of CIDR notation — what the slash number means, how to read it, and why it replaced classful addressing.

The anatomy of a CIDR block

CIDR notation combines an IP address with a prefix length, separated by a slash:

192.168.1.0 / 24
Network portion (24 bits) Host portion (8 bits)
  • The IP address (192.168.1.0) is the starting point of the range — the network address.
  • The prefix length (/24) tells you how many of the 32 address bits are fixed — identifying the network.
  • The remaining bits (32 − 24 = 8) are the host bits — they can vary to identify individual hosts.
  • 8 host bits = 2⁸ = 256 total addresses, with 254 usable (the first is the network address, the last is the broadcast).

CIDR vs. classful addressing

Before CIDR, IPv4 addresses were divided into fixed "classes":

Class Range Prefix Hosts Problem
A 1.0.0.0 – 126.255.255.255 /8 16 million Massive — wasteful for all but huge orgs
B 128.0.0.0 – 191.255.255.255 /16 65,534 Still large — most orgs didn't need 65K IPs
C 192.0.0.0 – 223.255.255.255 /24 254 Often too small — needed multiple /24s

CIDR (RFC 1519, 1993) replaced this rigid system with flexible prefix lengths. A network can now be exactly as large as needed: /22 for 1,022 hosts, /26 for 62 hosts, or any size in between. This dramatically reduced IPv4 address waste.

Reading a CIDR block

Given 10.0.0.0/8, you can calculate:

Prefix length/8 (8 bits fixed)
Host bits32 − 8 = 24 bits
Total IPs2²⁴ = 16,777,216
Usable hosts16,777,214
Network address10.0.0.0
Broadcast address10.255.255.255
Subnet mask255.0.0.0

Frequently Asked Questions

What does the slash mean in an IP address?

The slash separates the network address from the prefix length. In 192.168.1.0/24, the /24 means the first 24 bits identify the network, leaving 8 bits for host addresses.

What is the difference between CIDR and a subnet mask?

They represent the same information in different formats. /24 is equivalent to the subnet mask 255.255.255.0. CIDR notation is more compact and is used everywhere today; subnet masks are mostly encountered in older equipment and documentation.

Is /24 the same as 255.255.255.0?

Yes — they are two ways to express the same subnet. /24 means 24 bits are set to 1 in the subnet mask, which in dotted-decimal is 255.255.255.0.