Subnetting Questions 22
What subnet mask would you use for the 172.31.0.0 network, such that you can get 40 subnets and 840 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 40 Subnets with minimum 840 host on each.
Therefore, we have to borrow 6 bits from the third octet 26 = 64 Subnets
11111111 . 11111111 . 11111100 . 00000000
(27 + 26 + 25 + 24 + 23 + 22 + 21 + 20) . (27 + 26 + 25 + 24 + 23 + 22 + 21 + 20) . (27 + 26 + 25 + 24 + 23 + 22) . 0
So, the subnet mask is 255.255.252.0
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)
= 210 – 2
= 1024 – 2
= 1022 host is available on each network
Class B Subnetting Tutorial
Subscribe to my YouTube channel TECHNICAL TECH for more videos on networking