IP Address Exercise

Help on finding the number of hosts in a network.

The number of hosts depends on the number of 0s in the subnet mask. To calculate the number of hosts for a given subnet mask, follow the the steps below.


Step Detail
1 Convert the subnet mask into binary.
2 Count the number of 0s in the binary format of the subnet mask. Lets say, the count is x.
3 The number of hosts in the network = 2^x - 2.