云题海 - 专业文章范例文档资料分享平台

当前位置:首页 > RIP路由协议基本配置附数据详解

RIP路由协议基本配置附数据详解

  • 62 次阅读
  • 3 次下载
  • 2025/12/10 20:35:30

实验 RIP路由协议基本配置

【实验名称】

RIP路由协议基本配置

【实验目的】

掌握在路由器上如何配置RIP路由协议

【背景描述】 假设在校园网在地理上分为

2个区域,每个区域内分别有一台路由器

连接了2个子网,需要将两台路由器通过以太网链路连接在一起并进行适当的配置,以实现这4个子网之间的互联互通。为了在未来每个校园区域扩充子网数量的时候,管理员不需要同时更改路由器的配置,计划使用RIP路由协议实现子网之间的互通。

【需求分析】 两台路由器通过快速以太网端口连接在一起,每个路由器上设置

Loopback端口模拟子网,在所有端口运行RIP路由协议,实现所有子网间的互通。

2个

【实验拓扑】

RALo 0200.16.1.0/24.1.1Lo 1Fa0/0.3Fa0/0.8RBLo 0.1.1Lo 1201.16.1.0/24192.168.1.0/24200.16.2.0/24201.16.2.0/24

【实验设备】

路由两台

【预备知识】 路由器的工作原理和基本配置方法,距离矢量路由协议,RIP工作原理

和配置方法

【实验原理】 RIP(Routing Information Protocols,路由信息协议)是应用较早、使用

较普遍的IGP(Interior Gateway Protocol,内部网关协议),适用于小型同类网络,是典型的距离矢量(distance-vector)协议。 RIP把每经过一个路由器称为经过了一跳,而每经过一跳,RIP就会将他的度量值(metric)加1,这样的话,跳数越多的则路径越长,而RIP会优先选择一条到达目标网络跳数少的路径,他支持的最大跳数是15跳,超过则被认为是不可达。 RIP在构造路由表时会使用到3种计时器:更新计时器、无效计时器、刷新计时器。它让每台路由器周期性地向每个相邻的邻居发送完整的路由表。路由表包括每个网络或子网的信息,以及与之相关的度量值。

【实验步骤】

第一步:配置两台路由器的主机名、接口IP地址

Ruijie>en

Ruijie#configure terminal

Enter configuration commands, one per line. End with CNTL/Z. Ruijie (config)#hostname RA RA(config)#int f0/0

RA(config-if)#ip address 192.168.1.3 255.255.255.0 RA(config-if)#no shutdown RA(config-if)#exit

RA(config)#interface loopback 0

RA(config-if)#ip address 200.16.1.1 255.255.255.0 RA(config-if)#exit

RA(config)#interface loopback 1

RA(config-if)#ip address 200.16.2.1 55.255.255.0 RA(config-if)#exit

Ruijie>en

Ruijie#configure terminal

Enter configuRBtion commands, one per line. End with CNTL/Z. Ruijie (config)#hostname RB RB(config)#int f0/0

RB(config-if)#ip address 192.168.1.8 255.255.255.0 RB(config-if)#no shutdown RB(config-if)#exit

RB(config)#interface loopback 0

RB(config-if)#ip address 201.16.1.1 255.255.255.0 RB(config-if)#exit

RB(config)#interface loopback 1

RB(config-if)#ip address 201.16.2.1 55.255.255.0 RB(config-if)#exit

第二步:在两台路由器上配置RIP路由协议

RA(config)#router rip

RA(config-router)#network 192.168.1.0 RA(config-router)#network 200.16.1.0 RA(config-router)#network200.16.2.0 RA(config-router)#exit

RB(config)#router rip

RB(config-router)#network 192.168.1.0

RB(config-router)#network201.16.1.0 RB(config-router)#network 201.162.0 RB(config-router)#exi

(以下为实验配置信息显示,标记项为重要数据,红色字为注释) 第三步:查看RIP配置信息,路由表 RA#show ip route

Codes: C - connected, S - static, I - IGRP, R - RIP, M - mobile, B - BGP D - EIGRP, EX - EIGRP external, O - 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

C 192.168.1.0/24 is directly connected, FastEthernet0/0 C 200.16.1.0/24 is directly connected, Loopback0 C 200.16.2.0/24 is directly connected, Loopback1

R 201.16.1.0/24 [120/1] via 192.168.1.8, 00:00:04, FastEthernet0/0 R 201.16.2.0/24 [120/1] via 192.168.1.8, 00:00:04, FastEthernet0/0

此项显示通过rip协议学习到的路由信息,200.16.1.0、200.16.2.0为目标网段,[120/1]120表示rip管理距离默认是120,1是该路由的跳数,192316831.0是到达目标网络的下一跳点的ip地址,00:00:04是此条路由产生的时间,FastEthernet0/0此条路由使用的接口,令外,C表示直连网段

RB#show ip route

Codes: C - connected, S - static, I - IGRP, R - RIP, M - mobile, B - BGP D - EIGRP, EX - EIGRP external, O - 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

C 192.168.1.0/24 is directly connected, FastEthernet0/0

R 200.16.1.0/24 [120/1] via 192.168.1.3, 00:00:26, FastEthernet0/0 R 200.16.2.0/24 [120/1] via 192.168.1.3, 00:00:26, FastEthernet0/0 C 201.16.1.0/24 is directly connected, Loopback0 C 201.16.2.0/24 is directly connected, Loopback1 参考RA注释

RA#show ip protocols

Routing Protocol is \

Sending updates every 30 seconds, next due in 22 seconds Invalid after 180 seconds, hold down 180, flushed after 240

每30s更新一次,无效计时器180s,抑制计时器180s,刷新计时器240s Outgoing update filter list for all interfaces is not set Incoming update filter list for all interfaces is not set Redistributing: rip

Default version control: send version 1, receive any version

Interface Send Recv Triggered RIP Key-chain Loopback0 1 2 1 Loopback1 1 2 1 FastEthernet0/0 1 2 1

默认情况下,回环接口loopback0、loopback1、fa0/0均发送RIPv1数据包,接收RIPv1、RIPv2数据包

Automatic network summarization is in effect Maximum path: 4 Routing for Networks: 192.168.1.0 200.16.1.0 200.16.2.0 Passive Interface(s):

Routing Information Sources: Gateway Distance Last Update 192.168.1.8 120 00:00:04 Distance: (default is 120)

RB#show ip protocols

Routing Protocol is \

Sending updates every 30 seconds, next due in 26 seconds Invalid after 180 seconds, hold down 180, flushed after 240 Outgoing update filter list for all interfaces is not set Incoming update filter list for all interfaces is not set Redistributing: rip

Default version control: send version 1, receive any version

搜索更多关于: RIP路由协议基本配置附数据详解 的文档
  • 收藏
  • 违规举报
  • 版权认领
下载文档10.00 元 加入VIP免费下载
推荐下载
本文作者:...

共分享92篇相关文档

文档简介:

实验 RIP路由协议基本配置 【实验名称】 RIP路由协议基本配置 【实验目的】 掌握在路由器上如何配置RIP路由协议 【背景描述】 假设在校园网在地理上分为2个区域,每个区域内分别有一台路由器连接了2个子网,需要将两台路由器通过以太网链路连接在一起并进行适当的配置,以实现这4个子网之间的互联互通。为了在未来每个校园区域扩充子网数量的时候,管理员不需要同时更改路由器的配置,计划使用RIP路由协议实现子网之间的互通。 【需求分析】 两台路由器通过快速以太网端口连接在一起,每个路由器上设置Loopback端口模拟子网,在所有端口运行RIP路由协议,实现所有子网间的互通。 2个【实验拓扑】 RALo 0200.16.1.

× 游客快捷下载通道(下载后可以自由复制和排版)
单篇付费下载
限时特价:10 元/份 原价:20元
VIP包月下载
特价:29 元/月 原价:99元
低至 0.3 元/份 每月下载150
全站内容免费自由复制
VIP包月下载
特价:29 元/月 原价:99元
低至 0.3 元/份 每月下载150
全站内容免费自由复制
注:下载文档有可能“只有目录或者内容不全”等情况,请下载之前注意辨别,如果您已付费且无法下载或内容有问题,请联系我们协助你处理。
微信:fanwen365 QQ:370150219
Copyright © 云题海 All Rights Reserved. 苏ICP备16052595号-3 网站地图 客服QQ:370150219 邮箱:370150219@qq.com