子网划分专项练习.docx
《子网划分专项练习.docx》由会员分享,可在线阅读,更多相关《子网划分专项练习.docx(9页珍藏版)》请在冰豆网上搜索。
![子网划分专项练习.docx](https://file1.bdocx.com/fileroot1/2023-2/4/4b23c0c6-294b-405a-9931-df76c1016ba3/4b23c0c6-294b-405a-9931-df76c1016ba31.gif)
子网划分专项练习
子网划分专项练习—
计网1032班谭福庆学号1025053211
1.WhatvalidhostrangeistheIPaddress172.16.10.22255.255.255.240apartof?
(在172.16.10.22255.255.255.240这个网络里,有效IP地址的范围是?
)
A.172.16.10.20through172.16.10.22
B.172.16.10.1through172.16.10.255
C.172.16.10.16through172.16.10.23
D.172.16.10.17through172.16.10.31
E.172.16.10.17through172.16.10.30
答案:
E.
解析:
根据这个IP地址可知:
这是一个B类地址,由子网掩码可知,
172.16.10.22
255.255.255.240二进制如下
10101100.00010000.00001100.00010100
11111111.11111111.11111111.11110000
-----------------------------------进行与运算
10101100.00010000.00001100.00010000网络地址
得到广播地址如下:
10101100.00010000.00001100.00011111广播地址
00011111>>16+8+4+2+1=31
有效IP地址的范围为17-31
2.Whatisthebroadcastaddressofthesubnetaddress172.16.8.159255.255.255.192?
(在172.16.8.159255.255.255.192这个网络里,广播地址是?
)
A.172.16.255.255
B.172.16.8.127
C.172.16.8.191
D.172.16.8.255
答案:
C.
解析:
1.求网络地址/网络ip
ip与mask:
172.16.8.159
255.255.255.192
----------------
10101100.00010000.00001000.10011111
11111111.11111111.11111111.11000000
---------------------------------------
10101100.00010000.00001000.10000000网络ip
2.得出主机位
11111111.11111111.11111111.11000000
主机位是最后6位
3.把主机位全置1
6个1
4.网络地址+主机位全为1=广播地址
10101100.00010000.00001000.10111111广播地址
172.16.8.191
3.Whatisthebroadcastaddressofthesubnetaddress192.168.10.33255.255.255.248?
(在192.168.10.33255.255.255.248这个网络里,广播地址是?
)
A.192.168.10.40
B.192.168.10.255
C.192.168.255.255
D.192.168.10.39
答案:
D.
解析:
1.求网络地址/网络ip
ip与mask:
192.168.10.33
255.255.255.248
----------------
11000000.10101000.00001010.00100001
11111111.11111111.11111111.11111000
---------------------------------------
11000000.10101000.00001010.00100000网络ip
2.得出主机位
11111111.11111111.11111111.11111000
主机位是最后3位
3.把主机位全置1
3个1
4.网络地址+主机位全为1=广播地址
11000000.10101000.00001010.00100111广播地址
192.168.10.39
4.Ifyouwantedtohave12subnetswithaClassCnetworkID,whichsubnetmaskwouldyouuse?
(对一个C类网络,要划分出12个子网,那么,划分后的子网掩码是?
)
A.255.255.255.252
B.255.255.255.248
C.255.255.255.240
D.255.255.255.255
答案:
C.
解析:
由题已知这是个C类地址
所以2^X>=12X=4
得出255.255.255.1111
所以结果为255.255.255.240
5.IfyouneedtohaveaClassBnetworkaddresssubnettedintoexactly510subnets,whatsubnetmaskwouldyouassign?
(对一个B类网络进行子网划分,要划分出510个子网,则子网掩码是?
)
A.255.255.255.252
B.255.255.255.128
C.255.255.255.0
D.255.255.255.192
答案:
B.
解析:
由题已知是个B类地址
2^X>=510X=9
所以得出结果为255.255.255.128
6.IfyouareusingaClassCnetworkIDwithtwosubnetsandneed31hostspernetwork,whichofthefollowingmasksshouldyouuse?
(对于一个C类网络,要划分出两个子网,每个子网里有31台计算机,则子网掩码是?
)
A.255.255.255.0
B.255.255.255.192
C.255.255.255.224
D.255.255.255.248
答案:
B
解析:
设子网数为X主机数为Y
2^X>=22^Y-2>=31
因为是个C类地址所以X+Y=8
所以X=1orX=2
Y=6orY=7
所以得出结果为B
7.Howmanysubnetsandhostscanyougetfromthenetwork192.168.254.0/26?
(把默认的C类网络划分为192.168.254.0/26,则能获得多少个子网,每子网里有多少主机)
A.4networkswith64hosts
B.2networkswith62hosts
C.254networkswith254hosts
D.1networkwith254hosts
答案:
B.
解析:
子网数=26-24=2
主机位=32-26=6
主机数2^6-2=62
所以答案为B
8.Youhavethenetwork172.16.10.0/24.Howmanysubnetsandhostsareavailable?
(对B类地址进行了划分,划分为172.16.10.0/24,则可用的子网数和主机数是多少?
)
A.1subnetwith10hosts
B.1subnetwith254hosts
C.192subnetswith10hosts
D.254subnetswith254hosts
答案:
B.
解析:
子网位=1
主机位为2^8-2=254
所以答案为B
9.WhatmaskwouldyouassigntothenetworkIDof172.16.0.0ifyouneededabout100subnetswithabout500hostseach?
(对于172.16.0.0,如果你需要100个子网,每子网500台主机,则掩码是什么?
)
A.255.255.255.0
B.255.255.254.0
C.255.255.252.0
D.255.255.0.0
答案:
B.
解析:
设子网数为X主机数为Y
2^X>=1002^Y-2>=500
所以X=7Y=9
所以得出255.255.254.0
10.YouhaveaClassC192.168.10.0/28network.Howmanyusablesubnetsandhostsdoyouhave?
(现有一个网络ID192.168.10.0/28,则有多少可用的子网和主机?
)
A.16subnets,16hosts
B.14subnets,14hosts
C.30subnets,6hosts
D.62subnets,2hosts
答案B.
解析:
1.因为这是个C类地址,把默认的子网掩码提取出来24
2.求借出的的子网位数subnetX
28-24=4
3.求主机位数hostY
32-mask=4
4.求子网和主机数
2^X=16
2^Y-2=14
11.Youhavethenetwork192.168.10.0/24.Howmanysubnetsandhostsareavailable?
(现在网络ID为192.168.10.0/24,则有多少可用的子网和主机?
)
A.1subnetwith10hosts
B.1subnetwith254hosts
C.192subnetswith10hosts
D.254subnetswith254hosts
答案;B.
解析
1.因为这是个C类地址,把默认的子网掩码提取出来24
2.求借出的的子网位数subnetX
24-24=0
3.求主机位数hostY
32-mask=8
4.求子网和主机数
2^X=1
2^8-2=254
12.Youhavea255.255.255.240mask.WhichtwoofthefollowingarevalidhostIDs?
(有子网掩码255.255.255.240,则下面哪两个是有效的IP地址?
)
A.192.168.10.210
B.192.168.10.32
C.192.168.10.94
D.192.168.10.112
E.192.168.10.127
答案:
A和C
解析:
由题可知240=11110000主机号不能全部为0或者全部为1
210=11010010
32=00100000
94=01011110
112=01110000
127=01111111
13.YouhaveaClassBnetworkIDandneedabout450IPaddressespersubnet.Whatisthebestmaskforthisnetwork?
(现在一个B类网络,要对其进行划分,要求每个子网里有450台主机,则最合适的子网掩码是?
A.255.255.240.0
B.255.255.248.0
C.255.255.254.0
D.255.255.255.0
答案:
C.
解析:
由题可知B类网络:
255.255.xxxxxxxx.xxxxxxxx
2^X>=450
X>=9
所以子网掩码255.255.11111110.0000000
所以255.255.254.0
14.Whichofthefollowingisavalidhostfornetwork192.168.10.32/28?
(对于网络192.168.10.32/28,下面哪个IP地址是属于此网络的合法IP地址?
)
A.192.168.10.39
B.192.168.10.47
C.192.168.10.14
D.192.168.10.54
答案:
A.
由题可知这是个C类地址
32的二进制是00100000
借位数是四位
所以ip的范围00100000-00101111
所以合法ip的范围33-46
15.Whatisthevalidhostrangethathost192.168.10.22/30isapartof?
(现有主机的IP地址192.168.10.22/30,那么,这个IP地址属于下面哪个网络?
)
A.192.168.10.0
B.192.168.10.16
C.192.168.10.20
D.192.168.0.0
答案:
C.
解析:
由题可知这是个C类地址
子网掩码为11111100
22的二进制是00010110
进行与运算
得出00010100
化成10进制为20
所以答案为C