Subnetting Questions 26
What subnet mask would you use for the 172.18.0.0 network, such that you can get 330 subnets and 120 hosts per subnet?
Solution
Hence, the IP Address starts from 172 it indicates it is a Class B Address. By default, in Class B Address 16 bits are reserved for the network and 16 bits are reserved for the host.
A/Q we need 330 Subnets with minimum 120 host on each.
Therefore, we have to borrow 9 bits from the third and fourth octet 29 = 512 Subnets
11111111 . 11111111 . 11111111 . 10000000
(27 + 26 + 25 + 24 + 23 + 22 + 21 + 20) . (27 + 26 + 25 + 24 + 23 + 22 + 21 + 20) . (27 + 26 + 25 + 24 + 23 + 22 + 21 + 20) . (27)
So, the subnet mask is 255.255.255.128
Additional Information
Let’s count the number of host on each network
2n – 2 (n is the number of host bits, subsctrated 2 because on every network 1 bit is reserved for the Network ID and 1 bit is reserved for the broadcast ID)
= 27 – 2
= 128 – 2
= 126 host is available on each network