Current location - Plastic Surgery and Aesthetics Network - Plastic surgery and beauty - On the IP address allocation problem, algorithm problem
On the IP address allocation problem, algorithm problem
10.9. 100.0/22 indicates that the first 22 digits are network numbers.

255.255.255.252

Subnet mask translation binary is

1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 / kloc-0/ 1 1 1 165 438+0 1 1 1 1 1 1 1 100

The first 30 bits here are all 1.

Explain that the number of bits occupied by the subnet number is 30-22=8 bits.

Therefore, there can be 2 8 = 256 subnets.

The last two digits are 00, which means that the IP in the subnet can be allocated, and four can be allocated.

Since 00, 1 1 cannot be used, there are at most two.

So the IP structure is that the first 22 bits are the network number, and then the last 8 bits are the subnet number. The last two digits are the host number.