IP Classes


Internet Protocol

The Internet Protocol (IP) is a fundamental protocol in the Intenet. An IP address is a unique number to identify a computer or any other device on the Internet. It allows a device to communicate with other devices over an IP-based network like the Internet. IPv4 and IPv6 are the two versions of IP addresses used on the Internet.

The original IPv4 protocol is used on both the Internet and many corporate networks. These are actually 32-bit binary numbers with two subaddresses. IPv4 is composed of two parts in which the first numbers specify the network part and the latter number specify the specific host. There are five classes of available IP ranges in IPv4 which are mentioned below.

IPv6 is the newer version of the IP protocol. It uses 128-bit addresses of data to store an address. The size of IPv6’s address space is 340 Duodecillion which is much larger than IPv4.


TCP/IP defines five classes of IP in IPv4 addresses. Each class has a range of valid IP addresses. The following are the five classes of IP addresses

1)Class A
2)Class B
3)Class C
4)Class D
5)Class E

Class A:
Class A IPs are ranging from to But is used as a loopback address so the range is considered up to Basically, it is used for LAN purposes. The default subnet mask of Class A is It is nothing but Class A can have 126 networks and 16777214 hosts.

Class B:
Class B IPs are ranging from to Class B IPs are used for MAN purposes. Class B can have 65534 hosts. The default subnet mask of class B is Out of 32 bits, 16 bits are used as network bits and the remaining 16 are used as host bits.

Class C:
Class C IPs are ranging from to It is used for WAN purposes. The default subnet mask is that means Class C can have 254 hosts. Out of 32 bits, 24 bits are considered as network bits and 8 bits are used as host bits.

Class D:
Class D IP ranges between to Class D does not have the subnet mask. It is reserved for multicasting purposes.

Class E:
Class E IP ranges from to The class E also does not have the subnet mask and it is used for the research and development purposes.

1)Network IDs:
2)Broadcast IDs:


Please enter your comment!
Please enter your name here