CIDR Notation

Configuring the CIDR value for a network address, as used, for example, on Filezilla server for IP address filtering.

Filezilla server requires, for the IPO address filtering, that one or more entries be added based upon the CIDR notation, for example: 192.168.1.123/16

Where to the left of the slash is the IP address range and to the right is the mask which determines which numbers are changeable.

8 bits are required to define each of the 4 numbers making up the IP address. Enabling each number to be 0 to 255.

The mask is derived from the number of bits used, counting from the left. This is used to define the bits which will be static. A lower mask value will allow a higher number of IP addresses through the fiter.

I had found that for those accessing the server the first set of octal numbers were static. The other three sets were the ones which were changing.

For our network number

IP Address:192.168.1.123
Netmask: 255.0.0.0

In binary: 11111111.00000000.00000000.00000000

This gives the CIDR value of 192.0.0.0/8

The table below shows the CIDR notation, the number of addresses passed and the network mask

CIDR notationAddresses PassedNet maskComments
/04,294,967,2960.0.0.0Every address
/12,147,483,648128.0.0.0
/21,073,741,824192.0.0.0
/3536,870,912224.0.0.0
/4268,435,456240.0.0.0
/5134,217,728248.0.0.0
/667,108,864252.0.0.0
/733,554,432254.0.0.0
/816,777,214255.0.0.0
/98,388,608255.128.0.0
/104,194,304255.192.0.0
/112,097,152255.224.0.0
/121,048,576255.240.0.0
/13524,288255.248.0.0
/14262,144255.252.0.0
/15131.072255.254.0.0
/1665,536255.255.0.0
/1732,768255.255.128.0
/1816,384255.255.192.0
/198,192255.255.224.0
/204,096255.255.240.0
/212,048255.255.248.0
/221024255.255.252.0
/23512255.255.254.0
/24256255.255.255.0
/25128255.255.255.128
/2664255.255.255.192
/2732255.255.255.224
/2816255.255.255.240
/298255.255.255.248
/304255.255.255.252
/312255.255.255.254
/321255.255.255.255