填空题
阅读以下说明,根据要求回答问题1和问题2。
[说明]
某公司计划使用路由器作为DHCP Server,其网络拓扑结构如图所示。根据业务需求,公司服务器IP地址使用192.168.2.1/24,部门1使用192.168.4.1/24网段、部门2使用192.168.3.1/24网段(其中192.168.3.1~192.168.3.10地址保留不分配),部门1和部门2通过路由器的DHCP服务自动获取IP地址。
填空题
[问题1]
根据网络拓扑和需求说明,完成(或解释)路由器R1的配置:
R1 #config t
R1 (Config)#interface FastEthemet0/1
R1 (config-if)#ip address
__①__
__②__
R1 (config-if)#no shutdown
R1 (config-if)#exit
R1 (config)#ip dhcp pool vlan 3
R1 (dhcp-config)#network 192.168.3.0 255.255.255.0
R1 (dhcp-config)#default-router 192.168.3.254 255.255.255.0 ;
__③__
R1 (dhcp-config)#dns-server 192.168.2.1 ;
__④__
R1 (dhcp-config)#lease 0 8 0 ;
__⑤__
R1 (dhcp-config)#exit
R1 (config)#ip dhcp pool vlan 4
R1 (dhcp-config)#network
__⑥__
__⑦__
R1 (dhcp-config)#default-router 192.168.4.254 255.255.255.0
R1 (dhcp-config)#dns-server 192.168.2.1
R1 (dhcp-config)#lease 0 8 0
R1 (dhcp-config)#exit
R1 (config)#ip dhcp excluded-address
__⑧__
__⑨__
R1 (config)#ip dhcp excluded-address 192.168.3.254 ;排除掉不能分配的IP地址
R1 (config)#ip dhcp excluded-address 192.168.4.254
R1 (config)#
__⑩__
192.168.3.0 255.255.255.0 FastEthemet0/1
;在以太网接口和VLAN3间建立一条静态路由
……
填空题
[问题2]
根据网络拓扑和需求说明,完成(或解释)交换机S1的部分配置。
S1 #config t
S1 (config)#interface vlan2
S1 (config-if)#ip address 192.168.2.254 255.255.255.0
S1 (config)#interface vlan3
S1 (config-if)#ip helper-address
__①__
;指定DHCP服务器的地址
S1 (config-if)#exit
S1 (config)#interface vlan4
S1 (config)#interface f1/1
S1 (config-if)#switchport mode
__②__
S1 (config-if)#switchport trunk allowed vlan all
S1 (config-if)#exit
S1 (config)#interface f1/2
S1 (config-if)#switchport mode access
S1 (config-if)#switchport access
__③__
S1 (config-if)#exit
S1 (config)#interface f1/5
S1 (config-if)#switchpoft mode access
S1 (config-if)#switchport access
__④__
S1 (config)#interface f1/9
S1 (config-if)#switchport mode access
S1 (config-if)#switchport access
__⑤__