閱讀以下說明,回答問題1至問題2。(15分)
圖4-1為某學校網絡拓撲圖,運營商分配的公網IP地址為113.201.60.1/29,運營商網關地址為113.201.60.1,內部用戶通過路由器代理上網,代理地址為113.201.60.2。核心交換機配置基于全局的DHCP服務,為辦公樓和宿舍樓用戶提供DHCP服務。內部網絡劃分為3個VLAN,其中VLAN10的地址10.0.10.1/24,VLAN20的地址10.0.20.1/24,VLAN30的地址10.0.30.1/24,請結合下圖,回答相關問題。
圖4-1
問題1(共9分)
路由器的配置片段如下,根據圖4-1,補齊(1)~(6)空缺的命令。
#配置WAN接口和內網上網代理
system-view
[Huawei] sysname ( 1 )
[Router] interface ( 2 )
[Router-GigabitEthernet1/0/0] ip address ( 3 )
[Router-GigabitEthernet1/0/0] quit
[Router] ip route-static 0.0.0.00.0.0.0 ( 4 )
[Router] acl 2000
[Router-acl-basic-2000] rule 5 permit source 10.0.0.0 ( 5 )
[Router-acl-basic-2000] quit
[Router] interface GigabitEthernet1/0/0
[Router-GigabitEthernet1/0/0] nat outbound ( 6 )
[Router-GigabitEthernet1/0/0] quit
......
其它配置
問題2(共6分)
核心交換機的配置片段如下,根據圖4-1,補齊(7)~(10)空缺的命令。
#配置GE0/0/2接口加入VLAN20,并配置對應VLAN接口地址
[Switch] vlan batch 20
[Switch] interface GigabitEthernet0/0/2
[Switch-GigabitEthernet0/0/2] port link-type ( 7 )
[Switch-GigabitEthernet0/0/2] port hybrid pvid vlan20
[Switch-GigabitEthernet0/0/2] port hybrid untagged vlan 20
[Switch-GigabitEthernet0/0/2] quit
[Switch] interface vlanif 20
[Switch-vlanif20] ip address ( 8 )
[Switch-vlanif20] quit
......
其它配置略
#配置DHCP服務,租期3天
[Switch]dhcp ( 9 )
[Switch] ip pool pool1
[Switch-ip-pool-pool1] network 10.0.20.0 mask 255.255.255.0
[Switch-ip-pool-pool1] dns-list 10.0.10.2
[Switch-ip-pool-pool1] gateway-list 10.0.20.1
[Switch-ip-pool-pool1] lease day ( 10 )
[Switch-ip-pool-pool1] quit
[Switch] interface vlanif 20
[Switch-vlanif 20] dhcp select global
[Switch-vlanif 20] quit
......
其它配置略