RIP与EIGRP的简单配置(缺少说明)

合集下载

最新Rip_Ospf_Eigrp区别以及配置

最新Rip_Ospf_Eigrp区别以及配置

我们前面已经简单介绍了三种类型的动态路由协议算法分别是距离矢量算法,1链路状态算法以及平衡混合算法,那么咱们今天就来看看这几种算法的类型代2表:RIP、OSPF、EIGRP。

而且它们都是内部网关协议(IGP),也就是说它们都3运行在一个自治系统内部,什么是自治系统,我们来简单看一下:45自治系统:就是使用相同路由准则的网络集合,一般是一个ISP,6或者是一个大型的行政机构。

大家刚听到这个术语时会感到有点模糊,有点抽象,7在CCNP的课程中会有详细的介绍,我们CCNA部分很少会用到自治系统间的协议,8使用的基本上都是自治系统内的协议。

所以如果按照在自动系统内运行还是用于9连接不同的自治系统,路由协议又分为两种:10IGP:内部网关协议,在一个自治系统内运行。

比如:RIP、OSPF、IS-IS、EIGRP 11等。

12EGP:外部网关协议,用于连接不同的自治系统。

比如:BGP1314在12.3(2)T之前的Cisco IOS版本中,IP路由选择协议支持的最大平行路15由(成本相等的路由)数为6,而在12.3(2)T中,支持的最大平行路由数为1616。

17BGP要求静态地指定邻居。

18Rip v1属于分类路由选择协议。

Rip v2、EIGRP、OSPF、IS-IS和BGP属于无19类路由选择协议。

使用分类路由选择协议时,必须是连续网络,汇总才不会出现20问题。

使用无类路由选择协议时,支持VLSM。

如果路由选择表中有多个与目标21地址匹配的条目,则将使用前缀最长的匹配条目。

22对于RIPv2和EIGRP,可以使用路由器配置命令no auto-summary来禁用自23动汇总。

24IGRP、EIGRP、IS-IS是思科私有协议。

25管理距离是0-255的值,管理距离越小,协议的可信度越高。

26静态路由:27Example:28ip route 172.16.1.0 255.255.255.0 s0/0/0(可用来到达目标网络29的本地路由器出站接口)30ip route 172.16.1.0 255.255.255.0 192.168.1.1(可用来到达目31标网络的下一跳的IP地址)32静态默认路由:ip route 0.0.0.0 0.0.0.0 172.16.1.033按需静态路由:34ODR(on demand routing)只适合于中央-分支拓扑。

路由协议EIGRP配置

路由协议EIGRP配置

路由协议EIGRP配置EIGRP(Enhanced Interior Gateway Routing Protocol)是一种基于距离矢量算法的内部网关路由协议,主要用于在大型企业网络中实现路由器之间的动态路由。

本文将介绍EIGRP的配置过程,以帮助读者更好地理解和应用该协议。

1. EIGRP的基本概念EIGRP是一种高效可靠的路由协议,具有以下特点:- 支持VLSM(可变长度子网掩码):可以根据网络需求分配不同的子网掩码。

- 支持CIDR(无类别域间路由):能够将多个连续的IP地址作为一个整体进行路由计算。

- 支持自动汇总:能够将多个子网自动合并为一个超网,减小路由表的规模。

- 支持无环路:使用DUAL(Diffusing Update Algorithm)算法,有效解决了路由循环的问题。

2. EIGRP的配置步骤在配置EIGRP之前,需要了解以下参数:- 自治系统号(AS number):EIGRP所在的自治系统号,范围为1~65535。

- 路由器ID:用于区分不同的路由器,可以是IP地址的一部分,也可以手动指定。

下面是EIGRP的配置步骤:步骤1:进入路由器配置模式```Router# configure terminal```步骤2:配置EIGRP进程和AS号```Router(config)# router eigrp <AS号>```步骤3:添加网络```Router(config-router)# network <网络地址>```此命令将指定哪些接口将被EIGRP协议使用。

可以指定单个IP地址、子网地址或主机地址。

步骤4:配置路由器ID(可选)```Router(config-router)# eigrp router-id <路由器ID>```使用此命令可以手动指定路由器ID,如果不手动指定,将使用默认的路由器ID。

步骤5:配置其他可选参数(可选)根据需要,可以配置其他参数,如带宽、延迟、可靠性等。

(实验二)rip,eigrp,ospf路由实验

(实验二)rip,eigrp,ospf路由实验

一、实验目的通过本次实验,验证了动态路由协议的工作状态,了解动态路由的工作模式。

二、设备需求计算机一台,实验所需的模拟器软件。

三、拓扑结构及接口IP配置实验的拓扑结构如图所示。

各设备之间如图所示连接起来。

实验的拓扑结构各路由器使用的接口及其编号见图所示的标注,各接口IP地址分配如下:RouterA: fa0/0:192.168.1.1 fa0/1:172.1.1.1RouterB:fa0/0:172.1.1.2 fa0/1:192.168.2.1 se0/0:172.2.1.1RouterC: se0/0:172.2.1.2 fa0/0:192.168.3.1PC0:192.168.1.2PC1:192.168.2.2PC2:192.168.3.2四、实验配置文档由于ip配置等信息在实验一中已完成,这里只给出配置rip,eigrp和ospf的配置过程。

1.RIP的配置:RouterA:Router(config)#no ip route 172.2.0.0 255.255.0.0 172.1.1.2Router(config)#no ip route 192.168.2.0 255.255.255.0 172.1.1.2 Router(config)#no ip route 192.168.3.0 255.255.255.0 172.1.1.2 Router(config)#router ripRouter(config-router)#version 2Router(config-router)#network 192.168.1.0Router(config-router)#network 172.1.0.0Router(config-router)#^Z其他配置省略RouterB:Router(config)#no ip route 192.168.1.0 255.255.255.0 172.2.1.1 Router(config)#no ip route 192.168.2.0 255.255.255.0 172.2.1.1 Router(config)#no ip route 172.1.0.0 255.255.0.0 172.2.1.1Router(config)#router ripRouter(config-router)#version 2Router(config-router)#network 172.2.0.0Router(config-router)#network 192.168.3.0Router(config-router)#^Z其他配置省略RouterC:Router(config)#no ip route 192.168.1.0 255.255.255.0 172.1.1.1 Router(config)#no ip route 192.168.3.0 255.255.255.0 172.2.1.2 Router(config)#router ripRouter(config-router)#version 2Router(config-router)#network 172.1.0.0Router(config-router)#network 172.2.0.0Router(config-router)#network 192.168.2.0Router(config-router)#^Z其他配置省略2. ospf的配置RouterA:Router(config)#router ospf 10Router(config-router)#network 192.168.1.0 0.0.0.255 area 0Router(config-router)#network 172.1.0.0 0.0.255.255 area 0Router(config-router)#^ZRouterB:Router(config)#router ospf 10Router(config-router)#network 172.1.0.0 0.0.255.255 area 0Router(config-router)#network 172.2.0.0 0.0.255.255 area 0Router(config-router)#network 192.168.2.0 0.0.0.255 area 0Router(config-router)#^ZRouterC:Router(config)#router ospf 10Router(config-router)#network 172.2.0.0 0.0.255.255 area 0Router(config-router)#network 192.168.3.0 0.0.0.255 area 0Router(config-router)#^Z3.eigrpd的配置:RouterA:Router(config)#router eigrp 11Router(config-router)#network 192.168.1.0 0.0.0.255Router(config-router)#network 172.1.0.0 0.0.255.255Router(config-router)#^ZRouterB:Router(config)#router eigrp 11Router(config-router)#network 172.1.0.0 0.0.255.255Router(config-router)#network 172.2.0.0 0.0.255.255Router(config-router)#network 192.168.2.0 0.0.0.255Router(config-router)#^ZRouterC:Router(config)#router eigrp 11Router(config-router)#network 172.2.0.0 0.0.255.255Router(config-router)#network 192.168.3.0 0.0.0.255Router(config-router)#^Z五、验证实验结果1、三种动态协议下的show ip route都是一样的该命令显示路由器的IP路由选择表,详细指出了路由器是如何获悉网络和发现路由的,该命令如下:RouteA#sh ip routeC 172.1.0.0/16 is directly connected, FastEthernet0/1R 172.2.0.0/16 [120/1] via 172.1.1.2, 00:00:25, FastEthernet0/1C 192.168.1.0/24 is directly connected, FastEthernet0/0R 192.168.2.0/24 [120/1] via 172.1.1.2, 00:00:25, FastEthernet0/1R 192.168.3.0/24 [120/2] via 172.1.1.2, 00:00:25, FastEthernet0/1 RouteB#sh ip routeR 172.1.0.0/16 [120/1] via 172.2.1.1, 00:00:24, Serial0/0C 172.2.0.0/16 is directly connected, Serial0/0R 192.168.1.0/24 [120/2] via 172.2.1.1, 00:00:24, Serial0/0R 192.168.2.0/24 [120/1] via 172.2.1.1, 00:00:24, Serial0/0C 192.168.3.0/24 is directly connected, FastEthernet0/0RouteC#sh ip routeC 172.1.0.0/16 is directly connected, FastEthernet0/0C 172.2.0.0/16 is directly connected, Serial0/0R 192.168.1.0/24 [120/1] via 172.1.1.1, 00:00:04, FastEthernet0/0C 192.168.2.0/24 is directly connected, FastEthernet0/1R 192.168.3.0/24 [120/1] via 172.2.1.2, 00:00:21, Serial0/02、ping 指令的使用从pc0去ping pc2,如果能ping通,说明动态路由工作正常,如果不能ping通,所以有其他错误存在,需要检查硬件和其他配置。

动态路由协议(RIP、EIGRP、OSPF)

动态路由协议(RIP、EIGRP、OSPF)

动态路由选择协议(RIP、EIGRP、OSPF)✧基本概念:◆自治系统(AS):在同一个AS中的所有路由器共享相同的路由表信息。

◆管理距离(AD):用来衡量路由选择信息的可信度,不同的路由选择协议具有不同的管理距离。

0—255的整数,0是最可信的,255则意味着不会使用此路由。

◆度量值:度量值代表距离。

它们用来在寻找路由时确定最优路由。

每一种路由算法在产生路由表时,会为每一条通过网络的路径产生一个数值(度量值),最小的值表示最优路径。

度量值的计算可以只考虑路径的一个特性,但更复杂的度量值是综合了路径的多个特性产生的。

◆CIDR(无类别域间路由选择):它是将好几个IP网络结合在一起,使用一种无类别的域际路由选择算法,可以减少由核心路由器运载的路由选择信息的数量。

◆VLSM (可变长子网掩码):对同一个主类网络下的不同子网指定不同子网掩码的功能。

◆不连续的网络:将两个或更多的有类网络的子网,通过不同的有类网络连接在一起的网络。

◆自动汇总(auto-summary):通告路由时自动的将子网汇总成有类网段再通告。

◆动态路由选择协议的分类:第一种分类:1.内部网关协议(IGP):用于同一个自治系统(AS)中的路由器之间交换路由选择信息。

如:RIP、EIGRP、OSPF等。

2.外部网关协议(EGP):用于在AS之间通信。

如:BGP等。

第二种分类:1.距离矢量协议:通过判断距离查找最佳路径,数据包每通过一台路由器,称为一跳。

跳数最少被认为是最佳路由。

如:RIP、IGRP等。

2.链路状态协议:也称为最短路径优先协议,将创建3个独立的表(邻居表、拓扑表、路由选择表)。

如:OSPF等。

3.混合型:是距离矢量协议和链路状态协议的结合体。

如:EIGRP等。

✧距离矢量路由选择协议◆距离矢量路由选择协议:距离矢量路由选择算法发送完整的路由表到相邻的路由器,相邻的路由器会将接收到的路由表与自己原有的路由表进行组合,以完善自己的路由表。

实验RIP路由协议的配置报告

实验RIP路由协议的配置报告
【实验问题】
1.RIP,IGRP,EIGRP三种路由协议有什么不同?各协议分别适用应用在什么网络?
答:不同种类的路由协议。RIP和IGRP之间的主要区别是距离矢量协议;EIGRP主要是连接状态协议。配置RIP动态路由协议是通用的路由协议,而IGRP,EIGRP是CISCO专用的路由协议。
【实验心得和体会】
2.配置路由器r2
1)清空路由器原有配置
[Router]reset saved-configuration
[Router]reboot
2)更改路由器名称
[Router]sysname r2
3)配置s0接口
[r2]interface s0
[r2-serial0]link-protocol ppp
[r2-serial0]ip address 192.168.3.2 255.255.255.0
了解了RIP的基本知识,掌握了它的基本作用,适用于小型的同类网络,它以从源端到目的端所经过的路由器个数作为唯一的度量标准,从实验的错误中体会到成功的喜悦,从实验中体会到知识的无穷,从实践中学到了知识。
指导教师评语及成绩:
评语:
成绩:指导教师签名:
批阅日期:
实验内容:
【实验步骤】
1.配置路由器r1
1)清空路由器原有配置
[Router]reset saved-configuration
[Router]reboot
2)更改路由器名称
[Router]sysname r1
3)配置s0接口
[r1]interface s0
[r1-serial0]link-protocol ppp
[r1-serial0]ip address 192.168.3.1 255.255.255.0

路由协议重分发(RIP OSPF EIGRP)

路由协议重分发(RIP OSPF EIGRP)

路由协议重分发设备接口Ip地址子网掩码R1 F0/0 192.168.1.1 255.255.255.0Loopback 0 1.1.1.1 255.255.255.0 R2 F1/0 192.168.2.1 255.255.255.0Loopback 0 2.2.2.2 255.255.255.0 R3 F0/0 192.168.3.1 255.255.255.0Loopback 0 3.3.3.3 255.255.255.0 R4 F0/0 192.168.1.2 255.255.255.0F1/0 192.168.2.2 255.255.255.0F6/0 192.168.3.2 255.255.255.01.路由器的基本配置R1Router>Router>enableRouter#conf tRouter(config)#hostname R1R1(config)#int f0/0R1(config-if)#ip add 192.168.1.1 255.255.255.0R1(config-if)#no shutR1(config-if)#exitR1(config)#int lR1(config)#int loopback 0R1(config-if)#ip add 1.1.1.1 255.255.255.0R1(config-if)#no shutR1(config-if)#exitR1(config)#R2Router>Router>enableRouter#conf tRouter(config)#hostname R2R2(config)#int f1/0R2(config-if)#ip add 192.168.2.1 255.255.255.0 R2(config-if)#no shutR2(config-if)#exitR2(config)#int loopback 0R2(config-if)#ip add 2.2.2.2 255.255.255.0R2(config)#R3Router>enableRouter#conf tRouter(config)#hostname R3R3(config)#int f0/0R3(config-if)#ip add 192.168.3.1 255.255.255.0 R3(config-if)#no shutR3(config-if)#exitR3(config)#int lR3(config)#int loopback 0R3(config-if)#ip add 3.3.3.3 255.255.255.0R3(config-if)#exitR3(config)#R4Router>enableRouter#conf tRouter(config)#hostname R4R4(config)#int f0/0R4(config-if)#ip ad 192.168.1.2 255.255.255.0 R4(config-if)#no shutR4(config-if)#exitR4(config)#int f1/0R4(config-if)#ip add 192.168.2.2 255.255.255.0 R4(config-if)#no shutR4(config-if)#exitR4(config)#int f6/0R4(config-if)#ip add 192.168.3.2 255.255.255.0R4(config-if)#no shutR4(config-if)#exitR4(config)#2.配置路由器协议R1:RIP协议R1(config)#router ripR1(config-router)#version 2R1(config-router)#no auto-summaryR1(config-router)#net 192.168.1.0R1(config-router)#net 1.1.1.1R1(config-router)#exitR2:OSPF协议R2(config)#router ospf 1R2(config-router)#network 192.168.2.0 0.0.0.255 area 0 R2(config-router)#network 2.2.2.0 0.0.0.255 area 0R2(config-router)#exitR3:EIGRP协议R3(config)#router eigrp 1R3(config-router)#no auto-summaryR3(config-router)#network 192.168.3.0R3(config-router)#network 3.3.3.0R3(config-router)#exitR4:RIPR4(config)#router ripR4(config-router)#version 2R4(config-router)#no auto-summaryR4(config-router)#network 192.168.1.0R4(config-router)#exitOSPFR4(config)#router ospf 1R4(config-router)#net 192.168.2.0 0.0.0.255 aR4(config-router)#net 192.168.2.0 0.0.0.255 area 0R4(config-router)#exitEIGRPR4(config)#router eigrp 1R4(config-router)#no auto-summaryR4(config-router)#network 192.168.3.0R4(config-router)#exitR4(config)#测试R4#show ip routeCodes: C - connected, S - static, I - IGRP, R - RIP, M - mobile, B - BGPD - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter areaN1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2E1 - OSPF external type 1, E2 - OSPF external type 2, E - EGPi - 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 - ODRP - periodic downloaded static routeGateway of last resort is not set1.0.0.0/24 is subnetted, 1 subnetsR 1.1.1.0 [120/1] via 192.168.1.1, 00:00:02, FastEthernet0/02.0.0.0/32 is subnetted, 1 subnetsO 2.2.2.2 [110/2] via 192.168.2.1, 00:01:10, FastEthernet1/03.0.0.0/24 is subnetted, 1 subnetsD 3.3.3.0 [90/] via 192.168.3.1, 00:00:55, FastEthernet6/0C 192.168.1.0/24 is directly connected, FastEthernet0/0C 192.168.2.0/24 is directly connected, FastEthernet1/0C 192.168.3.0/24 is directly connected, FastEthernet6/0R4#配置路由协议重分发RIPR4(config)#router ripR4(config-router)#redistribute ospf 1 metric 3R4(config-router)#redistribute eigrp 1 metric 3R4(config-router)#exitR1#show ip routeCodes: C - connected, S - static, I - IGRP, R - RIP, M - mobile, B - BGPD - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter areaN1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2E1 - OSPF external type 1, E2 - OSPF external type 2, E - EGPi - 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 - ODRP - periodic downloaded static routeGateway of last resort is not set1.0.0.0/24 is subnetted, 1 subnetsC 1.1.1.0 is directly connected, Loopback02.0.0.0/32 is subnetted, 1 subnetsR 2.2.2.2 [120/3] via 192.168.1.2, 00:00:11, FastEthernet0/03.0.0.0/24 is subnetted, 1 subnetsR 3.3.3.0 [120/3] via 192.168.1.2, 00:00:11, FastEthernet0/0C 192.168.1.0/24 is directly connected, FastEthernet0/0R 192.168.2.0/24 [120/3] via 192.168.1.2, 00:00:11, FastEthernet0/0R 192.168.3.0/24 [120/3] via 192.168.1.2, 00:00:11, FastEthernet0/0R1#OSPFR4(config)#router ospf 1R4(config-router)#redistribute rip subnetsR4(config-router)#redistribute eigrp 1 subnetsR4(config-router)#R2#show ip routeCodes: C - connected, S - static, I - IGRP, R - RIP, M - mobile, B - BGPD - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter areaN1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2E1 - OSPF external type 1, E2 - OSPF external type 2, E - EGPi - 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 - ODRP - periodic downloaded static routeGateway of last resort is not set1.0.0.0/24 is subnetted, 1 subnetsO E2 1.1.1.0 [110/20] via 192.168.2.2, 00:00:40, FastEthernet1/02.0.0.0/24 is subnetted, 1 subnetsC 2.2.2.0 is directly connected, Loopback03.0.0.0/24 is subnetted, 1 subnetsO E2 3.3.3.0 [110/20] via 192.168.2.2, 00:00:29, FastEthernet1/0O E2 192.168.1.0/24 [110/20] via 192.168.2.2, 00:00:40, FastEthernet1/0C 192.168.2.0/24 is directly connected, FastEthernet1/0O E2 192.168.3.0/24 [110/20] via 192.168.2.2, 00:00:29, FastEthernet1/0 EIGRPR4(config)#router eigrp 1R4(config-router)#redistribute rip metric 15000 10 255 1 1500R4(config-router)#redistribute ospf 1 metric 15000 10 255 1 1500R4(config-router)#exitR4(config)#R3#show ip routeCodes: C - connected, S - static, I - IGRP, R - RIP, M - mobile, B - BGPD - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter areaN1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2E1 - OSPF external type 1, E2 - OSPF external type 2, E - EGPi - 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 - ODRP - periodic downloaded static routeGateway of last resort is not set1.0.0.0/24 is subnetted, 1 subnetsD EX 1.1.1.0 [170/] via 192.168.3.2, 00:02:12, FastEthernet0/02.0.0.0/32 is subnetted, 1 subnetsD EX 2.2.2.2 [170/] via 192.168.3.2, 00:01:43, FastEthernet0/03.0.0.0/24 is subnetted, 1 subnetsC 3.3.3.0 is directly connected, Loopback0D EX 192.168.1.0/24 [170/] via 192.168.3.2, 00:02:12, FastEthernet0/0D EX 192.168.2.0/24 [170/] via 192.168.3.2, 00:01:43, FastEthernet0/0C 192.168.3.0/24 is directly connected, FastEthernet0/0R3#最后测试所有地址能通信R1#ping 2.2.2.2Type escape sequence to abort.Sending 5, 100-byte ICMP Echos to 2.2.2.2, timeout is 2 seconds:!!!!!Success rate is 100 percent (5/5), round-trip min/avg/max = 0/0/0 msR1#ping 3.3.3.3Type escape sequence to abort.Sending 5, 100-byte ICMP Echos to 3.3.3.3, timeout is 2 seconds:!!!!!Success rate is 100 percent (5/5), round-trip min/avg/max = 0/0/1 msR1#R2#ping 1.1.1.1Type escape sequence to abort.Sending 5, 100-byte ICMP Echos to 1.1.1.1, timeout is 2 seconds:!!!!!Success rate is 100 percent (5/5), round-trip min/avg/max = 0/0/1 msR2#ping 3.3.3.3Type escape sequence to abort.Sending 5, 100-byte ICMP Echos to 3.3.3.3, timeout is 2 seconds: !!!!!Success rate is 100 percent (5/5), round-trip min/avg/max = 0/0/1 msR3#ping 1.1.1.1Type escape sequence to abort.Sending 5, 100-byte ICMP Echos to 1.1.1.1, timeout is 2 seconds: !!!!!Success rate is 100 percent (5/5), round-trip min/avg/max = 0/0/1 ms R3#ping 2.2.2.2Type escape sequence to abort.Sending 5, 100-byte ICMP Echos to 2.2.2.2, timeout is 2 seconds: !!!!!Success rate is 100 percent (5/5), round-trip min/avg/max = 0/0/1 ms R3#。

华为路由器RIP简单配置步骤

华为路由器RIP简单配置步骤

华为路由器RIP简单配置步骤路由器系统构成了基于TCP/IP 的国际互联网络Internet 的主体脉络,也可以说,路由器构成了Internet的骨架。

这篇文章主要介绍了华为路由器RIP简单配置步骤,需要的朋友可以参考下具体介绍session 1 rip协议rip是一种动态路由协议,使用跳数作为度量标准,是距离矢量路由协议,是一种谣传式的路由协议。

rip路由协议目前有2个版本,version 1 使用广播收发rip报文,并且不支持无类路由(更新报文中不带子网掩码)。

version 2 使用组播或者广播(可以修改,默认组播)收发rip报文,支持无类路由(更新报文中带子网掩码)rip宣告网络只支持主类网络。

rip是有进程之分的,可以同时运行多个rip进程,但是进程之间相互独立,如果要不同进程宣告网络,那么就必须在不同进程中相互重分发路由。

rip的路由防环机制有:1、最大跳数:当一条路由到达16跳时,该路由失效,rip最大为16跳,也就是说最多可以经过16台设备,限制了网络的大小。

2、水平分割:单向宣告网络,从一个接口收到的路由不会再从该接口宣告出去。

3、毒性逆转:优化水平分割,从一个接口收到的路由会再从该接口宣告出去,但是该路由的跳数会自动设为16跳不可达。

4、保持计时器:,收到的不可达路由信息被抑制的时间,默认180s,180s内路由器不会接受和发送该抑制路由的更新信息,若180s后没有更优的路由,该抑制路由将被删除。

session 2 rip的配置一、rip的认证[Huawei-GigabitEthernet0/0/0]rip authentication-mode md5 usual cipher 123 在接口上做rip认证,MD5密文通用格式的加密,密码123(两端都需要配置)二、rip报文的单播发送和更新源检查1、单播发送rip报文,应用于NBMA非广播多路网络,如framerelay、ATM、X.25,解决了这些网络无法收发组播和广播报文的问题[Huawei]rip 1[Huawei-rip-1]peer 12.1.1.2 手动指定单播发送的rip邻居[Huawei-rip-1]quit2、rip检查更新源会检测对端接口是否和本端接口在同一个网段,在P2P网络中链路的两端ip地址属于不同的网段,必须取消报文源检测才能建立邻居关系[Huawei]rip 1[Huawei-rip-1]undo verify-source 关闭了更新源检测,默认情况下已开启[Huawei-rip-1]quit三、rip的发布聚合路由[Huawei]interface g0/0/0[Huawei-GigabitEthernet0/0/1]rip summary-address 192.168.0.0 255.255.0.0 avoid-feedback 向外宣告一条聚合路由,并且禁止从该接口学习到相同的聚合路由,以防止产生路由环路四、路由防环命令1、水平分割,开启水平分割功能,默认开启。

rip路由协议基本配置 rip路由协议工作原理

rip路由协议基本配置 rip路由协议工作原理

RIP路由协议基本配置1. RIP路由协议简介RIP(Routing Information Protocol)是一种基于距离向量的路由协议,用于在小型网络中动态交换路由信息。

RIP通过广播更新路由表,支持最多15个跳数的路由,并使用跳数作为路径选择的度量。

RIP路由协议的基本配置包括以下几个步骤:2. 配置RIP路由协议2.1 确认网络拓扑在开始配置RIP路由协议之前,需要先确认网络拓扑。

了解网络中存在的子网和路由器之间的连接关系是非常重要的。

2.2 启用RIP路由协议配置RIP路由协议的第一步是启用协议。

在路由器上使用如下命令启用RIP路由协议:Router(config)# router rip2.3 添加网络到RIP协议接下来,需要将网络添加到RIP路由协议中。

使用以下命令将网络添加到RIP协议:Router(config-router)# network <network_address>其中,<network_address>是需要添加的网络地址。

可以使用通配符来指定多个网络。

2.4 配置其他参数除了添加网络之外,还可以配置其他参数来优化RIP路由协议的性能。

下面是一些常用的配置参数:•版本选择: RIP有两个版本,RIP v1和RIP v2。

RIP v1仅支持IPv4,而RIP v2则支持IPv4和IPv6。

可以使用以下命令选择RIP的版本:Router(config-router)# version {1 | 2}•跳数限制: 默认情况下,RIP最大支持15个跳数。

可以使用以下命令修改跳数限制:Router(config-router)# maximum-path <number>•路由定时器: RIP使用路由定时器来控制路由更新的频率。

可以使用以下命令调整路由定时器的值:Router(config-router)# timers basic <update_interval> <i nvalid_interval> <holddown_interval>3. RIP路由协议工作原理RIP路由协议的工作原理基于距离向量算法。

  1. 1、下载文档前请自行甄别文档内容的完整性,平台不提供额外的编辑、内容补充、找答案等附加服务。
  2. 2、"仅部分预览"的文档,不可在线预览部分如存在完整性等问题,可反馈申请退款(可完整预览的文档不适用该条件!)。
  3. 3、如文档侵犯您的权益,请联系客服反馈,我们会尽快为您处理(人工客服工作时间:9:00-18:30)。

《作业:配置RIPv2与EIGRP》一、实验拓扑二、实验要求1、按照实验拓扑配置IP地址。

2、配置RIPv2,实现总部与分部内网之间能够相互通信。

3、配置EIGRP,实现总部与分部内网之间能够相互通信。

三、实验步骤配置各路由器所需IP:R1的配置:R1(config-if)#ip add 192.168.1.1 255.255.255.0R1(config-if)#no shuR1(config-if)#int f0/0R1(config-if)#ip add 10.2.2.1 255.255.255.0R1(config-if)#no shuR1(config)#int f0/1R1(config-if)#ip add 10.3.3.1 255.255.255.252R1(config-if)#no shuR1#show pint briefInterface IP-Address OK? Method Status Protocol FastEthernet0/0 10.2.2.1 YES manual up up FastEthernet0/1 10.3.3.1 YES manual up up Loopback0 192.168.1.1 YES manual up up R2的配置:R2(config)#int lo 1R2(config-if)#ip add 192.168.2.1 255.255.255.0R2(config-if)#no shuR2(config-if)#int f0/0R2(config-if)#ip add 10.2.2.2 255.255.255.252R2(config-if)#no shuR2#show pint briefInterface IP-Address OK? Method Status ProtocolFastEthernet0/0 10.2.2.2 YES manual up up FastEthernet0/1 unassigned YES unset administratively down down Loopback1 192.168.2.1 YES manual up upR3的配置:R3(cinfig)#int lo 2R3(config-if)#ip add 192.168.3.1 255.255.255.0R3(config-if)#no shuR3(config-if)#int f0/1R3(config-if)#ip add 10.3.3.2 255.255.255.252R3(config-if)#no shuR3(config-if)#endR3#show pint briefInterface IP-Address OK? Method Status Protocol FastEthernet0/0 unassigned YES unset administratively down down FastEthernet0/1 10.3.3.2 YES manual up up Loopback2 192.168.3.1 YES manual up up测试两直连路由间是否能通:R1#ping 10.2.2.2Type escape sequence to abort.Sending 5, 100-byte ICMP Echos to 10.2.2.2, timeout is 2 seconds:.!!!!Success rate is 80 percent (4/5), round-trip min/avg/max = 8/12/20 msR1#ping 10.3.3.2Type escape sequence to abort.Sending 5, 100-byte ICMP Echos to 10.3.3.2, timeout is 2 seconds:.!!!!Success rate is 80 percent (4/5), round-trip min/avg/max = 8/12/16 ms配置R.I.P.v2,实现所有网段之间相互通信:R2:R2(config)#router ripR2(config-router)#v 2R2(config-router)#no auR2(config-router)#no auto-summaryR2(config-router)#net 192.168.2.0R2(config-router)#net 10.2.2.0R2(config-router)#endR2#show run | section router riprouter ripversion 2network 10.0.0.0network 192.168.2.0no auto-summaryR2#show ip protocolsRouting Protocol is “rip”Outgoing update filter list for all interfaces is not setIncoming update filter list for all interfaces is not setSending updates every 30 seconds, next due in 16 secondsInvalid after 180 seconds, hold down 180, flushed after 240 Redistributing: ripDefault version control: send version 2, receive version 2Interface Send Recv Triggered RIP Key-chain FastEthernet0/0 2 2Loopback1 2 2Automatic network summarization is not in effectMaximum path: 4Routing for Networks:10.0.0.0192.168.2.0Routing Information Sources:Gateway Distance Last UpdateDistance: (default is 120)R1:R1(config)#router ripR1(config-router)#v 2R1(config-router)#no auR1(config-router)#no auto-summaryR1(config-router)#net 192.168.1.0R1(config-router)#net 10.2.2.0R1(config-router)#net 10.3.3.0R1(config-router)#endR1#show run | section router riprouter ripversion 2network 10.0.0.0network 192.168.1.0no auto-summaryR1#show ip protocolsRouting Protocol is “rip”Outgoing update filter list for all interfaces is not setIncoming update filter list for all interfaces is not setSending updates every 30 seconds, next due in 25 secondsInvalid after 180 seconds, hold down 180, flushed after 240 Redistributing: ripDefault version control: send version 2, receive version 2Interface Send Recv Triggered RIP Key-chain FastEthernet0/0 2 2FastEthernet0/1 2 2Loopback0 2 2Automatic network summarization is not in effectMaximum path: 4Routing for Networks:10.0.0.0192.168.1.0Routing Information Sources:Gateway Distance Last Update10.2.2.2 120 00:00:01Distance: (default is 120)R3:R3(config)#router ripR3(config-router)#v 2R3(config-router)#no auto-summaryR3(config-router)#net 192.168.3.0R3(config-router)#net 10.3.3.0R3(config-router)#endR3#show run | section router riprouter ripversion 2network 10.0.0.0network 192.168.3.0no auto-summaryR3#show ip protocolsRouting Protocol is “rip”Outgoing update filter list for all interfaces is not setIncoming update filter list for all interfaces is not setSending updates every 30 seconds, next due in 21 secondsInvalid after 180 seconds, hold down 180, flushed after 240 Redistributing: ripDefault version control: send version 2, receive version 2Interface Send Recv Triggered RIP Key-chain FastEthernet0/1 2 2Loopback2 2 2Automatic network summarization is not in effectMaximum path: 4Routing for Networks:10.0.0.0192.168.3.0Routing Information Sources:Gateway Distance Last Update10.3.3.1 120 00:00:11Distance: (default is 120)检查R1,2,3的路由表:R3#show ip route rip10.0.0.0/30 is subnetted, 2 subnetsR 10.2.2.0 [120/1] via 10.3.3.1, 00:00:16, FastEthernet0/1R 192.168.1.0/24 [120/1] via 10.3.3.1, 00:00:16, FastEthernet0/1R 192.168.2.0/24 [120/2] via 10.3.3.1, 00:00:16, FastEthernet0/1R2#show ip route rip10.0.0.0/30 is subnetted, 2 subnetsR 10.3.3.0 [120/1] via 10.2.2.1, 00:00:11, FastEthernet0/0R 192.168.1.0/24 [120/1] via 10.2.2.1, 00:00:11, FastEthernet0/0R 192.168.3.0/24 [120/2] via 10.2.2.1, 00:00:11, FastEthernet0/0R1#show ip route ripR 192.168.2.0/24 [120/1] via 10.2.2.2, 00:00:05, FastEthernet0/0R 192.168.3.0/24 [120/1] via 10.3.3.2, 00:00:00, FastEthernet0/1测试所有网段间能否通信:R2#ping 10.3.3.2Type escape sequence to abort.Sending 5, 100-byte ICMP Echos to 10.3.3.2, timeout is 2 seconds:!!!!!Success rate is 100 percent (5/5), round-trip min/avg/max = 20/20/24 msR2#ping 10.3.3.2 source 192.168.2.1Type escape sequence to abort.Sending 5, 100-byte ICMP Echos to 10.3.3.2, timeout is 2 seconds: Packet sent with a source address of 192.168.2.1!!!!!Success rate is 100 percent (5/5), round-trip min/avg/max = 20/23/28 ms R2#ping 192.168.3.1 source 192.168.2.1Type escape sequence to abort.Sending 5, 100-byte ICMP Echos to 192.168.3.1, timeout is 2 seconds: Packet sent with a source address of 192.168.2.1!!!!!Success rate is 100 percent (5/5), round-trip min/avg/max = 28/37/60 msR1路由器:R1#ping 192.168.2.1Type escape sequence to abort.Sending 5, 100-byte ICMP Echos to 192.168.2.1, timeout is 2 seconds: !!!!!Success rate is 100 percent (5/5), round-trip min/avg/max = 4/8/12 ms R1#ping 192.168.3.1Type escape sequence to abort.Sending 5, 100-byte ICMP Echos to 192.168.3.1, timeout is 2 seconds: !!!!!Success rate is 100 percent (5/5), round-trip min/avg/max = 8/12/24 msR1#ping 192.168.3.1 source 192.168.1.1Type escape sequence to abort.Sending 5, 100-byte ICMP Echos to 192.168.3.1, timeout is 2 seconds: Packet sent with a source address of 192.168.1.1!!!!!Success rate is 100 percent (5/5), round-trip min/avg/max = 4/8/12 msR1#ping 192.168.2.1 source 192.168.1.1Type escape sequence to abort.Sending 5, 100-byte ICMP Echos to 192.168.2.1, timeout is 2 seconds: Packet sent with a source address of 192.168.1.1!!!!!Success rate is 100 percent (5/5), round-trip min/avg/max = 12/18/20 ms配置EIGRP先删Rip:R1(config)#no router ripR1(config)#do show ip proR1(config)#R2(config)#no router ripR2(config)#do show ip proR2(config)#R3(config)#no router ripR3(config)#R3(config)#do show ip proR3(config)#各路由器RIP删除成功删除RIP后,配置EIGRPR1:R1(config)#router eigrp 100R1(config-router)#no auR1(config-router)#no auto-summaryR1(config-router)#net 192.168.1.1 0.0.0.0R1(config-router)#net 10.2.2.1 0.0.0.0R1(config-router)#endR1#show run | section router eigrprouter eigrp 100network 10.2.2.1 0.0.0.0network 10.3.3.1 0.0.0.0network 192.168.1.1 0.0.0.0no auto-summaryR1#show ip eigrp interfaceIP-EIGRP interfaces for process 100Xmit Queue Mean Pacing Time Multicast Pending Interface Peers Un/Reliable SRTT Un/Reliable Flow Timer RoutesLo0 0 0/0 0 0/1 0 0 Fa0/0 0 0/0 0 0/1 0 0 Fa0/1 0 0/0 0 0/1 0 0R1#show ip proRouting Protocol is "eigrp 100"Outgoing update filter list for all interfaces is not setIncoming update filter list for all interfaces is not setDefault networks flagged in outgoing updatesDefault networks accepted from incoming updatesEIGRP metric weight K1=1, K2=0, K3=1, K4=0, K5=0EIGRP maximum hopcount 100EIGRP maximum metric variance 1Redistributing: eigrp 100EIGRP NSF-aware route hold timer is 240sAutomatic network summarization is not in effectMaximum path: 4Routing for Networks:10.2.2.1/3210.3.3.1/32192.168.1.1/32Routing Information Sources:Gateway Distance Last UpdateDistance: internal 90 external 170R2的配置R2(config-router)#no auto-summaryR2(config-router)#net 192.168.2.1 0.0.0.0R2(config-router)#net 10.2.2.2 0.0.0.0R2(config-router)#*Mar 1 00:57:59.707: %DUAL-5-NBRCHANGE: IP-EIGRP(0) 100: Neighbor 10.2.2.1 (FastEthernet0/0) is up: new adjacencyR2(config-router)#endR2#s*Mar 1 00:58:03.239: %SYS-5-CONFIG_I: Configured from console by consoleR2#show run | section router eigrprouter eigrp 100network 10.2.2.2 0.0.0.0network 192.168.2.1 0.0.0.0no auto-summaryR2#show ip eigrp intIP-EIGRP interfaces for process 100Xmit Queue Mean Pacing Time Multicast Pending Interface Peers Un/Reliable SRTT Un/Reliable Flow Timer RoutesLo1 0 0/0 0 0/1 0 0Fa0/0 1 0/0 15 0/1 50 0R2#show ip proRouting Protocol is "eigrp 100"Outgoing update filter list for all interfaces is not setIncoming update filter list for all interfaces is not setDefault networks flagged in outgoing updatesDefault networks accepted from incoming updatesEIGRP metric weight K1=1, K2=0, K3=1, K4=0, K5=0EIGRP maximum hopcount 100EIGRP maximum metric variance 1Redistributing: eigrp 100EIGRP NSF-aware route hold timer is 240sAutomatic network summarization is not in effectMaximum path: 4Routing for Networks:10.2.2.2/32192.168.2.1/32Routing Information Sources:Gateway Distance Last Update10.2.2.1 90 00:00:29Distance: internal 90 external 170R3:R3(config-router)#no auto-summaryR3(config-router)#net 192.168.3.1 0.0.0.0R3(config-router)#net 10.3.3.2 0.0.0.0R3(config-router)#*Mar 1 00:59:35.175: %DUAL-5-NBRCHANGE: IP-EIGRP(0) 100: Neighbor 10.3.3.1 (FastEthernet0/1) is up: new adjacencyR3(config-router)#endR3#*Mar 1 00:59:39.731: %SYS-5-CONFIG_I: Configured from console by consoleR3#show run | section router eigrprouter eigrp 100network 10.3.3.2 0.0.0.0network 192.168.3.1 0.0.0.0no auto-summaryR3#show ip eigrp intIP-EIGRP interfaces for process 100Xmit Queue Mean Pacing Time Multicast Pending Interface Peers Un/Reliable SRTT Un/Reliable Flow Timer RoutesLo2 0 0/0 0 0/1 0 0Fa0/1 1 0/0 11 0/1 50 0R3#show ip proRouting Protocol is "eigrp 100"Outgoing update filter list for all interfaces is not setIncoming update filter list for all interfaces is not setDefault networks flagged in outgoing updatesDefault networks accepted from incoming updatesEIGRP metric weight K1=1, K2=0, K3=1, K4=0, K5=0EIGRP maximum hopcount 100EIGRP maximum metric variance 1Redistributing: eigrp 100EIGRP NSF-aware route hold timer is 240sAutomatic network summarization is not in effectMaximum path: 4Routing for Networks:10.3.3.2/32192.168.3.1/32Routing Information Sources:Gateway Distance Last Update10.3.3.1 90 00:00:43Distance: internal 90 external 170检查各路由器间是否建立邻居关系R1#show ip eigrp neighborIP-EIGRP neighbors for process 100H Address Interface Hold Uptime SRTT RTO Q Seq(sec) (ms) Cnt Num1 10.3.3.2 Fa0/1 13 00:01:56 12 200 04 0 10.2.2.2 Fa0/0 12 00:03:31 13 200 0 4 由上可知R1已与R2,R3建立邻居关系检查路由表:R2#show ip route eigrp10.0.0.0/30 is subnetted, 2 subnetsD 10.3.3.0 [90/30720] via 10.2.2.1, 00:06:39, FastEthernet0/0D 192.168.1.0/24 [90/156160] via 10.2.2.1, 00:06:39, FastEthernet0/0D 192.168.3.0/24 [90/158720] via 10.2.2.1, 00:05:04, FastEthernet0/0R2#R1#show ip route eigrpD 192.168.2.0/24 [90/156160] via 10.2.2.2, 00:07:15, FastEthernet0/0D 192.168.3.0/24 [90/156160] via 10.3.3.2, 00:05:39, FastEthernet0/1R3#show ip route eigrp10.0.0.0/30 is subnetted, 2 subnetsD 10.2.2.0 [90/30720] via 10.3.3.1, 00:06:19, FastEthernet0/1D 192.168.1.0/24 [90/156160] via 10.3.3.1, 00:06:19, FastEthernet0/1D 192.168.2.0/24 [90/158720] via 10.3.3.1, 00:06:19, FastEthernet0/1测试所有网段能否通信:R2上测试:R2#ping 10.3.3.2Type escape sequence to abort.Sending 5, 100-byte ICMP Echos to 10.3.3.2, timeout is 2 seconds:!!!!!Success rate is 100 percent (5/5), round-trip min/avg/max = 24/36/40 msR2#ping 10.3.3.2 source 192.168.2.1Type escape sequence to abort.Sending 5, 100-byte ICMP Echos to 10.3.3.2, timeout is 2 seconds:Packet sent with a source address of 192.168.2.1!!!!!Success rate is 100 percent (5/5), round-trip min/avg/max = 24/28/32 msR2#ping 192.168.3.1Type escape sequence to abort.Sending 5, 100-byte ICMP Echos to 192.168.3.1, timeout is 2 seconds:!!!!!Success rate is 100 percent (5/5), round-trip min/avg/max = 20/20/24 msR2#ping 192.168.3.1 source 192.168.2.1Type escape sequence to abort.Sending 5, 100-byte ICMP Echos to 192.168.3.1, timeout is 2 seconds: Packet sent with a source address of 192.168.2.1!!!!!Success rate is 100 percent (5/5), round-trip min/avg/max = 20/26/32 ms R2#ping 192.168.1.1Type escape sequence to abort.Sending 5, 100-byte ICMP Echos to 192.168.1.1, timeout is 2 seconds: !!!!!Success rate is 100 percent (5/5), round-trip min/avg/max = 8/12/20 ms R2#ping 192.168.1.1 source 192.168.2.1Type escape sequence to abort.Sending 5, 100-byte ICMP Echos to 192.168.1.1, timeout is 2 seconds: Packet sent with a source address of 192.168.2.1!!!!!Success rate is 100 percent (5/5), round-trip min/avg/max = 8/12/20 ms在R1上测试:R1#ping 192.168.2.1Type escape sequence to abort.Sending 5, 100-byte ICMP Echos to 192.168.2.1, timeout is 2 seconds: !!!!!Success rate is 100 percent (5/5), round-trip min/avg/max = 8/9/12 ms R1#ping 192.168.3.1Type escape sequence to abort.Sending 5, 100-byte ICMP Echos to 192.168.3.1, timeout is 2 seconds: !!!!!Success rate is 100 percent (5/5), round-trip min/avg/max = 8/10/12 ms R1#ping 192.168.3.1 source 192.168.1.1Type escape sequence to abort.Sending 5, 100-byte ICMP Echos to 192.168.3.1, timeout is 2 seconds: Packet sent with a source address of 192.168.1.1!!!!!Success rate is 100 percent (5/5), round-trip min/avg/max = 16/19/20 ms R1#ping 192.168.2.1 source 192.168.1.1Type escape sequence to abort.Sending 5, 100-byte ICMP Echos to 192.168.2.1, timeout is 2 seconds:Packet sent with a source address of 192.168.1.1!!!!!Success rate is 100 percent (5/5), round-trip min/avg/max = 16/18/20 ms 保存配置R3#wrBuilding configuration...[OK]R2#wrBuilding configuration...[OK]R1#wrBuilding configuration...[OK]。

相关文档
最新文档