项目三距离向量路由协议RIP和EIGRPv

上传人:优*** 文档编号:198438438 上传时间:2023-04-08 格式:DOC 页数:27 大小:138KB
返回 下载 相关 举报
项目三距离向量路由协议RIP和EIGRPv_第1页
第1页 / 共27页
项目三距离向量路由协议RIP和EIGRPv_第2页
第2页 / 共27页
项目三距离向量路由协议RIP和EIGRPv_第3页
第3页 / 共27页
点击查看更多>>
资源描述
项目三距离向量路由协议RIP和EIGRP项目内容任务一:如图3.1所示的网络拓扑,实现计算机A和B的数据传输。R1、R2与R3分别通过Serial端口相连。要求:(1) 采用路由协议RIPv2,使整个网络可以通信;(2) 将R2的S1/0设置成被动接口,查看路由器的路由表;图3.1 网络拓扑任务二:如图3.1所示的网络拓扑,实现计算机A和B的数据传输。R1、R2与R3分别通过Serial端口相连。要求:(1)采用路由协议EIGRP,使整个网络可以通信;(2)在图3.1中的R1与R2之间增加一条串行链路,查看等价链路的负载均衡;(3)在(2)的基础上,修改R1与R2之间的一条串行链路的带宽,查看非等价链路的负载均衡。(4)如图3.2所示,在R1设置4个环回口地址,然后在R1的S1/0接口进行汇总,观察R2、R3的路由表。图3. EIGRP手工路由汇总2 / 27操作步骤一RIPv2的配置1搭建网络环境绘制如图3.1所示的网络拓扑并配置好路由器和计算机的端口及IP地址。2RIPv2的基本配置2.1 基本配置(1)配置R1R1(config)#router ripR1(config-router)#version 2R1(config-router)#network 10.0.0.0R1(config-router)#network 12.0.0.0(2)配置R2R2(config)#router ripR2(config-router)#version 2R2(config-router)#network 12.0.0.0R2(config-router)#network 23.0.0.0(3)配置R3R3(config)#router ripR3(config-router)#version 2R3(config-router)#network 23.0.0.0R3(config-router)#network 192.168.1.02.2 认证(1)show ip routeR1#show ip routeGateway of last resort is not set 10.0.0.0/24 is subnetted, 1 subnetsC 10.1.1.0 is directly connected, FastEthernet0/0 12.0.0.0/24 is subnetted, 1 subnetsC 12.12.12.0 is directly connected, Serial1/0R 23.0.0.0/8 120/1 via 12.12.12.2, 00:00:03, Serial1/0 /自动汇总R 192.168.1.0/24 120/2 via 12.12.12.2, 00:00:03, Serial1/0关闭自动汇总:R1(config)#router ripR1(config-router)#no auto-summaryR2(config)#router ripR2(config-router)#no auto-summaryR3(config)#router ripR3(config-router)#no auto-summary重新认证:R1#show ip routeGateway of last resort is not set 10.0.0.0/24 is subnetted, 1 subnetsC 10.1.1.0 is directly connected, FastEthernet0/0 12.0.0.0/24 is subnetted, 1 subnetsC 12.12.12.0 is directly connected, Serial1/0 23.0.0.0/24 is subnetted, 1 subnetsR 23.23.23.0 120/1 via 12.12.12.2, 00:00:08, Serial1/0R 192.168.1.0/24 120/2 via 12.12.12.2, 00:00:08, Serial1/0R2#show ip routeGateway of last resort is not set 10.0.0.0/24 is subnetted, 1 subnetsR 10.1.1.0 120/1 via 12.12.12.1, 00:00:06, Serial1/0 12.0.0.0/24 is subnetted, 1 subnetsC 12.12.12.0 is directly connected, Serial1/0 23.0.0.0/24 is subnetted, 1 subnetsC 23.23.23.0 is directly connected, Serial1/1R 192.168.1.0/24 120/1 via 23.23.23.3, 00:00:01, Serial1/1R3#show ip routeGateway of last resort is not set 10.0.0.0/24 is subnetted, 1 subnetsR 10.1.1.0 120/2 via 23.23.23.2, 00:00:23, Serial1/0 12.0.0.0/24 is subnetted, 1 subnetsR 12.12.12.0 120/1 via 23.23.23.2, 00:00:23, Serial1/0 23.0.0.0/24 is subnetted, 1 subnetsC 23.23.23.0 is directly connected, Serial1/0C 192.168.1.0/24 is directly connected, FastEthernet0/0(2)show ip protocolR1#show ip protocolRouting Protocol is ripSending updates every 30 seconds, next due in 19 secondsInvalid after 180 seconds, hold down 180, flushed after 240Outgoing update filter list for all interfaces is not setIncoming update filter list for all interfaces is not setRedistributing: ripDefault version control: send version 2, receive 2 Interface Send Recv Triggered RIP Key-chain FastEthernet0/0 2 2 Serial1/0 2 2 Automatic network summarization is not in effectMaximum path: 4Routing for Networks:10.0.0.012.0.0.0Passive Interface(s):Routing Information Sources:Gateway Distance Last Update12.12.12.2 120 00:00:01Distance: (default is 120)(3)show ip databaseR1#show ip rip database10.1.1.0/24 directly connected, FastEthernet0/012.12.12.0/24 directly connected, Serial1/023.23.23.0/24 1 via 12.12.12.2, 00:00:10, Serial1/0192.168.1.0/24 2 via 12.12.12.2, 00:00:10, Serial1/0(4)debug ip ripR1#debug ip ripR1#clear ip route *R1#RIP: received v2 update from 12.12.12.2 on Serial1/0 23.23.23.0/24 via 0.0.0.0 in 1 hops 192.168.1.0/24 via 0.0.0.0 in 2 hopsRIP: sending v2 update to 224.0.0.9 via FastEthernet0/0 (10.1.1.1)RIP: build update entries 12.12.12.0/24 via 0.0.0.0, metric 1, tag 0 23.23.23.0/24 via 0.0.0.0, metric 2, tag 0 192.168.1.0/24 via 0.0.0.0, metric 3, tag 0RIP: sending v2 update to 224.0.0.9 via Serial1/0 (12.12.12.1)RIP: build update entries 10.1.1.0/24 via 0.0.0.0, metric 1, tag 0RIP: received v2 update from 12.12.12.2 on Serial1/0 23.23.23.0/24 via 0.0.0.0 in 1 hops 192.168.1.0/24 via 0.0.0.0 in 2 hopsRIP: sending v2 update to 224.0.0.9 via FastEthernet0/0 (10.1.1.1)RIP: build update entries 12.12.12.0/24 via 0.0.0.0, metric 1, tag 0 23.23.23.0/24 via 0.0.0.0, metric 2, tag 0 192.168.1.0/24 via 0.0.0.0, metric 3, tag 0RIP: sending v2 update to 224.0.0.9 via Serial1/0 (12.12.12.1)RIP: build update entries 10.1.1.0/24 via 0.0.0.0, metric 1, tag 0RIP: received v2 update from 12.12.12.2 on Serial1/0 23.23.23.0/24 via 0.0.0.0 in 1 hops 192.168.1.0/24 via 0.0.0.0 in 2 hops3. 设置被动接口R2(config)#router ripR2(config-router)#passive-interface s1/0等待几分钟后:R1#show ip routeGateway of last resort is not set 10.0.0.0/24 is subnetted, 1 subnetsC 10.1.1.0 is directly connected, FastEthernet0/0 12.0.0.0/24 is subnetted, 1 subnetsC 12.12.12.0 is directly connected, Serial1/0二、EIGRP的配置1搭建网络环境将如图3.1所示的拓扑图另存为新文件或重新建立一个拓扑图。在此采用另存为新文件的方法,然后修改相关的配置。R1(config)#no router ripR2(config)#no router ripR3(config)#no router rip此时,R1的路由表如下:R1#show ip routeGateway of last resort is not set 10.0.0.0/24 is subnetted, 1 subnetsC 10.1.1.0 is directly connected, FastEthernet0/0 12.0.0.0/24 is subnetted, 1 subnetsC 12.12.12.0 is directly connected, Serial1/0R2、R3的路由表内容类似R1。2EIGRP的配置2.1 基本配置(1)配置R1R1(config)#router eigrp 100R1(config-router)#no auto-summaryR1(config-router)#network 10.1.1.0 0.0.0.255R1(config-router)#network 12.12.12.0 0.0.0.255(2)配置R2R2(config)#router eigrp 100R2(config-router)#no auto-summaryR2(config-router)#network 12.12.12.0 0.0.0.255R2(config-router)#network 23.23.23.0 0.0.0.255(3)配置R2R3(config)#router eigrp 100R3(config-router)#no auto-summaryR3(config-router)#network 23.23.23.0 0.0.0.255R3(config-router)#network 192.168.1.0 0.0.0.2552.2 认证(1)show ip routeR1#show ip routeGateway of last resort is not set 10.0.0.0/24 is subnetted, 1 subnetsC 10.1.1.0 is directly connected, FastEthernet0/0 12.0.0.0/24 is subnetted, 1 subnetsC 12.12.12.0 is directly connected, Serial1/0 23.0.0.0/24 is subnetted, 1 subnetsD 23.23.23.0 90/21024000 via 12.12.12.2, 00:03:47, Serial1/0D 192.168.1.0/24 90/21026560 via 12.12.12.2, 00:01:24, Serial1/0R2#show ip routeGateway of last resort is not set 10.0.0.0/24 is subnetted, 1 subnetsD 10.1.1.0 90/20514560 via 12.12.12.1, 00:06:42, Serial1/0 12.0.0.0/24 is subnetted, 1 subnetsC 12.12.12.0 is directly connected, Serial1/0 23.0.0.0/24 is subnetted, 1 subnetsC 23.23.23.0 is directly connected, Serial1/1D 192.168.1.0/24 90/20514560 via 23.23.23.3, 00:03:40, Serial1/1R3#show ip routeGateway of last resort is not set 10.0.0.0/24 is subnetted, 1 subnetsD 10.1.1.0 90/21026560 via 23.23.23.2, 00:04:54, Serial1/0 12.0.0.0/24 is subnetted, 1 subnetsD 12.12.12.0 90/21024000 via 23.23.23.2, 00:04:54, Serial1/0 23.0.0.0/24 is subnetted, 1 subnetsC 23.23.23.0 is directly connected, Serial1/0C 192.168.1.0/24 is directly connected, FastEthernet0/0(2)show ip protocolR1#show ip protocolRouting Protocol is eigrp 100 Outgoing update filter list for all interfaces is not set Incoming update filter list for all interfaces is not set Default networks flagged in outgoing updates Default networks accepted from incoming updates EIGRP metric weight K1=1, K2=0, K3=1, K4=0, K5=0 EIGRP maximum hopcount 100 EIGRP maximum metric variance 1Redistributing: eigrp 100 Automatic network summarization is not in effect Maximum path: 4 Routing for Networks: 10.1.1.0/24 12.12.12.0/24 Routing Information Sources: Gateway Distance Last Update 12.12.12.2 90 781906 Distance: internal 90 external 170(3)show ip eigrp neighborsR2#show ip eigrp neighborsIP-EIGRP neighbors for process 100H Address Interface Hold Uptime SRTT RTO Q Seq (sec) (ms) Cnt Num0 23.23.23.3 Ser1/1 13 00:01:57 40 1000 0 51 12.12.12.1 Ser1/0 11 00:01:57 40 1000 0 5(4)show ip eigrp topologyR2#show ip eigrp topologyIP-EIGRP Topology Table for AS 100Codes: P - Passive, A - Active, U - Update, Q - Query, R - Reply, r - Reply statusP 23.23.23.0/24, 1 successors, FD is 20512000 via Connected, Serial1/1P 12.12.12.0/24, 1 successors, FD is 20512000 via Connected, Serial1/0P 10.1.1.0/24, 1 successors, FD is 20514560 via 12.12.12.1 (20514560/28160), Serial1/0P 192.168.1.0/24, 1 successors, FD is 20514560 via 23.23.23.3 (20514560/28160), Serial1/1图3.3 EIGRP等价负载均衡3等价链路的负载均衡(1)如图3-3所示,在图3-1中R1、R2之间增加一条串行链路,配置好相应接口。(2)配置EIGRP协议。配置R1:R1(config)#router eigrp 100R1(config-router)#network 21.21.21.0 0.0.0.255配置R2:R2(config)#router eigrp 100R2(config-router)#network 21.21.21.0 0.0.0.255(3)认证。R1#show ip routeGateway of last resort is not set 10.0.0.0/24 is subnetted, 1 subnetsC 10.1.1.0 is directly connected, FastEthernet0/0 12.0.0.0/24 is subnetted, 1 subnetsC 12.12.12.0 is directly connected, Serial1/0 21.0.0.0/24 is subnetted, 1 subnetsC 21.21.21.0 is directly connected, Serial1/1 23.0.0.0/24 is subnetted, 1 subnetsD 23.23.23.0 90/21024000 via 12.12.12.2, 00:27:02, Serial1/0 90/21024000 via 21.21.21.2, 00:01:37, Serial1/1D 192.168.1.0/24 90/21026560 via 12.12.12.2, 00:27:00, Serial1/0 90/21026560 via 21.21.21.2, 00:01:37, Serial1/1R2#show ip routeGateway of last resort is not set 10.0.0.0/24 is subnetted, 1 subnetsD 10.1.1.0 90/20514560 via 12.12.12.1, 00:26:42, Serial1/0 90/20514560 via 21.21.21.1, 00:01:13, Serial1/2 12.0.0.0/24 is subnetted, 1 subnetsC 12.12.12.0 is directly connected, Serial1/0 21.0.0.0/24 is subnetted, 1 subnetsC 21.21.21.0 is directly connected, Serial1/2 23.0.0.0/24 is subnetted, 1 subnetsC 23.23.23.0 is directly connected, Serial1/1D 192.168.1.0/24 90/20514560 via 23.23.23.3, 00:26:37, Serial1/14非等价链路的负载均衡(packet tracer 5.1不支持此功能)图3.4 EIGRP非等价负载均衡(1)如图3.4所示,设置好R1、R2的之间的链路带宽。R2(config)#int s1/0R2(config-if)#bandwidth 64(2)修改variance值来实现非等价负载均衡。R2(config)#router eigrp 100R2(config-router)#variance 2(3)认证。R2#show ip routeGateway of last resort is not set 10.0.0.0/24 is subnetted, 1 subnetsD 10.1.1.0 90/20514560 via 21.21.21.1, 00:00:13, Serial1/2 90/40514560 via 12.12.12.1, 00:00:15, Serial1/0 12.0.0.0/24 is subnetted, 1 subnetsC 12.12.12.0 is directly connected, Serial1/0 21.0.0.0/24 is subnetted, 1 subnetsC 21.21.21.0 is directly connected, Serial1/2 23.0.0.0/24 is subnetted, 1 subnetsC 23.23.23.0 is directly connected, Serial1/1D 192.168.1.0/24 90/20514560 via 23.23.23.3, 00:00:15, Serial1/15手工路由汇总(1)修改图3.4,R1、R2之间保留一条链路,带宽为128kbps,并在R1设置4个环回口地址,如图3.5所示。图3.5 EIGRP手工路由汇总修改带宽:R2(config)#int s1/0R2(config-if)#bandwidth 128设置环回口地址:R1(config)#int loopback0R1(config-if)#ip add 172.16.0.1 255.255.255.0R1(config-if)#int loopback1R1(config-if)#ip add 172.16.1.1 255.255.255.0R1(config-if)#int loopback2R1(config-if)#ip add 172.16.2.1 255.255.255.0R1(config-if)#int loopback3R1(config-if)#ip add 172.16.3.1 255.255.255.0(2)EIGRP的配置R1(config)#router eigrp 100R1(config-router)#network 172.16.0.0 0.0.3.255查看R2路由表的明细路由:R2#show ip routeGateway of last resort is not set 10.0.0.0/24 is subnetted, 1 subnetsD 10.1.1.0 90/20514560 via 12.12.12.1, 00:17:06, Serial1/0 12.0.0.0/24 is subnetted, 1 subnetsC 12.12.12.0 is directly connected, Serial1/0 23.0.0.0/24 is subnetted, 1 subnetsC 23.23.23.0 is directly connected, Serial1/1 172.16.0.0/24 is subnetted, 4 subnetsD 172.16.0.0 90/20640000 via 12.12.12.1, 00:04:47, Serial1/0D 172.16.1.0 90/20640000 via 12.12.12.1, 00:04:47, Serial1/0D 172.16.2.0 90/20640000 via 12.12.12.1, 00:04:47, Serial1/0D 172.16.3.0 90/20640000 via 12.12.12.1, 00:04:47, Serial1/0D 192.168.1.0/24 90/20514560 via 23.23.23.3, 00:22:33, Serial1/1(3)手工路由汇总。R1(config)#int s1/0R1(config-if)#ip summary-address eigrp 100 172.16.0.0 255.255.252.0查看R2路由表,结果4条明细路由变成了1条汇总路由。R2#show ip routeGateway of last resort is not set 10.0.0.0/24 is subnetted, 1 subnetsD 10.1.1.0 90/20514560 via 12.12.12.1, 00:00:27, Serial1/0 12.0.0.0/24 is subnetted, 1 subnetsC 12.12.12.0 is directly connected, Serial1/0 23.0.0.0/24 is subnetted, 1 subnetsC 23.23.23.0 is directly connected, Serial1/1 172.16.0.0/22 is subnetted, 1 subnetsD 172.16.0.0 90/21024000 via 12.12.12.1, 00:00:27, Serial1/0D 192.168.1.0/24 90/20514560 via 23.23.23.3, 00:28:40, Serial1/1知识链接一RIPv1和RIPv2的区别(1) RIPv1是有类路由协议,RIPv2是无类路由协议。(2) RIPv1不能支持VLSM,RIPv2可以支持VLSM。(3) RIPv1没有认证的功能,RIPv2可以支持认证,并且有明文和MD5两种认证。(4) RIPv1没有手工汇总的功能,RIPv2可以在关闭自动汇总的前提下,进行手工汇总。(5) RIPv1是广播更新,RIPv2是组播更新。(6) RIPv1对路由没有标记的功能,RIPv2可以对路由打标记(tag),用于过滤和做策略路由。(7) RIPv1发送的updata最多可以携带25条路由条目,RIPv2在有认证的情况下最多只能携带24条路由(8) RIPv1发送的updata包里面没有next-hop属性,RIPv2有next-hop属性,可以用与路由更新的重定向。二被动接口与单播更新被动接口被动接口指在路由器的某个接口上只接受路由更新,却不发送路由更新。有些情况下不需要向外通告某些路由,比如局域网内的路由,这时可以考虑将路由器的该接口设置为被动接口。单播更新单播更新是向指定的路由器发送路由更新信息。图3.6 RIP单播更新R1(config)#router ripR1(config-router)#network 10.0.0.0R1(config-router)#passive-interface f0/0R1(config-router)#neighbor 10.1.1.3三. EIGRP协议1EIGRP简介EIGRP是一个平衡混合型路由协议,是Cisco公司开发的距离向量路由协议,既有传统的距离矢量协议的特点:路由信息依靠邻居路由器通告,遵守路由水平分割和反向毒化规则,路由自动归纳,配置简单,又有传统的链路状态路由协议的特点:没有路由跳数的限制,当路由信息发生变化时,采用增量更新的方式,保留对所有可能路由(网络的拓扑结构)的了解、支持变长子网掩码、路由手动汇总。该协议同时又具有自己独特的特点:支持非等成本路由上的负载均衡,采用差分更新算法(DUAL)在确保无路由环路的前提下,收敛迅速。因而适用于中大型网络。2几个术语(1)通告距离(Advertise Distance,AD):相邻路由器所通告的相邻路由器自己到达某个目的地的最短路由的度量值。;(2)可行距离(Feasible Distance,FD):到达一个目的地的最短路由的度量值。;(3)后继 ( Successor):后继是一个直接连接的邻居路由器,通过它具有到达目的地的最短路由。通过后继路由器将包转发到目的地。(4)可行后继 (Feasible Successor,FS):可行后继是一个邻居路由器,通过它可以到达目的地,不使用这个路由器是因为通过它到达目的地的路由的度量值比其他路由器高,但它的通告距离小于可行距离,因而被保存在拓扑表中,用做备选路由。(5)可行条件 (Feasible Conditon) :上述四个术语,构成了可行条件,是EIGRP路由器更新路由表和拓扑表的依据。可行条件可以有效地阻止路由环路,实现路由的快速收敛。可行性条件的公式为ADFD。(6)EIGRP计算度的公式,K是常量,公式如下: metric=K1*bandwidth+(K2*bandwidth)/(256load)+K3*delay*K5/(reliability+K4)默认:K1=1,K2=0,K3=1,K4=0,K5=0 这样就得到默认的度的简化计算公式,如下::metric=bandwidth+delay3负载均衡负载均衡是指在网络的多个出口上分发数据流量到目的地,负载均衡增加了网段的使用,也增加了网络的带宽.对于IP网络,Cisco IOS默认支持4条等价链路的负载均衡,最大支持6条。EIGRP支持不等价链路的负载均衡,使用variance命令,跟上一个乘数,默认是1(即代表等价的链路的均衡负载),值的范围是1到128。这个乘数代表了可以接受的不等代价链路的度的倍数,在这个范围内的链路都将被接受。4路由汇总路由汇总的目的是为了减少路由表的条目,减少或update包,边界查询等。使用手工汇总的特点如下:(1)可以基于接口的配置汇总。(2)当在接口做了手工汇总以后,路由器将创建一条指向null0口的路由,这样做是为了防止路由循环。(3)当汇总之前的路由down掉以后,汇总路由将自动从路由表里被删除。 -温馨提示:如不慎侵犯了您的权益,可联系文库删除处理,感谢您的关注!
展开阅读全文
相关资源
相关搜索

最新文档


当前位置:首页 > 图纸专区 > 高中资料


copyright@ 2023-2025  zhuangpeitu.com 装配图网版权所有   联系电话:18123376007

备案号:ICP2024067431-1 川公网安备51140202000466号


本站为文档C2C交易模式,即用户上传的文档直接被用户下载,本站只是中间服务平台,本站所有文档下载所得的收益归上传人(含作者)所有。装配图网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对上载内容本身不做任何修改或编辑。若文档所含内容侵犯了您的版权或隐私,请立即通知装配图网,我们立即给予删除!