路由策略实验报告_第1页
路由策略实验报告_第2页
路由策略实验报告_第3页
路由策略实验报告_第4页
路由策略实验报告_第5页
已阅读5页,还剩3页未读 继续免费阅读

下载本文档

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

文档简介

002002路由策略实验目的:通过路由策略达到以下目的:使R1上的192.168.1.0的流量从192.168.4.0走,进入ISPA,到达200.200.200.200让R1上的192.168.2.0的流量从192.168.5.0走,进入ISPB,到达200.200.200.200实验拓扑图:注意路由器上的路由协议自由选择本实验评分标准:路由器按要求配置相应地址10分在R1上以192.168.1.1为源,能PING通200.200.200.200,路由协议自定20分在R1上以192.168.2.1为源,能PING通200.200.200.200,路由协议自定20分在R2上实施策略路由,让R1上以192.168.1.0为源过来的数据通过R2走R3到达200.200.200.200。25分在R2上实施策略路由,让R1上以192.168.2.0为源过来的数据通过R2走R4到达200.200.200.200。25分实验环境整个实验可用四台路由器或者dynamips模拟器完成。在路由器上配置相应的地址!基本配置接口配置r1(config)Sinterlolrl(config-if)#ipadd192.168.1.1255.255.255.0r1(config-if)#interlo2rl(config-if)#ipadd192.168.2.1255.255.255.0rl(config-if)Sintere0/0rl(config-if)#ipadd192.168.3.1255.255.255.0r1(config-if)#noshr1(config-if)#esitrl(config)#r2(config)Sintere0/0r2(config-if)#ipadd192.168.3.2255.255.255.0r2(config-if)#noshr2(config-if)SintereO/1r2(config-if)#ipadd192.168.4.1255.255.255.0r2(config-if)#noshr2(config-if)SintereO/2r2(config-if)#ipadd192.168.5.1255.255.255.0r2(config-if)#noshr2(config-if)#esitr2(config)#!r3(config)#intere0/0r3(config-if)#ipadd192.168.4.2255.255.255.0r3(config-if)#noshr3(config-if)#interlolr3(config-if)#ipadd200.200.200.200255.255.255.0r3(config-if)#eKitr3(config)#]r4(config)Sintere0/0r4(config-if)#ipadd192.168.5.2255.255.255.0r4(config-if)#noshr4(config-if)Sinterlolr4(config-if)#ipadd200.200.200.200255.255.255.0r4(config-if)#esitr4(config)#]查看接口

rl#showipinterbInterfaceIP-AddressOK?MethodStatusProt□colEthernet0/0192.168.3.1YESmanualupupSeriall/0unassignedYESunsetadministrativelydowndownSeriall/1unassignedYESunsetadministrativelydowndownSeriall/2unassignedYESunsetadministrativelydowndownSeriall/3unassignedYESunsetadministrativelydowndownLoopbackO192.168.1.1YESmanualupupLoopback1192.168.2.1YESmanualupupr2#showipinterbInterfaceIP-AddressOK?MethodStatusProtocolEthernet0/0192.168.3.2YESmanualupUPEthernet0/1192.168.4.1YESmanualupupEthernet0/2192.168.5.1YESmanualUPupEthernet0/3unassignedYESunsetadministrativelydowndownSeriall/0unassignedYESunsetadministrativelydowndownSeriall/1unassignedYESunsetadministrativelydowndownSeriall/2unassignedYESunsetadministrativelydowndownSeriall/3unassignedYESunsetadministrativelydowndownr3#showipinterbInterfaceIP-AddressOK?MethodStatusProtocolEthernet0/0192.168.4.2YESmanualUPupSeriall/0unassignedYESunsetadministrativelydowndownSeriall/1unassignedYESunsetadministrativelydowndownSeriall/2unassignedYESunsetadministrativelydowndownSeriall/3unassignedYESunsetadministrativelydowndownLoopbackO200.200.200.200YESmanualUPupr4#showipinterbInterfaceIP-AddressOK?MethodStatusProt□colEthernet0/0192.168.5.2YESmanualUPupSeriall/0unassignedYESunsetadministrativelydowndownSeriall/1unassignedYESunsetadministrativelydowndownSeriall/2unassignedYESunsetadministrativelydowndownSeriall/3unassignedYESunsetadministrativelydowndownLoopbackO200.200.200.200YESmanualupup5.直连PING测试r2#ping192.168.3.1Typeescapesequencetoabort.Sending5,100-byteICMPEchosto192.168.3.1,timeoutis2seconds:Successrateis100percent(5/5)round-tripmin/avg/mas=144/224/288msr2#ping192.168.4.2Typeescapesequencet□abort.SendingS,100-byteICMPEchosto192.168.4.2,timeoutis2seconds:.IIIISuccessrateis80percent(4/5),round-tripmin/avg/max=228/345/432msr2#ping192.168.5.2 'Typeescapesequencetoabort.Sending5,100-byteICMPEchosto192.168.5.2,timeoutis2seconds:6.运RIPV2,使它们之间可以通信rl(config)#routerriprl(config-router)#ver2rl(config-router)#noaurl(config-router)#net192.168.1.0rl(config-router)#net192.168.2.0rl(config-router)#net192.168.3.0r1(config-router)#endr2(config)#routerripr2(config-router)#ver2r2(config-router)#noaur2(config-router)#net192.168.3.0r2(config-router)#net192.168.4.0r2(config-router)#net192.168.5.0r2(config-router)#endr3(config)#routerripr3(config-router)#ver2r3(config-router)#noaur3(config-router)#net192.168.4.0r3(config-router)#net200.200.200.0r3(config-router)#end

r4(config)#routerripr4(config-router)#ver2r4(config-router)#noaur4(config-router)#net192.168.5.0r4(config-router)#net200.200.200.0r4(config-router)Send7.查看各个路由器的路由表!rl#showiproCodes:C-connectedjS-statiCjR-El已M-mobilejB-BGPD-EIGRPEK-EIGRPesternal^0-OSPFjIA-OSPFinterareaN1-OSPFNSSAexternaltype1,N2-OSPFNSSAesternaltype2El-OSPFesternaltype1,E2-OSPFexternaltype2i-IS-ISjsu-IS-ISsummaryjLI-IS-ISlevel-ljL2-IS-ISlevel-2ia-IS-ISinterarea^*-candidatedefaultjU-per-userstaticrouteo-ODRjP-periodicdownloadedstaticrouteGatewayoflastresortisnotsetRRRCCC200.200.200.0/24[120/2]via192.168.4.0/24RRRCCC200.200.200.0/24[120/2]via192.168.4.0/24192.168.5.0/24192.168.1.0/24192.168.2.0/24192.168.3.0/24[120/1]via

[120/1]via

isdirectly

isdirectly

isdirectly192.168.3.2S00:00:19,Ethernet0/0192.168.3.2,00:00:19^Ethernet0/0192.168.3.2,00:00:19^Ethernet0/0connectedjLoopbackOconnectedjLoopback1connectedjEthernet0/0r2#showiproCodes:C-connectedjS-static^R-RIPjM-mcibil如B-BGPD-EIGRPjEK-EIGRPesternalj0-OSPFjIA-OSPFinterareaN1-OSPFNSSAesternaltype13N2-OSPFNSSAexternaltype2El-OSPFesternaltypeLE2-OSPFesternaltype2i-IS-ISjsu-IS-ISsununaryjLI-IS-ISlevel-ljL2-IS-ISlevel-2ia-IS-ISinterarea,*-candidatedefaultjU-per-userstaticroute□-ODR,P-periodicdoimloadedstaticrouteGatewayoflastresortisnotset200.200.200.0/24[120/1][120/1]isdirectlyisdirectly[120/1]via[120/1]viaisdirectly192.168.4.0/24192.168.5.0/24192.168.1.0/24192.168.2.0/24200.200.200.0/24[120/1][120/1]isdirectlyisdirectly[120/1]via[120/1]viaisdirectly192.168.4.0/24192.168.5.0/24192.168.1.0/24192.168.2.0/24192.168.3.0/24via192.168.5.2,via192.168.4.幻connectedjEthernet0/1connected3Ethernet0/2192.168.3.1,00:00:24,Ethernet0/0192.168.3.1,00:00:24,Ethernet0/0connected,Ethernet0/000:00:01,00:00:07,Ethernet0/2Ethernet0/1r3#showiproCodes:C-connectedjS-static^R-RIP^M-mobilejB-BGPD-EIGEPjEK-EIGEPexternal,0-OSPF,IA-OSPFinterareaN1-OSPFNSSAesternaltype1,N2-OSPFNSSAexternaltype2El-OSPFesternaltypeLE2-OSPFeKternaltype2i-IS-ISjsu-IS-ISsununaryjLI-IS-ISlevel-L2-IS-ISlevel-2ia-IS-ISinterarea,*-candidatedefaultjU-per-userstaticrouteo-ODRjP-periodicdownloadedstaticrouteGatewayoflastresortisnotsetC200.200.200.0/24isdirectlyconnected^LoopbackO192.168.4.0/24192.168.5.0/24192.168.1.0/24192.168.2.0/24192.168.3.0/24192.168.4.0/24192.168.5.0/24192.168.1.0/24192.168.2.0/24192.168.3.0/24isdirectly[120/1]via[120/2]via[120/2]via[120/1]viaconnectedjEthernet0/0192.168.4.1,00:00:04,192.168.4.1,00:00:04,192.168.4.1,00:00:04,192.168.4.1,00:00:04,Ethernet0/0Ethernet0/0Ethernet0/0Ethernet0/0r4#showiproCodes:C-connectedjS-static^R-RIP^M-mobile,B-BGPD-EIGRP,EK-EIGRPesternal,0-OSPF,IA-OSPFinterareaN1-OSPFNSSAesternaltype1,N2-OSPFNSSAesternaltype2El-OSPFesternaltypeE2-OSPFeKternaltype2i-IS-IS,su-IS-ISsummaryjLI-IS-ISlevel-ljL2-IS-ISlevel-2ia-IS-ISinterarea^*-candidatedefsuitU-per-userstaticrouteo-ODRjP-periodicdownloadedstaticrouteGatewayoflastresortisnotsetC200.200.200.0/24isdirectlyconnectedjLoopbackO192.168.4.0/24192.168.5.0/24192.168.1.0/24192.168.2.0/24192.168.4.0/24192.168.5.0/24192.168.1.0/24192.168.2.0/24192.168.3.0/24[120/1]viaisdirectly[120/2]via[120/2]via[120/1]viaconnecte山Ethernet0/0192.168.5. 00:00:05,Ethernet0/0192.168.5. 00:00:05,Ethernet0/0192.168.5.Ij00:00:05^Ethernet0/08.在R1上以192.168.1.1为源,能PING通200.200.200.200rltfping200.200.200.200source192.168.1.1Typeescapesequencetoabort.Sending5,100-byteICMPEchosto200.200.200.200^timeoutis2seconds:Packetsentwithasourceaddressof192.168.1.1IIIIISuccessrateis100percent(5/5)round-tripmin/avg/mas=548/652/840ms9.在R1上以192.168.2.1为源,能PING通200.200.200.200

rl#ping200.200.200.200source192.168.2.1Typeescapesequencet□abort.Sending号100-byteICMPEchosto200.200.200.200^timeoutis2seconds:Packetsentwithasourceaddressof192.168.2.1Successrateis100percent(5/5),round-tripmin/avg/max=172/523/716ms10.在r2定义两条访问控制列表r2(config)#access-list10permit192.168.1.00.0.0.255r2(config)#access-list20permit192.168.2.00.0.0.25511.在R2的策略上应用访问控制列表r2(config)#route-maphongtuper10r2(config-route-map)#matchipadd10r2(config-route-map)#setipneKt-hop192.168.4.2r2(config-route-map)#route-maphongtuper20r2(config-route-map)#matchipadd20r2(config-route-map)#setipneKt-hop192.168.5.2r2(config-route-map)#ezitr2(config)#route-maphongtuper30r2(config-route-map)Sintere0/0r2(config-if)#ippolicyroute-maptest12.在R2上查看访问控制列表的信息和Route-map的信息r212.在R2上查看访问控制列表的信息和Route-map的信息StandardIPaccesslist1010permit192.168.1.0^wildcardbits0.0.0.255StandardIPaccesslist

温馨提示

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

评论

0/150

提交评论