Classless addressing, also called Classless Inter-Domain Routing (CIDR), is an improved IP addressing system. It increases the effectiveness of IP address allocation because of the absence of class distribution.
The CIDR block comprises two parts. These are as follows:
CIDR IP addresses look as follows:
In the example above,
Requirements for CIDR are defined below:
Given the following IP address, let's find the network and host bits.
The following illustration gives a clear understanding of the aforementioned IP address scheme:
To find the network and host bits, we will use the stated formula, where
This particular case, in which
To find the network address of a particular IP address, apply the AND
operation to the IP address with its subnet mask. The subnet mask is obtained by making all the network bits 1 and host bits 0.
To obtain the network address of the classless IP address 200.56.23.41/28, the following steps are needed:
AND
operation on the converted IP address and its subnet mask. The resultant will be the network address in binary format.Following are the benefits of classless IP addressing: