In this article i will provide the information for you with some of examples of subnet maks of class b network and the valid possible host range of for each subnet mask. In here we will using CIDR (classless interdomain routing) and calculate the subnet masks and the valid hosts.


We will lookup for the cidr value of /16 to /30 and calculate all of those ok and i think i can provide some of the information for you in here and the explanation that how i calculate the subnet mask and host ip range.



We know that the default subnet mask for the class B network is 255.255.0.0 that means we have 16 bit turns on in here and these bits will work for the network bits and we know this also.



We all know that in a subnet the host range we get and we need to subtract two from the
total host number because in a subnetwork host range the first ip address is used for
network address and last ip address of that subnet is used for broadcast address and its pretty simple right.

Now lets calculate the subnet mask and host range of class b network with first
/16 network address class b = /16 subnet mask = 255.255.0.0 number of host of this subnet = 65,534 216-2


for /17 subnet mask = 255.255.128.0 host number for this subnet = 32,766 215-2
as we know that the we trun on one bit in the third octate and value of this is 128



for /18 subnet mask = 255.255.192.0 valid host for this subnet = 16,382 214-2
so where we get 192 yes we get 192 by calculating 128+64 = 192 and i think we all know
about binary math.


for /19 subnet mask = 255.255.224.0 valid hosts = 8,190 213-2


for /20 subnet mask = 255.255.240.0 valid hosts = 4,094 212-2


for /21 subnet mask = 255.255.248.0 valid hosts = 2,046 211-2



for /22 subnet mask = 255.255.252.0 valid hosts = 1,022 210-2


for /23 subnet mask = 255.255.254.0 valid hosts = 510 29-2


for /24 subnet mask = 255.255.255.0 valid hosts = 254 28-2


for /25 subnet mask = 255.255.255.128 valid hosts = 126 27-2



for /26 subnet mask = 255.255.255.192 valid hosts = 62 26-2



for /27 subnet mask = 255.255.255.224 valid hosts = 30 25-2


for /28 subnet mask = 255.255.255.240 valid hosts = 14 24-2



for /29 subnet mask = 255.255.255.248 valid hosts = 6 23-2



for /30 subnet mask = 255.255.255.252 valid hosts = 2 22-2