題目 題型:案例題 難度:★★★ 5.2萬熱度
(注意此題考的是思科設(shè)備的配置,在2018版本的考試大綱中,網(wǎng)絡(luò)設(shè)備已經(jīng)默認(rèn)為華為設(shè)備,此題不需要學(xué)習(xí)和記憶,模擬題中已
(注意此題考的是思科設(shè)備的配置,在2018版本的考試大綱中,網(wǎng)絡(luò)設(shè)備已經(jīng)默認(rèn)為華為設(shè)備,此題不需要學(xué)習(xí)和記憶,模擬題中已經(jīng)有類似的華為配置,請(qǐng)注意學(xué)習(xí))閱讀以下說明,回答問題1至問題2,將解答填入答題紙對(duì)應(yīng)的解答欄內(nèi)。
【說明】
某公司建立域網(wǎng)拓?fù)鋱D如圖4-1所示。公司計(jì)劃使用路由器作為DHCP服務(wù)器,根據(jù)需求,公司內(nèi)部使用C類地址段,服務(wù)器地址段為192.168.2.0/24,S2和S3分別為公司兩個(gè)部門的接入交換機(jī),分別配置VLAN 10和VLAN 20,地址段分別使用192.168.10.0/24和192.168.20.0/24,通過DHCP服務(wù)器自動(dòng)為兩個(gè)部門分配IP地址,地址租約期為12小時(shí)。其中,192.168.10.1~192.168.10.10作為保留地址。
圖4-1
【問題1】(10分,每空1分)
下面是R1的配置代碼,請(qǐng)將下面配置代碼補(bǔ)充完整。
R1#config t
R1 (config)# interface FastEthernet0/0
R1 (config-if)#ip address(1) (2)
R1 (config-if)#no shutdown
R1 (config-if)#exit
R1 (config)#ip dhcp(3) depart1
R1 (dhcp-config)#network 192.168.10.0 255.255.255.0
R1 (dhcp-config)#default-router 192.168.10.254 255.255.255.0
R1 (dhcp-config)#dns-server(4)
R1 (dhcp-config)#lease 0 (5) 0
R1 (dhcp-config)#exit
R1 (config)#ip dhcp pool depart2
R1 (dhcp-config)# network(6) (7)
R1 (dhcp-config)#default-router 192.168.20.254 255.255.255.0
R1 (dhcp-config)# dns-server 192.168.2.253
R1 (dhcp-config)# lease 0 12 0
R1 (dhcp-config)#exit
R1 (config)# ip dhcp excluded-address (8) (9)
R1 (config)# ip dhcp excluded-address(10) //排除掉不能分配的IP地址
R1 (config)# ip dhcp excluded-address 192.168.20.254
......
【問題2】(5分,每空1分)
下面是S1的配置代碼,請(qǐng)將下面配置代碼或解釋補(bǔ)充完整。
S1#config terminal
S1(config)#interface vlan 5
S1(config-if)#ip address 192.168.2.254 255.255.255.0
S1(config)#interface vlan 10
S1(config-if)#ip helper-address(11) ∥指定DHCP服務(wù)器的地址
S1(config-if)#exit
S1(config)#interface vlan 20
......
S1(config)#interface f0/24
S1(config-if)#switchport mode (12)
S1(config-if)# switchport trunk (13)vlan all ∥允許所有VLAN數(shù)據(jù)通過
S1(config-if)#exit
S1(config)#interface f0/21
S1(config-if)#switchport mode access
S1(config-if)#switchport access vlan 5
S1(config-if)#exit
S1(config)#interface f0/22
S1(config-if)#switchport mode access
S1(config-if)#switchport access(14)
S1(config)#interface f0/23
S1(config-if)#switchport mode access
S1(config-if)#switchport access(15)
考點(diǎn):路由器DHCP配置