资源预览内容
第1页 / 共6页
第2页 / 共6页
第3页 / 共6页
第4页 / 共6页
第5页 / 共6页
第6页 / 共6页
亲,该文档总共6页全部预览完了,如果喜欢就下载吧!
资源描述
- 1 -实验 2. 动态路由协议RIP实验配置1 应用背景动态路由协议-RIP由于设计简单,曾经几乎从我们的视线中消失,很少有人去关注它们。然而,在我们实际网络工程上不会出现一个最完美的路由协议,只有最适宜的。设计网络时,需要考虑网络的规模、网络的特点、网络的运维成本等等,根据这些需求来搭建我们的网络和选择路由协议。简单、朴实就是美。简单的RIP路由必有其生存的土壤。在一些比较特殊的行业或者领域,他们更关注网络的稳定性和易维护性。在此前提下,RIP路由以其简单够用的特点成为许多网络的选择。2 实验目的通过本实验,掌握以下技能: 在路由器上启动RIPv1和RIPv2 路由进程 启用路由协议RIP,并且将接口网段通告 解读路由表的信息 查看和调试 RIPv1 路由协议 RIP 相关信息3 设备需求:思科路由器 3640 三台4 实验拓扑:H l s z _ R 1 H l s z _ R 3H l s z _ R 2L O O P B A C K 0 I p a d d 1 . 1 . 1 . 1 / 3 2L O O P B A C K 0 I p a d d 3 . 3 . 3 . 3 / 3 2成 都 互 联 神 州 网 络 技 术 培 训 w w w . c i s c o h u a w e i . c o mS 2 / 0S 2 / 0S 2 / 1 S 2 / 15 实验步骤5.1、RIPv1 配置配置静态路由让 R1 loopback 0:1.1.1.1/24、R2 loopback - 2 -0:2.2.2.2/24、R3 loopback 0:3.3.3.3/24 能够相互通信,基本配置略。配置路由器R1R1(config)#router rip /启动RIP 进程R1(config-router)#version 1 /配置RIP 版本1,默认情况,RIP启用version1。R1(config-router)#network 1.0.0.0 /通过网络R1(config-router)#network 12.0.0.0配置路由器R2R2(config)#router ripR2(config-router)#version 1R2(config-router)#network 2.0.0.0R2(config-router)#network 12.0.0.0R2(config-router)#network 23.0.0.0配置路由器R3R3(config)#router ripR3(config-router)#version 1R3(config-router)#network 3.0.0.0R3(config-router)#network 23.0.0.05.1.3、调试实验信息查看任意一台路由器的路由表R1#sh ip route Codes: C - connected, S - static, R - RIP, M - mobile, B - BGPD - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area N1 - 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 - 3 -static routeo - ODR, P - 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, Loopback0R 2.0.0.0/8 120/1 via 12.1.1.2, 00:00:01, Serial2/0R 3.0.0.0/8 120/1 via 12.1.1.2, 00:00:01, Serial2/0R 23.0.0.0/8 120/1 via 12.1.1.2, 00:00:01, Serial2/012.0.0.0/24 is subnetted, 1 subnetsC 12.1.1.0 is directly connected, Serial2/0以上输出表明路由器 R1 学到了 3 条 RIP 路由,其含义: R:路由条目是通过RIP 路由协议学习来的; 2.0.0.0/8:目的网络; 120:RIP 路由协议的默认管理距离; 1: 度量值,从路由器R1 到达网络2.0.0.0/8 的度量值为1 跳; 12.1.1.2:下一跳地址; 00:00:01:距离下一次更新还有29秒; Serial2/0:接收该路由条目的本路由器的接口。同时通过该路由条目的掩码长度可以看到,RIPv1 确实不传递子网信息。R1#show ip protocols Routing Protocol is rip /路由协议 ripOutgoing update filter list for all interfaces is not setIncoming update filter list for all interfaces is not setSending updates every 30 seconds, next due in 9 seconds/发送更新时间为 30 秒,距离下次更新还有 9 秒Invalid after 180 seconds, hold down 180, flushed after 240/路由无效时间为 180 秒,抑制计时时间为 180 秒,路由条目删除时间 240 秒。Redistributing: ripDefault version control: send version 1, receive any version- 4 -Interface Send Recv Triggered RIP Key-chainSerial2/0 1 1 2 Loopback0 1 1 2 Automatic network summarization is in effectMaximum path: 4Routing for Networks:1.0.0.012.0.0.0/通过的网络Routing Information Sources:Gateway Distance Last Update12.1.1.2 120 00:00:03Distance: (default is 120)/默认网关地址:12.1.1.2 ,管理距离为 120,下次更新时间还有 3 秒。测试R1#ping 3.3.3.3 sou 1.1.1.1Type escape sequence to abort.Sending 5, 100-byte ICMP Echos to 3.3.3.3, timeout is 2 seconds:Packet sent with a source address of 1.1.1.1 !Success rate is 100 percent (5/5), round-trip min/avg/max = 16/20/24 ms/用 R1 的环回接口地址 1.1.1.1 PING R3 上的环回接口地址 3.3.3.3,测试通过。5.2 RIPv25.2.1 实验目的通过本实验,读者可以掌握如下技能:- 5 - 在路由器上启动RIPv2 路由进程 启用参与路由协议的接口,并且通告网络 auto-summary 的使用 验证RIPv2 路由协议相关信息5.2.2. 实验拓扑如图2.15.2.3. 实验步骤配置路由器R1R1(config)#router ripR1(config-router)#version 2R1(config-router)#no auto-summaryR1(config-router)#network 1.1.1.0R1(config-router)#network 12.1.1.0配置路由器R2R2(config)#router ripR2(config-router)#version 2R2(config-router)#no auto-summaryR2(config-router)#network 2.2.2.0R2(config-router)#network 12.1.1.0R2(config-router)#network 23.1.1.0配置路由器R3R3(config)#router ripR3(config-router)#version 2R3(config-router)#no auto-summaryR3(config-router)#network 3.3.3.0R3(config-router)#network 23.1.1.05.2.4 实验调试- 6 -R3#sh ip route Codes: C - connected, S - static, R - RIP, M - mobile, B - BGPD - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area N1 - 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 routeo - ODR, P - periodic downloaded static routeGateway of last resort is not set1.0.0.0/24 is subnetted, 1 subnetsR 1.1.1.0 120/2 via 23.1.1.2, 00:00:00, Serial2/12.0.0.0/24 is subnetted, 1 subnetsR 2.2.2.0 120/1 via 23.1.1.2, 00:00:00, Serial2/13.0.0.0/24 is subnetted, 1 subnetsC 3.3.3.0 is directly connected, Loopback023.0.0.0/24 is subnetted, 1 subnetsC 23.1.1.0 is directly connected, Serial2/112.0.0.0/24 is subnetted, 1
网站客服QQ:2055934822
金锄头文库版权所有
经营许可证:蜀ICP备13022795号 | 川公网安备 51140202000112号