实验路由信息协议.doc_第1页
实验路由信息协议.doc_第2页
实验路由信息协议.doc_第3页
实验路由信息协议.doc_第4页
实验路由信息协议.doc_第5页
已阅读5页,还剩4页未读 继续免费阅读

下载本文档

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

文档简介

实验六:路由器配置及路由信息协议实验目的及要求:理解路由器的最主要的功能,理解路由器中的路由信息协议,掌握路由器动态路由配置方法并理解动态路由的灵活性。试验方法:1. 阅读文档,熟悉静态路由和动态路由的工作原理;2. 参考本实验后附录的步骤配置路由器基本信息并配置成使用rip动态路由;3. 在一台路由器上进行路由信息监视、连通性测试和路由选择更新信息测试。试验内容:1配置路由器基本信息,配置步骤如下:2监视路由信息输出结果如下:3测试网络连通性输出结果如下:试验背景材料:1路由协议:路由器的基本作用是在不同网络间转发数据,工作方式有静态路由和动态路由两种。静态路由(缺省路由是静态路由的一种)是将发往目的地网络的数据包转发到“下一跳”路由。静态路由的优点是简单、明了;但其不足之处是:对下一跳的依赖太强,在下一跳出了故障时,这部分网络就要中断,并且灵活性差,即当网络局部发生变化时,也要相应的改变所有的静态路由。与静态路由相对应的路由协议为动态路由,动态路由协议种类比较多,它们有分为内部路由协议和边界网关路由协议。而内部路由协议又包含路由信息协议(RIP:Routing Information Protocol)和开放最短路径优先(OSPF)这两个最典型的例子。RIP路由协议是几乎所有厂商的路由器都支持的一个协议,选择它,可以不用考虑系统是否支持的问题。RIP用两种信息来保持整个网络的路由:更新(Updates)和请求(Requests)。每个运行RIP的路由器每隔30秒相邻的路由器广播更新信息,更新信息包含了该路由器所有路由选择信息数据库。请求信息用于寻找网络上能发出RIP报文的其他设备。RIP是一种距离向量(Distance Vector)路由协议,所谓距离向量协议,是指用路程中的跳数做为网络距离的尺度,这个尺度也是做路由选择时的标准。2所需设备:带cisco IOS 10.0以上版本的cisco路由器两台,其中两台各带两个以太网口;反转线一根,RJ45-DB9转换头一个,带9针串行口、运行有终端仿真程序的pc一台。3参考步骤:(1)准备工作:如图,连接好实验设备,并按图示配置好端口地址。并在路由器A上做如下配置:R1#conf tEnter configuration commands, one per line. End with CNTL/Z.R1(config)#router rip/配置路由;R1(config-router)#network /加上所有的直连网络;R1(config-router)#network R1(config-router)#ip routingR1(config-router)#end类似地,在路由器2上也做rip配置。得到以下配置信息:1、路由器1Using 1527 out of 29688 bytes!version 12.1no service single-slot-reload-enableservice timestamps debug uptimeservice timestamps log uptimeno service password-encryption!hostname R1!boot system flash flash:c2600-is-mz.121-5.T9.binlogging rate-limit console 10 except errorsenable secret 5 $1$5ufC$gqA6eR6J2cvd07iz6pv8o1enable password 123!ip subnet-zero!no ip finger!call rsvp-sync!interface Loopback0 ip address !interface FastEthernet0/0 description To_3550_1 ip address ip ospf priority 2 duplex auto speed auto!interface FastEthernet0/1 description To_3550_2 ip address no keepalive duplex auto speed auto!router rip version 2 network network !no ip classlessno ip http server!voice-port 1/0/0!voice-port 1/0/1!voice-port 1/1/0!voice-port 1/1/1!dial-peer cor custom!dial-peer voice 100 pots destination-pattern 02101 port 1/0/0!dial-peer voice 101 pots destination-pattern 02102 port 1/0/1!dial-peer voice 110 pots destination-pattern 02103 port 1/1/0!dial-peer voice 111 pots destination-pattern 02104 port 1/1/1!dial-peer voice 1 voip destination-pattern 01. session target ipv4:!dial-peer voice 3 voip destination-pattern 03. session target ipv4:!dial-peer voice 4 voip destination-pattern 04. session target ipv4:!num-exp 10. 0210.!line con 0 transport input noneline aux 0line vty 0 4 password cisco login!end2. 路由器2Using 1434 out of 29688 bytes!version 12.1no service single-slot-reload-enableservice timestamps debug uptimeservice timestamps log uptimeno service password-encryption!hostname R2!boot system flash flash:c2600-is-mz.121-5.T9.binlogging rate-limit console 10 except errorsenable secret 5 $1$KgHH$BmMWI127/CJVEmyOFFpcq0!ip subnet-zero!no ip finger!call rsvp-sync!interface Loopback0 ip address !interface FastEthernet0/0 ip address duplex auto speed auto!interface FastEthernet0/1 ip address duplex auto speed auto!router rip version 2 network network !ip classlessno ip http server!voice-port 1/0/0!voice-port 1/0/1!voice-port 1/1/0!voice-port 1/1/1!dial-peer cor custom!dial-peer voice 101 pots destination-pattern 03101 port 1/0/0!dial-peer voice 102 pots destination-pattern 03102 port 1/0/1!dial-peer voice 103 pots destination-pattern 03103 port 1/1/0!dial-peer voice 104 pots destination-pattern 03104!dial-peer voice 1 voip destination-pattern 01. session target ipv4:!dial-peer voice 2 voip destination-pattern 02. session target ipv4:!dial-peer voice 4 voip destination-pattern 04. session target ipv4:!num-exp 1. 031.!line con 0 transport input noneline aux 0line vty 0 4 password cisco login!no scheduler allocateend(2)监测路由信息l 在路由器1上查看路由信息:R1#show ip routeCodes: C - connected, S - static, I - IGRP, R - RIP, M - mobile, B - BGP D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2 E1 - OSPF external type 1, E2 - OSPF external type 2, E - EGP i - IS-IS, L1 - IS-IS level-1, L2 - IS-IS level-2, ia - IS-IS inter area * - candidate default, U - per-user static route, o - ODR P - periodic downloaded static route/以上是路由字符说明。C:表示直连的地址(路由);S:表示静态的路由;R:表示通过RIP路由协议学习得来的路由;O:表示通过OSPF路由协议学习得到的路由。其他字符的意义大家可通过另外的途径去学习。Gateway of last resort is not set /24 is subnetted, 1 subnetsC is directly connected, FastEthernet0/1R /16 120/1 via , 00:00:16, FastEthernet0/0C /24 is directly connected, FastEthernet0/0 /24 is subnetted, 1 subnetsC is directly connected, Loopback0/以上有三条是直连的路由,每一项中包含直连的地址段和连接的端口;有两条rip路由,每项的具体含义是:网段,管理距离/经过的跳数,这个网段通过哪个地址获得,路由信息获得的时间,这个网段从哪个端口获得。例如第一条说明:路由器已经知道有一个网段/16,可以通过FastEthern

温馨提示

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

评论

0/150

提交评论