路由器 实验总结.doc_第1页
路由器 实验总结.doc_第2页
路由器 实验总结.doc_第3页
路由器 实验总结.doc_第4页
路由器 实验总结.doc_第5页
已阅读5页,还剩4页未读 继续免费阅读

下载本文档

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

文档简介

路由器 实验总结 一、实验一路由配置 1、实验目的在Cisco理解它们的区别及优劣 2、实验准备6个路由 3、实验过程3. 1、用交叉线连接路由令如下第一组对于Router1配Router#conf tRouter(config)#int f0/0Router(configif)#ip addRouter(configif)#no shu对于Router2配置如下Router#conf tRouter(config)#int f0/0Router(configif)#ip addRouter(configif)#no shuRouter(configif)#exit Router(config)#int f0/1Router(configif)#ip addRouter(configif)#no shu对于Router3配置如下Router#conf tRouter(config)#int f0/0Router(configif)#ip addRouter(configif)#no shu3.2在基本配置完成后Router(configif)#exit实验总结置端口号与配置下一跳IP地址的区别o PacketTracer模拟器下通过两种不同的静态路由器,4条交叉线由器如图所示,然后给路由器端口分配ip地址配置如下10.0.0.1255.255.255.0ut10.0.0.2255.255.255.0ut12.0.0.1255.255.255.0ut12.0.0.2255.255.255.0ut开始对路由器进行静态路由配置,对于Route路由配置方法来址,其基本配置命er1配置如下Router(config)#ip route12.0.0.0255.255.255.010.0.0.2对于Router3配置如下Router(configif)#exit Router(config)#ip route10.0.0.0255.255.255.012.0.0.13.3这样第一组就配好了,利用模拟器对第一组进行ping通信,对于Router1过程如下Router#ping12.0.0.1Type escapesequence toabort.Sending5,100byte ICMPEchos to12.0.0.1,timeout is2seconds:.!Suess rateis80percent(4/5),roundtrip min/avg/max=2/3/6ms Router#Router#ping12.0.0.2Type escapesequence toabort.Sending5,100byte ICMPEchos to12.0.0.2,timeout is2seconds:.!Suess rateis80percent(4/5),roundtrip min/avg/max=5/6/8ms查看arp地址表如下Router#showarp ProtocolAddress Age(min)Hardware AddrType InterfaceInter10.0.0.10060.5C81.AC01ARPA FastEther0/0Inter10.0.0.220001.4345.D501ARPA FastEther0/03.4对于第二组做同样的配置对于Router1配置如下Router#conf tRouter(config)#int f0/0Router(configif)#ip add10.0.0.1255.255.255.0Router(configif)#no shut对于Router2配置如下Router#conf tRouter(config)#int f0/0Router(configif)#ip add10.0.0.2255.255.255.0Router(configif)#no shutRouter(configif)#exit Router(config)#int f0/1Router(configif)#ip add12.0.0.1255.255.255.0Router(configif)#no shut对于Router3配置如下Router#conf tRouter(config)#int f0/0Router(configif)#ip add12.0.0.2255.255.255.0Router(configif)#no shut3.5在基本配置完成后开始对路由器进行静态路由配置,对于Router1配置如下Router(configif)#exit Router(config)#ip route12.0.0.0255.255.255.0f0/0对Router3配置静态路由如下Router(configif)#exit Router(config)#ip route10.0.0.0255.255.255.0f0/03.6利用模拟器对第一组进行ping通信,对于Router1过程如下Router#ping12.0.0.1Type escapesequence toabort.Sending5,100byte ICMPEchos to10.0.0.1,timeout is2seconds:.!Suess rateis40percent(2/5),roundtrip min/avg/max=4/4/4ms Router#ping12.0.0.2Type escapesequence toabort.Sending5,100byte ICMPEchos to10.0.0.1,timeout is2seconds:.!Suess rateis40percent(2/5),roundtrip min/avg/max=4/4/4ms查看arp地址表如下Router#showarp ProtocolAddress Age(min)Hardware AddrType InterfaceInter10.0.0.10004.9A2C.2601ARPA FastEther0/0Inter10.0.0.250030.A394.9901ARPA FastEther0/0Inter12.0.0.110030.A394.9901ARPA FastEther0/0Inter12.0.0.250030.A394.9901ARPA FastEther0/0从以上结果中可以知道当静态路由配置用下一跳时连通速度快,数据丢失较少,arp请求效率较高,不用每次以arp请求目的ip的mac地址,而是直接转发给下一跳ip地址,有效地节约了时间。 而静态路由用端口号时数据丢失较多,且如果ping同一网络的其他ip还需arp请求此ip的mac地址,然后由Router2实施arp代理发送同一mac地址,效率较低。 二、路由汇总实验 1、实验目的利用Cisco PacketTracer模拟器进行路由汇总,了解相关原理。 2、实验条件2个路由器,一条交叉线。 3、实验过程3. 1、对路由器作基本的配置参照实验一令router1f0/0端口ip为10.0.0.1掩码255.255.255.0令router2f0/0端口ip为10.0.0.2掩码为255.255.255.03.2对router2做虚拟端口配置Router(configif)#exit Router(config)#int loopback0Router(configif)#ip add12.0.0.1255.255.255.252Router(configif)#exit Router(config)#int loopback1Router(configif)#ip add12.0.0.5255.255.255.252Router(configif)#exit Router(config)#int loopback2Router(configif)#ip add12.0.0.9255.255.255.252Router(configif)#exit Router(config)#int loopback3Router(configif)#ip add12.0.0.13255.255.255.252Router(configif)#exit3. 3、对Router1进行静态路由配置,由于四个虚拟端口属于四个不同的子网,不必一一对router1进行路由设置,只需对其进行路由汇总,配置一个较大的子网掩码较短的路由即可,四个字网的网络号分别为12.0.0.0/3012.0.0.4/3012.0.0.8/3012.0.0.12/30进行路由汇总可设路由为12.0.0.0/24或12.0.0.0(子网掩码30)3. 4、配置好后进行ping通信Router#ping12.0.0.1结果如下Router#ping10.0.0.1Type escapesequence toabort.Sending5,100byte ICMPEchos to10.0.0.1,timeout is2seconds:!Suess rateis100percent(5/5),roundtrip min/avg/max=2/4/6ms以上实验使我了解到路由汇总的基本原理,比起一条一条的设路由更加简便。 三、动态路由切换实验 1、实验目的通过动态路由切换实验了解动态路由是怎样进行切换的。 2、实验拓扑图如下 3、实验步骤首先为每个交换机的端口分配ip地址,比如Switch1#conf tSwitch1(config)#int f0/1Switch1(configif)#no swSwitch1(configif)#ip add12.0.0.1255.255.255.0Switch1(config)#int f0/2Switch1(configif)#no swSwitch1(configif)#ip add13.0.0.1255.255.255.0其余端口配置均按照以上命令配置,配置完ip后开始对交换机进行动态路由配置。 对第一个做如下配置:Switch1(config)#router ripSwitch1(configrouter)#work12.0.0.0Switch1(configrouter)#work13.0.0.0同理其他交换机也做同样的配置Switch2(config)#router ripSwitch2(configrouter)#work12.0.0.0Switch2(configrouter)#work24.0.0.0Switch3(config)#router ripSwitch3configrouter)#work13.0.0.0Switch3(configrouter)#work34.0.0.0Switch4(config)#router ripSwitch4(configrouter)#work24.0.0.0Switch4(configrouter)#work34.0.0.0Switch4(configrouter)#work45.0.0.0Switch5(config)#router ripSwitch5(configrouter)#work45.0.0. 04、动态路由配置完成后,先对交换机进行ping测试,如对Switch1#ping45.0.0.2,结果通信成功,再通过命令Switch1#ping Targetip address45.0.0.2Repeat count5:10000然后断开某一条链路的连接,发现通信丢失几次之后又正常通信,或者断开另外一条链路的连接结果也是如此,说明了当一条链路出现问题后动态路由会自动切换到另一条链路上去,从而保证整个网络的畅通。 四、rip路由版本实验 1、实验目的配置两种版本的rip路由,并了解其区别。 2.、实验拓扑图 3、实验过程3. 1、对路由器进行基本的配置,按照如图所示的ip网络给路由器分配ip。 3. 2、version1版本测试。 操作命令如下Router1(config)#router ripRouter1(configrouter)#version1Router1(configrouter)#work10.0.0.0同理Router2(config)#router ripRouter2(configrouter)#version1Router2(configrouter)#work10.0.0.0Router2(configrouter)#work20.0.0.0Router3(config)#router ripRouter3(configrouter)#version1Router3(configrouter)#work20.0.0.0Router3(configrouter)#work10.0.0.0Router4(config)#router ripRouter4(configrouter)#version1Router4(configrouter)#work20.0.0.0配置完成后进行ping测试,结果不通,3. 3、version2版本测试。 使用version1rip协议通信不能达到要求,现在换成version2版本协议,首先做如下配置Router1#conf tRouter1(config)#router ripRouter1(configrouter)#no version1Router1(configrouter)#version2这样就换成了version2,对于其他路由器依次做同样的操作命令,然后ping测试结果为Router#ping10.0.2.2Type escapesequence toabort.Sending5,100byte ICMPEchos to10.0.2.2,timeout is2seconds:!Suess rateis100percent(5/5),roundtrip min/avg/max=93/93/94ms 4、对实验作如下改进对路由器做基本ip配置,步骤与上一实验相同,然后测试version2版本协议,命令同上,Router(config)#route ripRouter(configrouter)#version2Router(configrouter)#work10.0.0.0Router(configrouter)#end结果如下Router#ping10.0.2.2Type escapesequence toabort.Sending5,100byte ICMPEchos to10.0.2.2,timeout is2seconds:.Suess rateis0percent(0/5)Router#ping20.0.1.2Type escapesequence toabort.Sending5,100byte ICMPEchos to20.0.1.2,timeout is2seconds:!.!.!Suess rateis60percent(3/5),roundtrip min/avg/max=47/57/63ms说明此时路由设置有问题,链路不通畅。 做如下改变Router(config)#route ripRouter(configrouter)#version2Rout

温馨提示

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

评论

0/150

提交评论