根據網絡拓撲和要求說明,完成(或解釋)路由器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 間建立一條靜態(tài)路由