1 使用 RIP协认处理不连续的子网和VLSM


在本实验中演示使用RIP协议处理不连续的子网和VLSM的情况 。
1.实验目的
通过本实验,读者可以把握以下技能:
使用RIP协议处理不连续的子网;
使用RIP协议处理VLSM;
查看RIP协议配置信息;
使用Debug命令 。
2. 设备需求
本实验的设备需求与实验1相同 。
3. 拓扑结构及配置说明
本实验拓扑结构如图5-2所示,大都与5-1相同,所不同的是IP地址分配 。
IP地址分配如下:
R1:E0 172.18.1.1,s0 172.16.12.1,S1 172.16.]3.1;
R2:E0 172.18.2.2,S0 172.16.12.2,S1 172.16.23.2;
R3:E0 172.18.3.3,S0 172.16.13.3,S1 172.16.23.3 。
子网掩码均为255.255.255.0 。
 
这是一个典型的不连续子网的情况,实验要求通过对RIP协议的配置,实现全网的连通性 。
在完成上述实验的基础上,我们还将对可变长子网掩码 (VLSM)的情况进行配置 。
4.实验配置及监测结果
我们首先在完成实验1的基础上,配置3台路由器的E0接口,更改其IP地址 。实验记录是从这个操作完成之后开始的,见配置清单5-3 。
配置清单5-3使用RIP协议处理不连续的子网
R3#cle ip route *
R3#sh ip route
Codes: C - connected, S - static, I - IGRP, R - RIP, M - mobile, B - BGP
 D - EIGRP, EX - EIGRP external, 0 - OSPF, IA - OSPF inter area
 N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2
 E1 - OSPF external type 1, E2 - OSPF external type 2, E - EGP
 i - IS-IS, L1 - IS-IS level-1, L2 - IS-IS level-2, ia - IS-IS inter area
 * - candidate default, U - per-user static route, o - ODR
 P - periodic downloaded static route
Gateway of last resort is not set
172.16.0.0/24 is subnetted, 3 subnets
R 172.16.23.0 is directly connected. Serial 1
C 172.16.12.0 [120/1] via 172.16.13.1, 00:00:01, Serial0
C 172.16.13.0 is directly connected, Serial0
172.18.0,0/24 is subnetted, 1 subnets
C 172.18.3.0 is directly connected, Ethemet0
R3#conft
Enter configuration commands, one per line. End with CNTL/Z.
R3(config)#router rip
R3(config-router)#version 2
R3(config-router)#
Term_Server>2
[Resuming connection 2 to R2 ... ]
R2(config-router)#router rip
R2(config-router)#version 2
R2(config-router)#
Term_Server>1
[Resuming connection 1 to R1 ...]
R1(config-router)#router rip
R1(config-router)#version 2
R1(config-router)#
R1(config-router)#^Z
R1#cle lp route *
R1#debug ip rip
RIP protocol debugging is on
R1#
01:38:59: RIP: received v2 update from 172.16.12.2 on Serial0
01:38:59: 172.16.23.0/24 via 0.0.0.0 in 1 hops
01:38:59: 172.18.0.0/16 Via 0.0.0.0 in 1 hops
01:39:10: RIP: received v2 update from 172.16.13.3 on Serial1
01:39:10: 172.16.23.0/24 via 0.0.0.0 in 1 hops
01:39:10: 172.18.0/16 via 0.0.0.0 in 1 hops
01:39:12: RIP: sending v2 update to 224.0.0.9 Via Serial0 (172.16.12.1)
01:39:12: RIP: build update entries
01:39:12: 172.16.13.0/24 via0.0.0.0,metric 1,tag 0
01:39:12: RIP: rending v2 update to 224.0.0.9 via Serial1 (172.16.13.1)
01:39:12: RIP: build update eyries
01:39:12: 172.16.12.0/24 via 0.0.0.0, metric 1, tag.0
R1#undebug all
All possible debugging has been turned off
R1#sh ip route
Codes: C - connected, S - static, I - IGRP, R - RIP, M - mobile, B - BGP
 D - EIGRP, EX - EIGRP external, 0 - OSPF, IA - OSPF inter area
 N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2
 E1 - OSPF external type 1, E2 - OSPF external type 2, E - EGP
 i - IS-IS, L1 - IS-IS level-1, L2 - IS-IS level-2, ia - IS-IS inter area
 * - candidate default, U - per-user static route, o - ODR

推荐阅读