2 Now convert host ID into binary then we can write IP 18.104.22.168 like this given below.
197.10.10.00000000, since host id is zero so eight times zeros for binary.
3 Find the Maximum number of IP required in which network area, So from the figure first 4th network area required 40 PC, 5th network required only two IP for router to router connection, Hence 4th network required maximum 40 IP.
Hence write down the equation like this
2ⁿ -2 ≥ Maximum number of IP required in given network ( Here 2ⁿ -2 ≥ 40 )
There are two method for subnetting, First is according to host requirement and second is according to network requirement. Now we are doing according to host requirement, According to which network how many PC requirement that IP requirement rather than how many network requirement. So it is clear that we are doing according to host requirement.
Now 2ⁿ -2 ≥ 40 this mathematical condition must satisfy.
2ⁿ → represent binary number of bits available in host, Minus 2 because first network ID and last network ID are reserved for Network and broadcast respectively.
Now put n=1,2 ,3 ,4 ……… and check for which value of n the above equation 2ⁿ -2 ≥ 40 satisfy.
Suppose if we put n=1 then 2¹ -2 ≥ 40 0r 0 ≥ 40 which does not satisfy
if we put n=2 then 2² -2 ≥ 40 or 2 ≥ 40 which does not satisfy and so on check for condition
Here if we put n = 6 then 2⁶ -2 ≥ 40 or 64-2 ≥ 40 or 62 ≥ 40 ( this condition satisfy ).
So final value of n =6 satisfy
4 Write down the taken IP 197.10.10.00000000 (written host part in binary ).
Now n=6 so count 6 bits from right side in host part binary for host and give remaining two bits to network this is important point.
Means here 6 bits is reserved for host and 2 bits given to network.
In previous post we have already discussed host bits are represented by 0 and Network bits are represented by 1. You can refer the previous post link given above.
Hence we can write now IP 22.214.171.12400000 in place of network bits 1,1 and in place of host bits 0,0.
Now convert the binary bits to decimal value, So we have already learn in previous post binary to decimal conversion.
Hence decimal value of 11000000 = 2⁷ +2⁶ +0+0+0+0+0+0 = 128+64 = 192
So decimal value IP 126.96.36.199 Here subnetting is done.
Hence subnetting is binary bits given from host to network is called subnetting .
Now for subnet mask we know that the IP 188.8.131.52/24 is class C IP address hence by default its subnet mask is 255.255.255.0 for Class C. But for IP after subnettting done
IP address 184.108.40.206
5 Write down the by default subnet mask and at place of 0 put the decimal value after subnetting done so IP address 220.127.116.11 subnet mask will be 255.255.255.192 .
How to make Subnet ?
6 Now here start from first network ID 18.104.22.168/26 why 26 ? because two host bits added in network bits.
Hence Subnet ID 22.214.171.124/26 ( Subnet ID -1 )
Now for Subnet ID -2 you have to pick binary bits first 1 from left see below
11000000 and calculate the decimal value of this 1 its value is 64 we have seen above .
Hence 126.96.36.199/26 ( Subnet ID -2 )
again 188.8.131.52/26 ( Subnet ID -3 )
again 184.108.40.206/26 ( Subnet ID -4 )
Now we can not make more subnet ID in this network because 192 +64 = 256 which is not possible maximum value is 255.
If you are thinking making 10 to 11 like 220.127.116.11 this is also not possible because here network ID is changed because in Class C three octet reserved for network.
Hence we can’t make more subnet ID in this network, Only four subnet ID are possible mentioned above.
From first figure we were suppose to make five different Network by doing subnetting. But only four subnet ID made taking Class C Network ID.
So it is clear that taking Class C network ID we can’t make five different network only four network are possible.
But taking Class B Network ID we will be able to make five different network that will be Subnet ID -1, Subnet ID -2, Subnet ID -3 …… and so on .
Here we have learn how to do subnetting ?. I hope you have enjoyed to learn subnetting and now your concept and doubt is clear about subnetting.
We will continue in next post .If you like comment and share, Thanks for reading and sharing keep learning more and more.
Dated 27th Oct 2018