The last five bits of the IP address are available to specify a specific host. The math is 2 to the power of 5, or 2x2x2x2x2=32, two valid states per bit and five bits. Don't forget that logically speaking values of zero count as a valid state, so even though if we added up the values of the bits 16+8+4+2+1=31 we still have 32 possible values since zero is valid. The left bit is always the MSB and the right is the LSB, as you have laid out above. So in the example we have been using:
Subnet mask is 255.255.255.224 in dotted decimal and in binary is 11111111 11111111 11111111 11100000
The ones represent where the network values in the IP address would be and the zeros where the host values would be in the IP address.
IP address of 172.24.16.171 in dotted decimal in binary would be 10101100 00011000 00010000 10101011
Network 10101100 00011000 00010000 101 and host 01011
The first 27 bits, as specified by the ones in the subnet mask represent the network portion of the IP address and will be the same for all hosts on that subnet. The last five bits specify the host, and must be unique to each host.
Subnet mask is 255.255.255.224 in dotted decimal and in binary is 11111111 11111111 11111111 11100000
The ones represent where the network values in the IP address would be and the zeros where the host values would be in the IP address.
IP address of 172.24.16.171 in dotted decimal in binary would be 10101100 00011000 00010000 10101011
Network 10101100 00011000 00010000 101 and host 01011
The first 27 bits, as specified by the ones in the subnet mask represent the network portion of the IP address and will be the same for all hosts on that subnet. The last five bits specify the host, and must be unique to each host.
Comment