CIDR (Classless Inter-Domain Routing) notation can be used to represent a range of IP addresses. It has two parts:

  • prefix - Network address (a normal IP address)
  • suffix - number of bits of the network address provided in the prefix

An example cidr block looks like this:

Since ipv4 network address has 32 bits, specifying an address with the suffix 32 (e.g. will describe that exact ip address -

With prefix 24 (, first 24 bits of the address are kept static, while the last 8 bits show the actual range of addresses represented by this CIDR block. In other words, this will represent all the addresses from to

Similarily with prefix 16 (, half of the address is taken as-is, while the other half represents the range ( to

Following the same pattern, suffix /0 will always mean any ip address regardless of the network address provided, so it's usually written like

Status: #🌲