实验二十五、rip协议环路避免的几种方法实验配置_第1页
实验二十五、rip协议环路避免的几种方法实验配置_第2页
实验二十五、rip协议环路避免的几种方法实验配置_第3页
实验二十五、rip协议环路避免的几种方法实验配置_第4页
实验二十五、rip协议环路避免的几种方法实验配置_第5页
全文预览已结束

下载本文档

版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领

文档简介

1、实验二十五、rip协议环路避免的几种方法实验配置、实验冃的1. 通过实验体会rip存在的路由自环的问题2. 掌握开启和关闭水平分割的配置二、应用环境1. 实验坏境下进行,实际t作中不需要router-arouter-bswf0/0三、实验设备1.dcr-1751两台2.cr-v35fc一条3.cr-v35mt一条四、实验拓扑五、实验要求配置表router-asl/l (dce)router-b192.168.1.1/24s1/o(dte)192.16 &1.2/24f0/0192.16&0.1f0/0192.169.2.1/24六、实验步骤第一步:按照实验八配置好rip协议,并

2、能杳看路由表a的路由表router-a#sh ip routecodes: c connected, s static, r rip, b bgp, bc - bgp connectedd deigrp, dex external deigrp, 0 ospf, oia ospf inter area0n1 - ospf nssa external type 1, on2 - ospf nssa external type 2oel - ospf external type 1, oe2 ospf external type 2 dhcp dhcp typec19268.0.0/24c192.

3、168.1.0/24r192.16820/24vrf id: 0is directly connected, fastetherneto/o is directly connected, serial 1/1120,16 via 192.168.1.2(on seriall/1)b的路山表router-b#sh ip routecodes: c connected, s static, r rip, b - bgp, bc - bgp connectedd deigrp, dex external deigrp, o ospf, oia ospf inter areaon 1 ospf nss

4、a external type 1, on2 ospf nssa external type 2oel ospf external type 1, oe2 ospf external type 2dhcp - dhcp typevrf id: 0r192.168o0/24c192.168.1.0/24c192.168.2.0/24120,1 via 192.168>lj(on seriall/0)is directly connected, seriall/0is directly connected, fastetherneto/o第二步:观察水平分割的现象router-a#debug

5、 ip rip protocol!观察 rip 协议过程rip protocol debugging is onrouter-a#2004-1 -1 02:25:43 rip: send to 224.0.0.9 via fastetherneto/o2004-1-1 02:25:432004-1-1 02:25:4320044-1 02:25:43vers 2, cmd_response, length 44192.16&1.0/24 via 0.0.0.0 metric 1192.168 20/24 via 0.0.0.0 metric 22004-1-1 02:25:43 rip

6、: send to 224.0o9 via seriall/12004-1-1 02:25:432004-1-1 02:25:43vers 2, cmd_response, length 44192.168.0.0/24 via 0.0.0.0 metric 1!注意到水平分割的作用,a并不发送192.168.2.0这条路市2004-1 -1 02:25:45 rip: send to 224.0.0.9 via fastetherneto/o2004-1-1 02:25:452004-1-1 02:25:452004-m 02:25:45vers 2, cmd_response, lengt

7、h 44192.168.1.0/24 via 0.0.0.0 metric 1192.168.2.0/24 via 0.0.0.0 metric 162004-m 02:25:45 rip: send to 224.0.0.9 via seriall/12004-1-1 02:25:452004-1-1 02:25:45router-a#no debug allvers 2, cmd.response, length 44192.16&0.0/24 via 0.0.0.0 metric 1!一定要记得关闭debug第三步:关闭水平分割!进入与b相连的接口!关闭水平分割router-a#

8、confrouter-a_config#interfaces 1/1router-a_config_s 1 /1 #no ip rip split-horizon第四步:再次观察rip工作过程router-a#debug ip rip protocolrip protocol debugging is onrouter-a#2004-1 -1 02:26:29 rip: send to 224.0.0.9 via fastetherneto/o2004-1-1 02:26:292004-1-1 02:26:29vers 2, cmd_response, length 44192.168.1.0

9、/24 via 0.0.0.0 metric 12004-1-1 02:26:29192.168.2.0/24 via 0.0.0.0 metric 162004亠 1 02:26:312004-m 02:26:312004-1-1 02:26:29 rip: send to 224o0.9 via serial 1/12004-1-1 02:26:292004-1-1 02:26:292004-1-1 02:26:292004-1-1 02:26:29vers 2, cmd_response, length 84192.168.0.0/24 via 0.0.0.0 metric 1192.1

10、6&1.0/24 via 0.0.0.0 metric 1192.16820/24 via 0000 metric 16!注意到发送的路由中包括192.168.2.0,但由于自环的原因,跳数为16 (不可达)2004-1-1 02:26:31 rip: send to 224.0.0.9 via fastetherneto/overs 2, cmd_response, length 44192.168. lo/24 via 0.0.0.0 metric 12004-1-1 02:26:31192.16&2.0/24 via 0.0.0.0 metric 162004-1-1 0

11、2:26:31 rip: send to 224.0.0.9 via serial 1/12004-1-1 02:26:31vers 2, cmd.response, length 84定要记得关闭debugrouter-a#no debug all第五步:查看路山表router-a#sh ip routecodes: c connected, s static, r rip, b - bgp, bc bgp connectedd deigrp, dex external deigrp, o ospf, oia ospf inter areaoni ospf nssa external typ

12、e 1, on2 - ospf nssa external type 2oe1 ospf external type 1, oe2 ospf external type 2dhcp - dhcp typevrf id: 0c192.168.0.0/24is directly connected, fastetherneto/oc192.168.1.0/24is directly connected, serial 1/1!已经没有了 rip学习到的路由七、注意事项和排错1. 是在需要观察的接口模式下配置关闭水平分割2. debug后一定要记得关闭八、配置序列无九、共同思考1. 除了水平分割,我

13、们已经学习到还有哪些方法避免路由自坏?2. 为什么rip有口环的问题?十、课后练习1. 请将水平分割打开,并验证结果2. 在路由器b上的相应接口重复以上实验十一、相关命令详解ip rip split-horizon设定接口发送rip报文时是否使用水平分割。ip rip split-horizonno ip rip split-horizon参数无缺省随介质不同而不同命令模式接口配置态使用说明对丁使用帧中继或smds之外的任何接口,缺省悄况下水平分割是激活的;如果接口用 encapsulation frame-relay进行配置,缺省情况卜水平分割没有激活。注意:对于包括x.25 psn链路的网络,neighbor路由器配這命令可以使水平分割失效,或 者你以在配置中显式地使用no ip rip split-horizon命令。但是,如果你这样做,你必须同 样对所有该网络上相关的多日广播组中的路由器使用no ip rip split-horizon命令。 如杲接口上水平分割没有激活,用ip rip split-horizon命令激活水平分割功能。注意:一般情况下,不要改变i

温馨提示

  • 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
  • 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
  • 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
  • 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
  • 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
  • 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
  • 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。

评论

0/150

提交评论