CiscoPacketTracer实验7:RIP路由协议的配置_第1页
CiscoPacketTracer实验7:RIP路由协议的配置_第2页
CiscoPacketTracer实验7:RIP路由协议的配置_第3页
CiscoPacketTracer实验7:RIP路由协议的配置_第4页
CiscoPacketTracer实验7:RIP路由协议的配置_第5页
已阅读5页,还剩4页未读 继续免费阅读

下载本文档

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

文档简介

1、实验7: RIP路由协议的配置一、实验目的1、练习RIP动态路由协议的基本配置;2、掌握了解RIP路由协议原理二、实验环境:Packet tracer 5.0三、关于RIP的基础知识RIP (Routing Information Protocol )是最常使用的内部网关协议(Interior Gateway Protocol)之一,是一种典型的基于D-V算法的动态路由协议。通过UDP(User Datagram Protocol )报文交换路由信息,使用跳数(HopCount)来衡量到达目的地的距离(被称为路由权一 Routing cost )。由于在RIP中大于或等于16的跳数被定义为无穷

2、大(即目的网络或主机不 可达),所以RIP 一般用于采用同类技术的中等规模的网络,如校园网及一个地 区范围内的网络,RIP并非为复杂、大型的网络而设计。启动RIP,进入RIP视图:router Rip关闭 RIP: no rip在指定的网络上使能 RIP network network-number| all 在指定的网络上禁用 RIP no network network-number| all四:实验步骤:拓扑图如下所示:L. 1.5.2Sea/O/lgsO/O/D.1.3.2jSeU/D/L1.1.2 Ro Lite rx 上上SdVQ/, 1/ 1PC-PTPCI11.1./通多幽2,

3、一pq/oiL L & 11B41Rn uteri1.1.5.20so/o/o 114*is4i f-RoutersP-P-lPC2配置过程:Router1 :Routerenable / 进入特权模式Router#conf ter / 进入全局配置模式Enter configuration commands, one per line. End with CNTL/Z.Router(config)#int f0/0/ 配置 Fa0/0 接口Router(config-if)#ip add 1.1.1.2 255.255.255.0Router(config-if)#no shutdown%L

4、INK-5-CHANGED: Interface FastEthernet0/0, changed state to upRouter(config-if)#%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/0, changed state to upRouter(config-if)#exitRouter(config)#int s0/0/0/ 配置串口Router(config-if)#ip add 1.1.6.1 255.255.255.0Router(config-if)#clock rate 64000Rout

5、er(config-if)#no shutdown%LINK-5-CHANGED: Interface Serial0/0/0, changed state to downRouter(config-if)#exitRouter(config)#int s0/0/1/ 配置串口Router(config-if)#ip add 1.1.2.1 255.255.255.0Router(config-if)#clock rate 64000Router(config-if)#no shutdown%LINK-5-CHANGED: Interface Serial0/0/1, changed stat

6、e to downRouter(config-if)#exitRouter(config)#router rip/ 进入 RIP 视图Router(config-router)#network 1.0.0.0/ 发布直连网络Router(config-router)#exitRouter(config)#exitRouter#%SYS-5-CONFIG_I: Configured from console by consoleRouter#show ip route / 查看路由表Codes: C - connected, S - static, I - IGRP, R - RIP, M -

7、mobile, B - BGPD - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter areaN1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2E1 - OSPF external type 1, E2 - OSPF external type 2, E - EGPi - IS-IS, L1 - IS-IS level-1, L2 - IS-IS level-2, ia - IS-IS inter area* - candidate default, U - p

8、er-user static route, o - ODRP - periodic downloaded static routeGateway of last resort is not set1.0.0.0/24 is subnetted, 1 subnetsC 1.1.1.0 is directly connected, FastEthernet0/0Router#Router2 :RouterenableRouter#conf terEnter configuration commands, one per line. End with CNTL/Z.Router(config)#in

9、t f0/0Router(config-if)#ip add 1.1.5.2 255.255.255.0Router(config-if)#no shutdown%LINK-5-CHANGED: Interface FastEthernet0/0, changed state to up%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/0, changed state to upRouter(config-if)#exitRouter(config)#int s0/0/1Router(config-if)#ip add

10、1.1.2.2 255.255.255.0Router(config-if)#clock rate 64000Router(config-if)#no shutdown%LINK-5-CHANGED: Interface Serial0/0/1, changed state to upRouter(config-if)#exitRouter(config)#int s0/0/0Router(config-if)#ip add 1.1.3.1 255.255.255.0Router(config-if)#clo rate 64000Router(config-if)#no shutdown%LI

11、NK-5-CHANGED: Interface Serial0/0/0, changed state to downRouter(config-if)#exitRouter(config)#router ripRouter(config-router)#network 1.0.0.0Router(config-router)#exitRouter(config)#exitRouter#%SYS-5-CONFIG_I: Configured from console by consoleRouter#Router#show ip routeCodes: C - connected, S - st

12、atic, I - IGRP, R - RIP, M - mobile, B - BGPD - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter areaN1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2E1 - OSPF external type 1, E2 - OSPF external type 2, E - EGPi - IS-IS, L1 - IS-IS level-1, L2 - IS-IS level-2, ia - IS-IS inter are

13、a* - candidate default, U - per-user static route, o - ODRP - periodic downloaded static routeGateway of last resort is not set1.0.0.0/24 is subnetted, 3 subnetsR 1.1.1.0 120/1 via 1.1.2.1, 00:00:11, Serial0/0/1C 1.1.2.0 is directly connected, Serial0/0/1C 1.1.5.0 is directly connected, FastEthernet

14、0/0Router#Router3 :RouterenRouter#conf terEnter configuration commands, one per line. End with CNTL/Z.Router(config)#int f0/0Router(config-if)#ip add 1.1.4.2 255.255.255.0Router(config-if)#no shutdown%LINK-5-CHANGED: Interface FastEthernet0/0, changed state to up%LINEPROTO-5-UPDOWN: Line protocol on

15、 Interface FastEthernet0/0, changed state to upRouter(config-if)#exitRouter(config)#int s0/0/0Router(config-if)#ip add 1.1.6.2 255.255.255.0Router(config-if)#clo rate 64000Router(config-if)#no shutdownRouter(config-if)#%LINK-5-CHANGED: Interface Serial0/0/0, changed state to upRouter(config-if)#exit

16、Router(config)#int s0/0/1Router(config-if)#ip add 1.1.3.2 255.255.255.0Router(config-if)#clock rate 64000Router(config-if)#no shutdown%LINK-5-CHANGED: Interface Serial0/0/1, changed state to upRouter(config-if)#exitRouter(config)#router ripRouter(config-router)#%LINEPROTO-5-UPDOWN: Line protocol on

17、Interface Serial0/0/1, changed state to upRouter(config-router)#network 1.0.0.0Router(config-router)#exitRouter(config)#exitRouter#%SYS-5-CONFIG_I: Configured from console by consoleRouter#show ip rouRouter#show ip routeCodes: C - connected, S - static, I - IGRP, R - RIP, M - mobile, B - BGP D - EIG

18、RP, 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 rou

19、te, o - ODR P - periodic downloaded static routeGateway of last resort is not set1.0.0.0/24 is subnetted, 6 subnetsR1.1.1.0 120/1 via 1.1.6.1, 00:00:02, Serial0/0/0R1.1.2.0 120/1 via 1.1.6.1, 00:00:02, Serial0/0/0120/1 via 1.1.3.1, 00:00:10, Serial0/0/1C 1.1.3.0 is directly connected, Serial0/0/1C 1

20、.1.4.0 is directly connected, FastEthernet0/0R 1.1.5.0 120/1 via 1.1.3.1, 00:00:10, Serial0/0/1C 1.1.6.0 is directly connected, Serial0/0/0之后按照图示配置好主机的 IP 地址,使用 ping 命令测试相互之间的连通性,主机之间可以相互ping 通的,如下所示:Pinging 1.1.4.1 with. 32 bytes o f data:Re quest txm.ed out.Reply from 1.1,4. 1: bytes=3Z t.ime=94ia

21、s TTL=126Reply froa 1.1. 1; byxes=3Z tixae=54ias TTL=lZeReply froa 1.1.4.1; byx;es=3Z tiue=94a5 TTL=12ePing seaeistics for 1.1.4.1:Packet-s: Sent = 4, Recexved = 3 Lost = 1 (25% loss) r Approximat-e round t-r ip eiues in ail Li-seconds:Minimum = 94ms,= 94ms. Average = 94鼬与PCping 1.1.5.1Pinging 1.1.5

22、.1 with. 32 bytes o f data:Requests Ci.rn.ed out.Reply from 1.1.5. 1: bytes32 匕ia94皿s TTL-12SReply from 1.1.S. 1: byte三=32 time=94ias TTL = 126Reply froxoi 1.1.5. 1: byte与=32 bime=93ias TTL=12GPing statistics for 1.1.S.1:Packets: Sent = 4, Received = 3r Lost = 1 (Z59 loss) Approximate round trip tim

23、es in mill!-seconds:Minxmum. = 93ms, Haxumtm = 94nls. Average = 93msPinging 1.1.1.1 Bl匕h 32 bytes of d&ta:Reply Reply Rep ly Rep lyfrom 1.1.1.1:from 1.1,1.1: from 1.1-1.1: fma 1.1.1.1;bytes=32 bytes=32 bytes=3Z byes=3Ztime=78nisriine=93nistiiae=94ttsTTL=L26TTL=L26TTL=L26TTL=1Z6Ping scacistics for 1.

24、1.1. 1:Packet.s: Sene 4 f Received - 4. Lose 0 (Oft Loss) rApproximate round t-r ip times in mill i - seconds :lIxnxxQum. = 79ms z Haxzimuiii = 94ms z Average = 85msPOping 1. 1.4.1Pinging 1.1.4.1 uith. 32 bytes of data:Reply Irou 1.1.4.1: bytes=3Z iae=94ais TTL=126Reply Irou 1.1. 1; bytes=32 iDxe=94xas TIL=126Reply Irosk 1.1. 4. 1: bytes = 32 rime=93ms TTL = L26Reply froxu 1.1.4. 1: byt.es=32 rime=54ms TTL=L26Ping statistics for 1.1.4.1:Paeket-s: Sene = 4, Ree&ived = 4, Lo5t = 0 (04 Loss) zApproximat-e round trip times in milli-seconds :Hinimum. = 93msr Maximum = 94msA

温馨提示

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

评论

0/150

提交评论