1 RIP协议的基本配置


本实验对RIP协议进行基本的配置,涉及到配置RIP协议所必须的命令和常用的监测命令 。
1.实验目的
通过本实验,读者可以把握以下技能:
在路由器上启动RIP协议;
声明相应网络进入RIP路由进程;
查看路由表并理解相关字段含义;
查看RIP协议配置信息;
监测RIP协议相关信息 。
2.设备需求
本实验需要以下设备:
Cisco路由器3台,分别命名为R1、R2和R3,均要求具有1个以太网接口和2个串行接□;
3条DCE电缆和3条DTE电缆,或3条DCE转DTE电缆;
1台终端服务器,如Cisco 2509路由器 。及用于反向Telnet的相应电缆;
1台带有超级终端程序的PC机,以及Console电缆及转接器 。
3.拓扑结构及配置说明
本实验拓扑结构如图5.1所示,首先把DCE电缆和DTE电缆进行对接,共组成3对电缆 。然后用这3对电缆把R1和R2"RE和R3、R2和R3分别连接起来 。各路由器使用的接口及其编号见图5.1中的标注 。
IP地址分配如下:
R1: E0 172.16.1.1, 50 172.16.12.1, 51 172.16.13.1;
R2: E0 172.16.2.2, 50 172.16.12.2, 51 172.16.23.2;
R3: E0 172.16.3.3, 50 172.16.13.3, 51 172.16.23.30
子网掩码均为 255.255.255.00
实验中R、R2之间和R、R3之间的串行线路速率设置为5OOkbit/s;R2、R3之间的串行线路速率设置为64kbit/s 。
本实验要求通过对RIP路由选择协议的配置,实现全网的连通 。
4.实验配置及监测结果
实验环境预备就绪后,打开PC机、访问服务器和路由器的电源 。开始进行实验 。
现在假设我们不知道各路由器串行接口所连接的电缆是DCE电缆还是DTE电缆,同时路由器的E0接口均没有连接任何设备 。在这样的基础上开始配置3台路由器,并启动RIP路由选择协议 。
具体配置过程如配置清单5-1、5-2所示,配置清单后有具体的讲解 。
配置清单5-1配置以太网接口和串行接口
第1段:配置R1网络接口
R1#
R1#show controllers serial 0
HD unit 0, idb = 0x95659C, driver stmcture at 0x95C910
buffer size 1524 HD unit 0, V.35 DCE cable
cpb = 0xE2, eda = 0x2904, cda = 0x2918
RX ring with 16 entries at OxE22800
00 bd_ptr==0x2800 pak=0x95DB94 ds=0xE25A4C status==80 pak_size=22
01 bd_ptr=0x2814 pak=0x960328 ds=0xE2CCC8 status=80 pak_size=22
...(类似内容,省略多行)
0 missed datagrams, 0 overruns
0 bad datagram encapsulations, 0 memory errors
0 transmitter underruns
0 residual bit errors
R1#sh controllers ser 1
HD unit 1, idb = 0x961614, driver strUCture at 0x967988
buffer size 1524 HD unit 1,
cpb = 0xE3, eda = 0x850, cda = 0x864
RX ring with 16 entries at OxE30800
00 bd_ptr=0x0800 pak=Ox9690B4 ds==OxE34E80 status=80 pak_size=22
...(类似内容,省略多行)
01 bd__ptr=0xl014 pak=0x000000 ds=0xE22EA4 status=80 pak_size=22
0 missed datagrams, 0 overruns
0 bad datagram encapsulations, 0 memory errors
0 transmitter underruns
0 residual bit errors
R1#conft
Enter configuration commands, one per line. End with CNTL/Z.
R1(config)#no logg con
R1config#int e0
R1(config-if)#ip addr 172.16.1.1255.255.255.0
R1(config-if)#no keepalive
R1(config-if)#no shut
R1(config-if)#mt sO
R1(config-if)#ip addr 172.16.12.1
R1(config-if)#clockrate 500000
R1(config-if)#no sh
R1(config-if)#bandwidth 500
R1(config-if)#int si
R1(config-if)#ip addr 172.16.13.1
R1(config-if)#clockrate 500000
R1(config-if)#no sh
R1(config-if)#bandwidth 500
R1(config-if)#^Z
R1#
R1#sh int s0
Seria10 is down,line protocol is down
 Hardware is HD64570
Internet address is 172.16.12.1/24
MTU 1500 bytes, BW 500 Kbit, DLY 20000 usec,

推荐阅读