第N台计算机的ip寻址

时间:2012-03-06 16:10:13

标签: ip addressing

问题是,计算这些信息:

“ip subnet zero,first ip,last ip,broadcast,ip subnet mask”

对于X个PC的B类IP(172.16.0.0/16),例如27811台计算机......

1 个答案:

答案 0 :(得分:1)

Address:   172.16.0.0            10101100.00010000 .00000000.00000000
Netmask:   255.255.0.0 = 16      11111111.11111111 .00000000.00000000
Wildcard:  0.0.255.255           00000000.00000000 .11111111.11111111
=>
Network:   172.16.0.0/16         10101100.00010000 .00000000.00000000 (Class B)
Broadcast: 172.16.255.255        10101100.00010000 .11111111.11111111
HostMin:   172.16.0.1            10101100.00010000 .00000000.00000001
HostMax:   172.16.108.163        10101100.00010000 .11111111.11111110
Hosts/Net: 27811 (Private Internet)

对于B类IP地址,前16位应为静态(它们永远不会改变)。剩余的16位数字不断改变......

所以对于你的问题.. IP地址是这样的......

172.16.0.1 ..... 172.16.0.255
172.16.1.0 ..... 172.16.1.255
.
.
.
172.16.107.0 ..... 172.16.107.255
172.16.108.0 ..... 172.16.108.163 ---> This will count to 27811 hosts