浮动路由实例.doc_第1页
浮动路由实例.doc_第2页
浮动路由实例.doc_第3页
浮动路由实例.doc_第4页
浮动路由实例.doc_第5页
已阅读5页,还剩3页未读 继续免费阅读

下载本文档

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

文档简介

实验要求:为Router1和Router2之间做一条备份路由。相关资料:首先看一下Cisco制定的各个路由协议的管理距离(AD):1.直接相连:02.静态路由:13.EIGRP 汇总路由(summary route):54.外部BGP:205.内部EIGRP:906:IGRP:1007.OSPF:1108.IS-IS:1159.RIP(v1,v2):12010.外部EIGRP:17011.内部BGP:200FloatingStatusRoute因为静态路由的AD比一些动态路由协议的AD高,假如你又想优先采用动态路由,而让静态路由作为备份路由的话,就可以在配置静态路由的时候指定一个AD值,这个AD值要比你采用的动态路由协议要高才行.所以一般当动态路由正常的时候,你在路由表里是看不到这条静态路由的;当动态路由出问题的时候,静态路由开始生效,于是出现在路由表里,这样的静态路由就叫做浮动静态路由(floatingstaticroute)。实验步骤:1、首先了解什么是浮动路由,通俗的理解就是一条备份线路2、利用Visio画出拓扑图3、规划IP地址4、用PacketTracer5.0进行模拟实验。具体实验步骤:因为涉及到的设备比较少,我这里面就把模拟器中的配置全部复制出来Router1RouterenRouter#conf tEnterconfigurationcommands,oneperline.EndwithCNTL/Z./配置IP地址Router(config)#int s0/0/0Router(config-if)#ip address172.16.10.10 255.255.255.0Router(config-if)#clock rate 64000Router(config-if)#no shutRouter(config-if)#exitRouter(config)#int s0/0/1Router(config-if)#ip address172.16.20.10 255.255.255.0Router(config-if)#clock rate 64000Router(config-if)#no shutRouter(config-if)#exitRouter(config)#hostname Router1Router1(config)#int f0/0Router1(config-if)#ip address192.168.10.254 255.255.255.0Router1(config-if)#no shutRouter1(config-if)#exit/配置RIP动态路由协议Router1(config)#router ripRouter1(config-router)#version2Router1(config-router)#network 172.168.10.0Router1(config-router)#network 172.168.20.0Router1(config-router)#network 192.168.10.0Router1(config-router)#exitRouter1(config)#end/配置一条浮动路由Router1(config)#ip route 192.168.20.0 255.255.255.0 172.16.20.20 125Router2RouterenRouter#conf tRouter(config)#hostname rouer2/配置IP地址rouer2(config)#int s0/0/0rouer2(config-if)#ip address 172.16.10.20 255.255.255.0rouer2(config-if)#no shutrouer2(config-if)#exitrouer2(config)#int s0/0/1rouer2(config-if)#ip address172.16.20.20 255.255.255.0rouer2(config-if)#no shutrouer2(config-if)#exitrouer2(config)#int f0/0rouer2(config-if)#ip address 192.168.20.254 255.255.255.0rouer2(config-if)#no shutrouer2(config-if)#exit/配置RIP动态路由协议rouer2(config)#router riprouer2(config-router)#version2rouer2(config-router)#network 192.168.20.0rouer2(config-router)#network 172.16.10.0rouer2(config-router)#network 172.16.20.0rouer2(config-router)#exitrouer2(config)#endrouer2#show ip routeCodes:C-connected,S-static,I-IGRP,R-RIP,M-mobile,B-BGPD-EIGRP,EX-EIGRPexternal,O-OSPF,IA-OSPFinterareaN1-OSPFNSSAexternaltype1,N2-OSPFNSSAexternaltype2E1-OSPFexternaltype1,E2-OSPFexternaltype2,E-EGPi-IS-IS,L1-IS-ISlevel-1,L2-IS-ISlevel-2,ia-IS-ISinterarea*-candidatedefault,U-per-userstaticroute,o-ODRP-periodicdownloadedstaticrouteGatewayoflastresortisnotset172.16.0.0/24issubnetted,2subnetsC172.16.10.0 is directly connected,Serial0/0/0C172.16.20.0 is directly connected,Serial0/0/1R192.168.10.0/24120/1via172.16.20.10,00:00:17,Serial0/0/1120/1via172.16.10.10,00:00:17,Serial0/0/0C192.168.20.0/24isdirectlyconnected,FastEthernet0/0Successrateis100percent(5/5),round-tripmin/avg/max=62/62/63msrouer2#conft/配置一条浮动路由rouer2(config)#ip route192.168.10.0 255.255.255.0 172.16.20.10 125rouer2(config)#endrouer2#show ip routeCodes:C-connected,S-static,I-IGRP,R-RIP,M-mobile,B-BGPD-EIGRP,EX-EIGRPexternal,O-OSPF,IA-OSPFinterareaN1-OSPFNSSAexternaltype1,N2-OSPFNSSAexternaltype2E1-OSPFexternaltype1,E2-OSPFexternaltype2,E-EGPi-IS-IS,L1-IS-ISlevel-1,L2-IS-ISlevel-2,ia-IS-ISinterarea*-candidatedefault,U-per-userstaticroute,o-ODRP-periodicdownloadedstaticrouteGatewayoflastresortisnotset/这里我们看不到那条浮动路由,但是如果我们关闭Rip协议,也就是当Rip协议不能正常工作的时候,我们就会看到那条浮动路由172.16.0.0/24issubnetted,2subnetsC172.16.10.0isdirectlyconnected,Serial0/0/0C172.16.20.0isdirectlyconnected,Serial0/0/1R192.168.10.0/24120/1via172.16.20.10,00:00:23,Serial0/0/1120/1via172.16.10.10,00:00:23,Serial0/0/0C192.168.20.0/24isdirectlyconnected,FastEthernet0/0/关闭Rip协议,同样在router1上也关闭Rip,这里不再写出,与router2相同rouer2#conftrouer2(config)#no router riprouer2#show ip routeCodes:C-connected,S-static,I-IGRP,R-RIP,M-mobile,B-BGPD-EIGRP,EX-EIGRPexternal,O-OSPF,IA-OSPFinterareaN1-OSPFNSSAexternaltype1,N2-OSPFNSSAexternaltype2E1-OSPFexternaltype1,E2-OSPFexternaltype2,E-EGPi-IS-IS,L1-IS-ISlevel-1,L2-IS-ISlevel-2,ia-IS-ISinterarea*-candidatedefault,U-per-userstaticroute,o-ODRP-periodicdownloadedstaticrouteGatewayoflastresortisnotset172.16.0.0/24issubnetted,2subnetsC172.16.10.0isdir

温馨提示

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

评论

0/150

提交评论