What is CIDR?
Last Updated: Fri, 22 Apr 2011 > Related Articles
Learn about this approach to Internet IP allocation.
Unfortunately, there is no easy, one-line explanation of what CIDR (Classless Inter-Domain Routing) is. To understand the ins and outs of CIDR, you must know some binary math as well as how IPs are routed. We will give a brief explanation of what CIDR is here.
CIDR is an addressing scheme for the Internet which allows for more efficient allocation of IP addresses than the old Class A, B, and C address scheme.
The old Class A, B, and C address scheme provided the following:
- Class A would give a network 16,777,214 host addresses.
- Class B would give a network 65,534 host addresses.
- Class C would give a network 254 host addresses.
Note: A host is any device attached to the network (e.g. a router, a computer, a printer, etc.).
If you needed 70,000 IP addresses, you would receive a Class A network. That would waste a lot of IP addresses. Using this way of Class routing, you could be assigned a Class C network containing 255 IPs. In the past, this was the only way to assign the IPs to a network. What if you only had 5 computers? You'd be left with a lot of unused IPs.
Using CIDR, those 255 IPs can be broken up into multiple smaller blocks allowing more efficient use of the space. For example, that same IP block can be split up into 32 separate IP blocks. Each of the blocks will contain 8 IPs. 2 are unusable - the first IP and the last IP - so a total of 6 IPs can be used for your network. Using CIDR, blocks of addresses can be assigned to networks as small as 8 hosts and as large as over 500,000 hosts. This allows for a much more efficient use of the IPs. If you need 5 IPs for your office, you could receive 8 using CIDR and only allow 3 to go unused. This allows for address assignments that much more closely fit an organization's specific needs.
CIDR specifies an IP address range by the combination of an IP address and its associated network mask. CIDR notation uses the following format - xxx.xxx.xxx.xxx/n - where n is the number of (leftmost) '1' bits in the mask. For example, 192.168.12.0/23 applies the network mask 255.255.254.0 to the 192.168 network, starting at 192.168.12.0. This represents the address range 192.168.12.0 - 192.168.13.255.