文档库 最新最全的文档下载
当前位置:文档库 › RIP路由标准协议配置.docx

RIP路由标准协议配置.docx

.

2.1 实验目的

通过本实验,学生可以掌握以下技能:

1.路由器基本配置使用方法;

2.配置 RIP 协议 ;

3.配置 RIPv2 协议 ;

4.查看上述配置项目的相关信息。

2.2 实验任务

1.配置路由器端口的 IP 地址;

2.配置 RIP 协议;

3.配置 RIP v2 协议;

4.使得不同网段的 PC 机能够通信;

2.3 实验设备

CISCO2600 交换机三台,带网卡的PC 机两台,控制电缆两条,串口连接线两条。

交叉线序网线两条以及Consoie 电缆;

2.4 实验环境

如图所示,用串口连接线把路由器 router1 的串口 s0 和 router3 的串口 s0 连接起来;把路由器

router2 的串口 s0 和 router3 的串口 s1 连接起来。 PC1 与路由器 router1 的 FastEthernet0/1 连接,PC2 与路由器 router2 的 FastEthernet0/11 连接,电缆连接完成后。给所有设备加电,开始进行实验。

.

2.5 实验报告要求

实验报告信息要求完整,包括学号、、班级、专业、课程名称、教师名称、实验目的、实验任务、实验环境、实验步骤及详细记录、实验过程中存在的问题及实验心得体会等内容。

2.6 实验步骤通过PC1 上的超级终端连接路由器router1 ,并为路由器命名

Router> enable

Router# configure terminal

Router(config)#

Router(config)# hostname router1

router1(config)#

1.设置路由器 router1 的 Ethernet0 端口的 IP 地址

router1(config)# interface ethernet0

router1(config-if)# ip address 11.168.1.11255.0.0.0

router1(config-if)# no shutdown

2.设置路由器 router1 的串口 s0 端口的 IP 地址

router1(config-if)# int s0

router1(config-if)# ip address 192.168.1.13

255.255.255.0 router1(config-if)# no shutdown

3. 设置 PC1 的 IP 地址 11.168.1.10 ,网关为11.168.1.11

4.通过超级终端连接路由器 router3 ,并为路由器命名

Router> enable

Router# configure terminal

Router(config)# Router(config)#

hostname router3

Router3(config)#

5.设置路由器 router3 的串口 s0 端口的 IP 地址,并设置数据传输率

Router3(config-if)# int s0

Router3(config-if)# ip address192.168.1.31 255.255.255.0

Router3(config-if)# no shut

Router3(config-if)#clock rate 9600

6.设置路由器 router3 的串口 s1 端口的 IP 地址,并设置数据传输率

Router3(config-if)# int s1

Router3(config-if)# ip address10.168.1.32 255.0.0.0

Router3(config-if)# no shut

Router3(config-if)#clock rate 9600

7. 通过 PC2 上的超级终端连接路由器router2 ,并为路由器命名

Router> enable

Router# configure terminal

Router(config)#

Router(config)# hostname router2

Router2(config)#

8.设置路由器 router2 的 Ethernet0 端口的 IP 地址

Router2(config)# interface ethernet0

Router2(config-if)# ip address12.168.1.22 255.0.0.0

Router2(config-if)# no shutdown

9.设置路由器 router2 的串口 s0 端口的 IP 地址

Router2(config-if)# int s0

Router2(config-if)# ip address10.168.1.23 255.0.0.0

Router2(config-if)# no shutdown

10.设置PC2的IP地址12.168.1.10,网关为12.168.1.22

11.测试 PC1 与 PC2 的连通性,在pc1 上

Pc1>ping 12.168.1.10

由于路由器上不存在相关路由,所以PC之间还不能够通信。

12.在 router1 上启用 RIP 协议

Router1# configure terminal

Router1(config)#router rip

Router1(config)#network 11.0.0.0

Router1(config)#network 192.168.1.0

13.在 router2 上启用 RIP 协议

Router2# configure terminal

Router2(config)#router rip

Router2(config)#network 10.0.0.0

Router2(config)#network 12.0.0.0

14.在 router3 上启用 RIP 协议

Router3# configure terminal

Router3(config)#router rip

Router3(config)#network 10.0.0.0

Router3(config)#network 192.168.1.0

15.测试 PC1 与 PC2 的连通性,在pc1 上

Pc1>ping 12.168.1.10

16.在 router1 上显示路由协议信息

router1# show ip protocols

图中显示该路由器采用 RIP路由协议,每 30秒发送一次路由更新,下一轮更新将在 6 秒钟之后,该更新在 180秒钟之后无效,若 240 秒钟之后未收到更新信息,则该路

由条目将从路由表中删除。其中发送版本为Version 1 ,但是接收来自version1 和version2 的版本信息,最多 4 条等价路由执行负载均衡,Gateway 是向 R1发送更新的邻居的下一跳 IP地址,管理距离为 120 ,Last Update 是自上次收到该邻居的更新以

来经过的秒数。

17.在 router3 上显示路由表

R3# show ip route

C表示直连路由, R表示 RIP路由,该路由器的RIP路由为 11.0.0.0/8 网络 [120/1] 表示

管理距离为120,要到达该网络的度量为 1。

18.清除 router1上路由表

clear ip route *

19.调试 RIP

router1# debug ip rip

20.结束调试

router1# undebug all

.

21.删除路由器 router1 上的 RIP 协议

router1# configure terminal

router1(config)# no router rip

22.在 router1 上配置 RIP2 协议

Router1# configure terminal

Router1(config)#router rip

Router1(config)#version 2

Router1(config)#network 11.0.0.0

Router1(config)#network 192.168.1.0

23.在router2及router3上做类似的配置,再查看路由器协议及pc1 、 pc2 的连通性。

24.

25.

相关文档