3.3路由器的静态配置
1.Router0的配置: Router1 #interface fa0/0
#ip address 192.168.1.2. 255.255.255.0 #no shutdown #exit #interface fa1/0
#ip address 192.168.2.2 255.255.255.0 #no shutdown #exit #interface se2/0
#ip address 192.168.4.1 255.255.255.0 #clock rate 9600 #no shutdown
(config)#ip route 192.168.1.0 255.255.255.0 192.168.4.0 #exit
2.router1的配置 Router2 #interface se2/0
#ip address 192.168.4.2 255.255.255.0 #no shutdown #exit #interface se3/0
#ip address 192.168.5.1 255.255.255.0 #clock rate 9600 #no shutdown
(config)#ip route 192.168.3.0 255.255.255.0 192.168.4.2 #exit
3.router2的配置 Router3 #interface se2/0
#ip address 192.168.5.2 255.255.255.0 #no shutdown #exit #interface fa0/0
#ip address 192.168.3.2 255.255.255.0 #no shutdown
(config)#ip route 192.168.1.0 255.255.255.0 192.168.5.2 (config)#ip route 192.168.2.0 255.255.255.0 192.168.5.2 (config)#ip route 192.168.3.0 255.255.255.0 192.168.5.2 #exit
3.4路由器的动态配置
1.Router1的配置:具体配置命令,及说明 Router1#router rip
#network 192.168.1.0 #network 192.168.2.0 #network 192.168.4.0
2.router2的配置 Router2#router rip
#network 192.168.4.0 #network 192.168.5.0 3.router3的配置 Router3#router rip
#network 192.168.3.0 #network 192.168.5.0
一、 实验结果
1、请配置路由器之间的静态路由,实现各主机之间的连通。 测试:a.在中间路由器上使用show ip route命令,查看路由信息。