Compute the subnet mask, number of subnets and number of hosts in each subnet, in each of the given scenarios.
Required Number of Networks: 80
Minimum Number of Hosts: 3000
Network Address: 10.0.0.0
Required Number of Networks: 20
Minimum Number of Hosts: 800
Network Address: 220.127.116.11
Required Number of Networks: 5
Minimum Number of Hosts: 25
Network Address: 18.104.22.168
If we breakup the 32 bit IP address as (net : subnet : host), then
number of hosts in each subnet = (2 ^ number_of_host_bits) - 2 , as host numbers consisting of all 0 and all 1 bits are reserved.
Similar restriction is also applied to subnets by older standards, however recent standards do allow use of all 0 bits and all 1 bits subnets. Hence,
number of subnets = (2 ^ number_of_subnet_bits) , as per recent standards.
number of subnets = (2 ^ number_of_subnet_bits) - 2 , as per older standards.
This answer is following recent standards.
Solution shows stepwise computations with detailed explanations, following which, the reader should be able to solve similar problems easily. It also has a brief comment about recent vs older subnetting standards.