If given the number of host bits determine the number of hos
Solution
No. of hosts:
1) 5 bits.. converting to decimal 2^5=32 and subtract 2. Therefore 30.
2) 14 bits.. converting to decimal 2^14=16384 and subtract 2. Therefore 16382
3) 24 bits.. converting to decimal 2^24=16777216 and subtract 2. Therefore 16777214
4) 10 bits.. converting to decimal 2^10=1024 and subtract 2. Therefore 1022
2nd Question:
Subnet Mask
Binary Subnet Mask
#Available
Host Bits
#Available
Hosts
255.255.255.0
11111111.11111111. 11111111.00000000
8
254
255.255.240.0
11111111.11111111.11110000.00000000
12
4094
255.255.255.128
11111111.11111111.11111111.10000000
7
126
255.255.255.252
11111111.11111111.11111111.11111100.
2
2
255.255.0.0
11111111.11111111.00000000.00000000
16
65534
| Subnet Mask | Binary Subnet Mask | #Available Host Bits | #Available Hosts |
| 255.255.255.0 | 11111111.11111111. 11111111.00000000 | 8 | 254 |
| 255.255.240.0 | 11111111.11111111.11110000.00000000 | 12 | 4094 |
| 255.255.255.128 | 11111111.11111111.11111111.10000000 | 7 | 126 |
| 255.255.255.252 | 11111111.11111111.11111111.11111100. | 2 | 2 |
| 255.255.0.0 | 11111111.11111111.00000000.00000000 | 16 | 65534 |

