实验目的:
通过实验体会静态路由的灵活应用,以及如何将路由器定义为UNIX服务器模式,如何为路由器定义默认网关。
实验拓扑:

03_j1HBvdpYHlbp.jpg
实验内容:
路由器的基本配置
R1 (config-if)#interface s0
R1 (config-if)#ip address 192.168.2.1 255.255.255.0
R1 (config-if)#clock rate 64000
R1 (config-if)#no shut
$$$$$$$$$$
R2(config)#interface s1
R2(config-if)#ip address 192.168.2.2 255.255.255.0
R2(config-if)#no shut
R2(config-if)#interface s0
R2(config-if)#ip address 192.168.3.1 255.255.255.0
R2(config-if)#clock rate  64000
R2(config-if)#no shut
$$$$$$$$$$$
R3(config)#interface s1
R3(config-if)#ip address 192.168.3.2 255.255.255.0
R3(config-if)#no shut
配置R2和R3为UNIX服务器模式
R1(config)#no ip routing(去掉路由器的路由功能)
R1(config)#ip default-gateway 192.168.2.2(为路由器定义默认网关)
R3(config)#no ip routing
R3(config)#ip default-gateway 192.168.3.1
3.查看目前的路由器状态
   R1#show ip route
Default gateway is not set
Host               Gateway           Last Use    Total Uses  Interface
ICMP redirect cache is empty
   R1#show ip route
Default gateway is 192.168.2.2
Host               Gateway           Last Use    Total Uses  Interface
ICMP redirect cache is empty
4、验证默认网关的配置
从R1上ping R3的S1口
R1#ping 192.168.3.2
   Sending 5, 100-byte ICMP Echos to 192.168.3.2, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 56/59/64 ms
实验总结:
这类型的实验是扩展***实验的一种,考察的就是学员的快速反应能力,其实内容很简单,但是由于思路的问题,这种问题也是工程师的杀手锏。