根据网络拓扑和要求说明,完成(或解释)路由器R1 的配置:R1#configR1(config)# interface Fast

14 查阅

根据网络拓扑和要求说明,完成(或解释)路由器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 间建立一条静态路由

参考答案:

本题(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

软考中级