Mike's PBX Cookbook

CIDR Cheat Sheet

CIDR (Classless Inter-Domain Routing) notation replaces the former address and subnet mask (255.x.x.x) combination.
The /suffix describes how many bits are used for the network mask, the remaining bits are reserved for the host address.
eg: 192.168.1.12/24 = 24 bit network mask (255.255.255.0), therefore 192.168.1.12 is a host in the 192.168.1.0 network.

Potential/Actual hosts: the first address is the network address, the last is the broadcast address, between this are the hosts.
eg: with 192.168.1.0/24, 192.168.1.0 is the network address, and 192.168.1.255 is the broadcast address.

Prefix# of former class C networksPotential HostsActual HostsNetmask# of subnets
/311/12820255.255.255.254128
/301/6442255.255.255.25264
/291/3286255.255.255.24832
/281/161614255.255.255.24016
/271/83230255.255.255.2248
/261/46462255.255.255.1924
/251/2128126255.255.255.1282
/241256254255.255.255.01
/232512510255.255.254.0128
/2241,0241,022255.255.252.064
/2182,0482,046255.255.248.032
/20164,0964,094255.255.240.016
/19328,1928,190255.255.224.08
/186416,38416,382255.255.192.04
/1712832,76832,766255.255.128.02
/16256 = 1 class B network65,53665,534255.255.0.01
/15512 = 2 B networks131,072131,070255.254.0.0128
/141,024 = 4 B networks262,144262,142255.252.0.064
/132,048 = 8 B networks524,288524,286255.248.0.032
/124,096 = 16 B networks1,048,5761,048,574255.240.0.016
/118,192 = 32 B networks2,097,1522,097,150255.224.0.08
/1016,384 = 64 B networks4,194,3044,194,302255.192.0.04
/932,768 = 128 B networks8,388,6088,388,606255.128.0.02
/865,536 = 256 B/1 A network16,777,21616,777,214255.0.0.01
/7131,072 = 2 A networks33,554,43233,554,430254.0.0.0128
/6262,144 = 4 A networks67,108,86467,108,862252.0.0.064
/5524,888 = 8 A networks134,217,728134,217,726248.0.0.032
/41,048,576 = 16 A networks268,435,456268,435,454240.0.0.016
/32,097,152 = 32 A networks536,870,912536,870,910224.0.0.08
/24,194,304 = 64 A networks1,073,741,8241,073,741,822192.0.0.04
/18,388,608 = 128 A networks2,147,483,6482,147,483,646128.0.0.02
/016,777,216 = 256 A networks4,294,967,2964,294,967,294  0.0.0.01