

Length means the number of left-most contiguous mask bits that are set to one. In CIDR, an IP network is represented by a prefix, which is an IP address and some indication of the length of the mask. It was needed because of the rapid growth of the Internet and growth of the IP routing tables held in the Internet routers.ĬIDR moves way from the traditional IP classes (Class A, Class B, Class C, and so on). Multicast IP addresses have their first octets in the range 224 to 239.Ĭlass E - Reserved for experimental usage and includes the range of addresses with a first octet from 240 to 255.Ĭlassless Interdomain Routing (CIDR) was introduced to improve both address space utilization and routing scalability in the Internet. The first octet range of 192 to 223 is a Class C address.Ĭlass D - Used for multicast. Any address whose first octet is in the range 128 to 191 is a Class B address.Ĭlass C - The first three octets denote the network address, and the last octet is the host portion. Note that 0 is reserved as a part of the default address, and 127 is reserved for internal loopback testing.Ĭlass B - The first two octets denote the network address, and the last two octets are the host portion. Any IP address whose first octet is between 1 and 126 is a Class A address. The following are the classes of IP addresses.Ĭlass A - The first octet denotes the network address, and the last three octets are the host portion. The subnet masks and the process of subnetting will be explained in later steps.Problem: What are the Classes of Subnets & Hosts for structuring IP addresses? If you convert the outcome to a decimal value the network part will look like this : 192.168.90.x, which, in this case, is identical to the first three octets of the IP address.Īll hosts on the same network or segment must have the same subnet mask in order to communicate with each other. This outcome is the network part, which is the standard for a Class C address. Now you see that the outcome shows some ones per octet and some octets are empty. This is repeated for every following bit of the IP and subnet mask, until the chain of ones in the outcome is broken by a zero, like in the following examples ġ92.168.90.24 = 11000000. If the set is one and one, the bit is set to one. If the set is one and zero, the bit is set to zero.

If the set is zero and one, the bit is set to zero. If the set is zero and zero, the bit is left zero. This is accomplished by taking the first bit (beginning with octet 1) of the IP address and the first bit of the subnet mask and checking the outcome of the two bits. ANDing takes the IP address in binary value and uses the binary value of the subnet mask to determine the bits that are left as one or 'active'. The subnet mask filters out the network bits by using ANDing. If no subnetting is applied, the range of IP addresses and the standard subnet mask for the following classes will be:Ĭlass B = 128.0.x.x .x 255.255.0.0Ĭlass C = 192.0.0.x 255.255.255.0

Depending on the amount of necessary hosts or networks and the expected growth of your network, make your choice from these three classes. Class A has little room for networks, but many hosts, Class B is balanced in networks and hosts and Class C has a lot of networks and little room for hosts. When setting up a network, it is important to choose the right IP Class. The ID 127 is used as 'local hosts' or the 'loopback address'. If you look really good, you will see that 127.x.x.x is not a part of the classification of the IP address. In short, for a Class A network the first octet represents the network part, for a Class B the first two octets and for a Class C the first three octets. To accommodate different network sizes, IP address space was originally divided into three sections Class A (0.x.x.x to 126.x.x.x) - 8 bit network prefix or the first octet, Class B (128.0.x.x to .x) - 16 bit network prefix or the first two octets and Class C (192.0.0.x to ) - 24 bit network prefix or the first three octets.
#Class a subnet mask table 32 bit
The first part of each 32 bit number represents the network, and the remaining part refers to the individual computer (x) or the hosts. Look at the following table to view the different classes. The value of the first octet determines the type of class. To understand IP classes, you need to understand that every IP address consists of 4 octets, 8 bits each.
