版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领
文档简介
1、实验名称RIP路由配置实验实验日期2018年11月2日实验目的(1)掌握在路由器上配置RIP的方法;(2)分析RIP路由协议;(3)调试RIP路由协 议实验内容配置路由R1,R2,R3各个接口的路由接口的IP地址,每个路由器上配置RIP路由 协议,然后路由与邻居交换完整的路由表,收到邻居发来的路由表之后,更新自己的 路由表RIP使用UDP协议,端口号520,使用组播地址邻居每30秒发送自己完整的路 由表。RIP存在坏消息传播得慢的问题,如下图所示,当R3路由器f0/1端口关闭之 后,经过若于次路由表交换之后,才发现不可达。一、实验原理路由与邻居交换完整的路由表,收到邻居发来的路由表之后,更新自
2、己的路由表。RIP使用UDP 协议,端口号520,使用组播地址邻居每30秒发送自己完整的路由表。RIP存在坏消息传播得慢的 问题,如下图所示,当R3路由器f0/1端口关闭之后,经过若于次路由表交换之后,才发现 不可达。RIPv2的报文格式:Csmnajidfl)Versi-on(l)unused Address JamiJyef (2)R-sutt Tag (2)IP addre ss (4)Subnet mask (T)hfext Hop4,Mrtri g (4)RIP Tsiqxi 2 的报文裕式其中:.Metric:到下一路由器的权值。.NextHop:下一驿站,可以对使用多路由协议的网
3、络环境下的路由进行优化.Subnet mask:子网掩码,应用于IP地址产生非主机部分地址,为0时表示不包括子网掩码 部分,使得RIP能够适应更多的环境。.Ip Address:地址域,包括网络类和IP地址在内,RIP报文中对每一网络共有14个字节的 地址空间。.RouteTag:外部路由标记。它提供一种从外部路由中分离内部路由的方法,用于传播从外部路 由器协议(EGP)获得的路由信息。.Address F amily Identifier :指示路由页中的地址种类,这里应为2.Version:版本号域包括生成R I P报文时所使用的版本。在此为2.Command:命令域指出RIP报文是一个请
4、求报文还是对请求的应答报文。二、实验步骤路由器接口的配置R1的路由配置R1#conf tR1(config)#int lo0R1(config-if)#ip address 0 R1(config-if)#int f0/0R1(config-if)#ip address R1(config-if)#no shutR2的路由配置R2#conf tEnter configuration commands, one per line. End with CNTL/Z.R2(config)#int lo0R2(config-if)#ip address 0 R2(config-if)#int f0/0
5、R2(config-if)#ip address R2(config-if)#no shutR2(config-if)#int f0/1R2(config-if)#ip address R2(config-if)#no shutR3的路由配置R3#conf tEnter configuration commands, one per line. End with CNTL/Z.R3(config)#int lo0R3(config-if)#ipR3(config-if)#ip address 0 R3(config-if)#int f0/1 R3(config-if)#ip address R
6、3(config-if)#no shut查看路由表 R1#show ip route Codes: C - connected, S - static, 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 i - IS-IS, su -
7、 IS-IS summary, 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 routeGateway of last resort is not set /24 is subnetted, 2 subnetsC is directly connected, FastEthernet0/0C is directly connected, Lo
8、opback0R2#show ip route Codes: C - connected, S - static, 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 i - IS-IS, su - IS-IS summary, L1
9、- 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 Gateway of last resort is not set /24 is subnetted, 3 subnetsC is directly connected, FastEthernet0/1C is directly connected, FastEthernet0/0C is
10、directly connected, Loopback0R3#show ip route Codes: C - connected, S - static, 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 i - IS-IS, s
11、u - IS-IS summary, L1 - IS-IS level-1, L2 - IS-IS level-2ia - IS-IS inter area, * - candidate default, U - per-user statirouteo - ODR, P - periodic downloaded static route Gateway of last resort is not set/24 is subnetted, 2 subnetsC is directly connected, FastEthernet0/1C is directly connected, Loo
12、pback02.配置 RIPv2R1#conf tEnter configuration commands, one per line.R1(config)#router ripR1(config-router)#ver 2R1(config-router)#network R1(config-router)#network R2#conf tEnter configuration commands, one per line.R2(config)#router ripR2(config-router)#network R2(config-router)#network R2(config-r
13、outer)#network R3#conf tEnter configuration commands, one per line.R3(config)#router ripR3(config-router)#network R3(config-router)#network 查看各路由器的路由表End with CNTL/Z.End with CNTL/Z.End with CNTL/Z.R1#show ip routeCodes: C - connected, S - static, R - RIP, M - mobile, B - BGPD - EIGRP, EX - EIGRP ex
14、ternal, 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 2i - IS-IS, su - IS-IS summary, L1 - IS-IS level-1, L2 - IS-IS level-2ia - IS-IS inter area, * - candidate default, U - per-user static route o - ODR
15、, P - periodic downloaded static routeGateway of last resort is not set/24 is subnetted, 5 subnetsR 120/1 via , 00:00:16, FastEthernet0/0C is directly connected, FastEthernet0/0R 120/1 via , 00:00:16, FastEthernet0/0C is directly connected, Loopback0R 120/2 via , 00:00:16, FastEthernet0/0R2#show ip
16、route Codes: C - connected, S - static, 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 i - IS-IS, su - IS-IS summary, L1 - IS-IS level-1, L
17、2 - IS-IS level-2 ia - IS-IS inter area, * - candidate default, U - per-user static routeo - ODR, P - periodic downloaded static route Gateway of last resort is not set /24 is subnetted, 5 subnetsC is directly connected, FastEthernet0/1C is directly connected, FastEthernet0/0Cis directlyconnected,Lo
18、opback0R120/1 via,00:00:15,FastEthernet0/0R120/1 via,00:00:24,FastEthernet0/1R3#show ip routeCodes: C - connected, S - static, 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
19、 type 1, E2 - OSPF external type 2 i - IS-IS, su - IS-IS summary, 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 Gateway of last resort is not set /24 is subnetted, 5 subnetsC is directly co
20、nnected, FastEthernet0/1R 120/1 via , 00:00:25, FastEthernet0/1R120/1 via,00:00:25,FastEthernet0/1R120/2 via,00:00:25,FastEthernet0/1Cis directlyconnected,Loopback0测试网络的通透性 R1#ping 0 Type escape sequence to abort. Sending 5, 100-byte ICMP Echos to 0, timeout is 2 seconds:Success rate is 100 percent
21、(5/5), R1#ping 0Type escape sequence to abort.Sending 5, 100-byte ICMP Echos toround-trip min/avg/max = 88/100/120 m0, timeout is 2 seconds:Success rate is 100 percent (5/5), 5.调试RIP,分析结果 R2#debug ip rip RIP protocol debugging is on R2# *Mar 1 01:08:10.331: RIP: sending FastEthernet0/0 ()RIP: build
22、update /24 via /24 viaround-trip min/avg/max = 60/69/84 msv2 update tovia*Mar*Mar*Mar*MarR2#*Mar1111010101010808080810.33110.33110.33110.335entries,/24 via ,01:08:17.359:metricmetricmetric 1,1,2,tag 0tag 0tag 0RIP: received v2 update from onFastEthernet0/1*Mar 1 01:08:17.359:6.将R3接口 f0/1关闭,分析R2调试结果,
23、很长发现端口不可达。 R2#*Mar 1 01:30:34.647:FastEthernet0/1*Mar 1 01:30:34.647:R2#*Mar 1 01:30:36.035:FastEthernet0/0*Mar 1 01:30:36.039:R2#*Mar 1 01:31:12.567:(0)/24 via in 1 hopsRIP: received v2 update from /24 via in 1 hopsRIP: received v2 update from /24 via in 1 hopsRIP: sending v2 update toononvia Loopb
24、ack0*Mar1 013112.567*Mar1 013112.567*Mar1 013112.567*Mar1 013112.571*Mar1 013112.571*Mar1 013112.575RIP: build update/24 via/24 viaentries,/24 via ,/24 via ,RIP: ignored v2 packet frommetric 2,metric 2,metric 1, metric 1,i 0tag 0tag 0tag 0tag 0(sourced froone of ourR2#undebugaddresses) all7.保存路由配置R1
25、#copy run starDestination filename startup-config?Building configuration.OKR2#copy run starDestination filename startup-config?Building configuration.OK8.抓取RIPv2包在R1和R2之间的链路上R.1 Fdhil(hig R2 rdSiEU t-rdp ell X G r 笠 / 4 二三 W-3.TineiSour-ccles iirLiti mFrot-ocij-l L bog th. Cnfc?7 21.31S7131p27.12+22
26、24h04Qk9iripvz16 Response8 26.907679|9 *49目伽4:Q2 iie:b4;:0:eec4;02; lG;t4;&:00LOOPce Reply.Cd:Dl:36:94.:fl0:eeC4;&1: 3ft:34:&O:00LOOPfiC Reply2N 口羽1.Z7.12*1224,04.9RIPVZ0C RespQnse115.6824612 37.35SSS014 47蜘她L4:dl:36:94;:e0:60 CCP/WTP/DTP/PA&P/IJD. LDPDevice ID: R1 Port ID: FaH5:网;理;wi;抓:eem;睨;m:w:邱:loopeeReply.C4:B1 :36:Q4:00:GBd:Hl:拓 34:00:潮IOOPfiQRplyC4:如:10:血:国日:跚C4:EJ2:ICKJP机JHeply|m.449 m町Pv、1 砺 RMpon犯| Ipply 九 dlwpljjy !ltu:r Ctrl金 3Header checksum statute Ur
温馨提示
- 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
- 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
- 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
- 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
- 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
- 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
- 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。
最新文档
- 2026-2027年度企业公司集团部门数字化转型实施方案范文模板
- 26年养老护理操作指南课件
- 福建省长汀、连城、武平、永定、漳平、上杭六地一中联考2026年3月高三一轮复习摸底考试(线上)化学试题含解析
- 肾癌G250单克隆抗体的制备、鉴定及初步应用研究:开启肾癌精准诊疗新征程
- 肼苯哒嗪联合硝酸异山梨酯对慢性心力衰竭大鼠的疗效及机制探究
- 办公室清洁2026年合同协议
- 肺动静脉瘘:精准诊断与外科治疗策略的深度剖析
- 育龄人群孕前优生中医预防保健服务包的成本 - 效果探究:基于实践案例的分析
- 肩关节镜下缝线桥技术治疗肩袖撕裂:临床疗效与优势的深度剖析
- 股权质押风险防控:理论、案例与策略探究
- 2025年证券从业资格考试金融知识市场基础要点深度解析
- 诺卡菌病治疗及护理
- 记背手册04高考文言文知识清单(古今异义+通假字+固定句式)备战2025年高考语文一轮复习专题讲义(北京专用)
- 半导体生产过程安全课件
- 国开《数字电子电路》形考作业1-3答案
- 魔法森林的奇幻之旅童话故事5篇
- 供应商管理标准作业程序
- 代办开发资质合同范本
- (正式版)DB13∕T 6146-2025 《重点排放单位碳排放计量管理体系建设指南》
- 麻醉学急救处理方案
- 什么是音乐ai课件教学
评论
0/150
提交评论