Example—Class B subnetting
The 172.16.150.0/28
network is given. How many subnets and hosts are on this network?
11111111.11111111.11111111.11110000 - the subnet mask 255.255.255.240 represented in bits 11110000 - is the fourth octet in subnet mask 255.255.255.240 1111 - is the network portion in the fourth octet 24 = 16 subnets 0000 - is the host portion in the fourth octet 24 - 2 = 16 - 2 = 14 hosts 0 to 15 - is the first subnet with 1 to 14 representing the range of available IP addresses for hosts 16 to 31 - is the second subnet with 17 to 30 representing the range of available IP addresses for hosts ........ 240 to 255 - is the eighth subnet with 241 to 254 representing the range of available IP addresses for hosts The first IP address on each subnet is reserved for network, and the last IP address on each subnet is reserved for broadcast.