交换和路由练习题6

合集下载
  1. 1、下载文档前请自行甄别文档内容的完整性,平台不提供额外的编辑、内容补充、找答案等附加服务。
  2. 2、"仅部分预览"的文档,不可在线预览部分如存在完整性等问题,可反馈申请退款(可完整预览的文档不适用该条件!)。
  3. 3、如文档侵犯您的权益,请联系客服反馈,我们会尽快为您处理(人工客服工作时间:9:00-18:30)。

阅读以下说明,回答问题1 至问题4,将解答填入答题纸对应的解答栏内。

【说明】
某公司计划使用路由器作为DHCP Server,其网络拓扑结构如图4-1 所示。

根据业务需求,公司服务器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 地址。

图4-1
根据网络拓扑和要求说明,完成(或解释)路由器R1 的配置:
R1#config
R1(config)# interface FastEthernet 0/1
R1(config-if)#ip address (1) (2)
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 ; (3)
R1(dhcp-config)#dns-server 192.168.2.1 ; (4)
R1(dhcp-config)#lease 0 8 0 ; (5)
R1(dhcp-config)#exit
R1(config)#ip dhcp pool vlan 4
R1(dhcp-config)#network (6) (7)
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 (8) (9)
R1(config)#ip dhcp excluded-address 192.168.3.254
//排除掉不能分配的IP 地址
R1(config)#ip dhcp excluded-address 192.168.4.254
R1(config)# (10) 192.168.3.0 255.255.255.0 FastEthernet0/1
//在以太网接口和VLAN3 间建立一条静态路由
【问题2】(5 分)
根据网络拓扑和需求说明,完成(或解释)交换机S1 的部分配置
S1#config t
S1(config)#interface vlan 2
S1(config-if)#ip address 192.168.2.254 255.255.255.0
S1(config)#interface vlan 3
S1(config-if)#ip helper-address (11) ;指定DHCP 服务器的地址
S1(config-if)#exit
S1(config)#interface vlan 4
......
S1(config)#interface f1/1
S1(config-if)#switchport mode (12)
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 (13)
S1(config-if)#exit
S1(config)interface f1/5
S1(config-if)#switchport mode access
S1(config-if)#switchport access (14)
S1(config)#interface f1/9
S1(config-if)#switchport mode access
S1(config-if)#switchport access (15)
参考答案:(1)192.168.1.1、(2)255.255.255.0、
(3)设置部门2 网关为192.168.3.254、
(4)设置部门2DNS 服务器地址为192.168.2. 1、
(5)设置DHCP 租期为8小时、
(6)192.168.4.0、(7)255.255.255.0、
(8)192.168.3.1、(9)192.168.3.10、(10)ip route
参考答案:(11)192.168.1.1、(12)trunk、(13)vlan 1、(14)vlan4、(15)vlan 3。

相关文档
最新文档