How to read it

The number after the slash is the count of leading bits that identify the network. The remaining bits identify hosts within that network. For an IPv4 /24, the first 24 bits are the network and the last 8 are the host — 256 addresses, of which 254 are usable.

192.168.1.0/24
└─────network─────┘└host┘
  24 bits           8 bits
  Mask: 255.255.255.0
  Hosts: 254 (256 minus network and broadcast)

Common IPv4 prefixes

PrefixMaskWildcardAddressesUsable hosts
/30255.255.255.2520.0.0.342
/29255.255.255.2480.0.0.786
/28255.255.255.2400.0.0.151614
/27255.255.255.2240.0.0.313230
/26255.255.255.1920.0.0.636462
/25255.255.255.1280.0.0.127128126
/24255.255.255.00.0.0.255256254
/23255.255.254.00.0.1.255512510
/16255.255.0.00.0.255.25565,53665,534
/8255.0.0.00.255.255.25516,777,21616,777,214

Why CIDR matters

CIDR allows route aggregation: a router can advertise 10.0.0.0/8 instead of 256 separate /16 routes, dramatically reducing the size of the global routing table. Without CIDR, the BGP tables of the modern Internet would have collapsed under their own weight years ago.