CIDR Conversion Table
Estimated reading time: 3 minutes
CIDR notation accomplishes the same task as network subnet masking. CIDR defines which IP addresses, and how many host IP addresses will be allowed on the network. The following table details how many networks and IP addresses are allowed with each CIDR length and equivalent subnet masks.
What does CIDR mean?
CIDR stands for Classlesss Inter-Domain Routing. It enables network administrators to group blocks of IP addresses into single routing networks. CIDR accomplishes the same task as traditional subnet masking.
To understand what CIDR notation means, take the IP address 192.168.0.15 and the /24 CIDR, for example. 192.168.0.15 defines the address prefix, and /24 defines the number of bits reserved for the netmask. This means that the first 24 bits of the IP address are reserved for network routing. Thus, writing 192.168.0.15/24 means the same thing as using the 255.255.255.0 subnet mask for the 192.168.0.15 IP address. This means that the last 8 bits of the IP address are reserved for host IP addresses, thus IP addresses 192.168.0.15 through 192.168.0.255 will be allowed as host IP addresses on the network.
CIDR Conversion Table
|CIDR Length||Mask||# of Networks||# of Hosts|
Class A, B, and C Networks:
The above table uses Class A, B, and C to define network types. Network classes define how many addresses are allowed on the network, with class A being the largest and class C being the smallest. Specific size details are defined in the following class definitions:
Class A: Allows 224 host addresses on the network. The starting host address is 0.0.0.0 and the ending address is 127.0.0.0. These networks use the 255.0.0.0 subnet mask, or /8 CIDR notation.
Class B: Allows 216 host addresses on the network. The starting host address is 22.214.171.124 and the ending address is 126.96.36.199. These networks use the 255.255.0.0 subnet mask, or /16 CIDR notation.
Class C: Allows 28 host addresses on the network. The starting host address is 192.0.0.0 and the ending address is 188.8.131.52. These networks use the 255.255.255.0 subnet mask, or /24 CIDR notation.