In: Computer Science
Refer to the network in Figure 14.7 where the subnet mask is 255.255.255.224
If someone attaches a device whose IP address = 192.228.17.218, find the subnet number and the host number.
192.228.17.218 - 11000000.11100100.00010001.11011010 255.255.255.224 - 11111111.11111111.11111111.11100000 -----------------| sub|------------ SUBNET = 11000000.11100100.00010001.11000000 = 192.228.17.192
By converting IP address and subnet mask into binary then observing at the address bits that have a corresponding mask bit set to one, and setting all the other address bits to zero (this is equivalent to performing a logical "AND" between the mask and address), shows you to which subnet this address belongs.
And Host address range :- 192.228.17.193 - 192.228.17.222
So the use able host per subnet will be 30.