已知ip地址和子网掩码,求网络地址、广播地址、主机数、可用主机数、地址范围、可用地址范围
(1)192.168.1.103 掩码:255.255.255.0
192.168.1.0 192.168.1.255
256 254
192.168.1.0-192.168.1.255
192.168.1.1-19.168.1.254
(2)10.145.129.20 10000001 掩码:255.255.248.0 11111000
10.145.128.0
10.145.135.255
2^11=2048 2046
10.145.128.0-10.145.135.255
10.145.128.1-10.145.135.254
(3)192.168.1.53 00110101 掩码:255.255.255.224 11100000
192.168.1.32
192.168.1.63
2^5
192.168.1.32-192.168.1.63
192.168.1.33-192.168.1.62
(4)100.5.150.34 10010110 掩码:255.255.240.0 11110000
100.5.144.0
100.5.159.255
2^12
100.5.144.0-100.5.159.255
100.5.144.1-100.5.159.254
(5)192.168.100.5 掩码:255.255.255.0
192.168.100.0
192.168.100.255
2^8
192.168.100.0-192.168.100.255
192.168.100.1-192.168.100.254
(6)172.16.0.1 掩码:255.255.254.0 11111110
172.16.0.0
172.16.1.255
2^9 2^9-2
172.16.0.0-172.16.1.255
172.16.0.1-172.16.1.254
(7)59.108.14.1 掩码 255.255.255.240 11110000
59.108.14.0
59.108.14.15
2^4
59.108.14.0-59.108.14.15
59.108.14.1-59.108.14.14
使用VLSM方式划分子网
例:公司有4个部门,计算机数量分别是100台、55台、29台、20台。公司目前拥有的网络为192.168.1.0/24
100 n=7
192.168.1.0-127
1-126
55 n=6
128-191
129-190
29 n=5
192-223
193--222
20 n=5
224-255
225-254