CIDR Notation for Subnet

CIDR Notation for Subnet

Prev Question Next Question


Which option is the correct CIDR notation for subnet



Click on the arrows to vote for the correct answer

A. B. C. D.


The CIDR notation is a compact representation of an IP address and its associated network mask (also called subnet mask or prefix length). It expresses the number of network bits and the number of host bits in a given IP address, using the slash notation followed by a decimal number.

In this case, the IP address is and the subnet mask is This subnet mask has 30 bits set to 1 and 2 bits set to 0, which means it can accommodate up to 2 hosts per subnet (since the remaining 2 bits are for the host portion).

To determine the CIDR notation, we count the number of bits set to 1 in the subnet mask. In this case, we have: = 11111111.11111111.11111111.11111100

There are 30 bits set to 1, so the CIDR notation is /30.

Therefore, the correct answer is option B, /30.