




已阅读5页,还剩3页未读, 继续免费阅读
版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领
文档简介
实验:自动汇总和手动汇总环境如图:实验目的:1 看自动汇总的效果。2 做手动汇总。注解:由于动态路由有一个生存周期,因此修改完成后,结果不会马上生效,一般都要几分钟后才能正常生效。基本配置:R1RouterenRouter#configure terminal Router(config)#hostname r1r1(config)#line console 0r1(config-line)#logging synchronous r1(config-line)#exec-timeout 0r1(config-line)#exitr1(config)#interface serial 1/2r1(config-if)#ip address 12.12.12.1 255.255.255.0r1(config-if)#no shutdown r1(config-if)#exitr1(config)#interface loopback 0r1(config-if)#ip address 1.1.1.1 255.255.255.0r1(config-if)#no shutdown r1(config-if)#exitr1(config)#interface loopback 1r1(config-if)#ip address 1.1.2.1 255.255.255.0r1(config-if)#no shutdown r1(config-if)#exitr1(config)#exitr1#wrR2Routerenable Router#configure terminal Router(config)#hostname r2r2(config)#line console 0r2(config-line)#logging synchronous r2(config-line)#exec-timeout 0r2(config-line)#exitr2(config)#interface serial 1/3r2(config-if)#ip address 12.12.12.2 255.255.255.0r2(config-if)#no shutdown r2(config-if)#exitr2(config)#interface loopback 0r2(config-if)#ip address 2.2.2.2 255.255.255.0r2(config-if)#no shutdown r2(config-if)#exitr2(config)#interface loopback 1 r2(config-if)#ip address 2.2.1.2 255.255.255.0 r2(config-if)#no shutdown r2(config-if)#exitr2(config)#exitr2#wr配置Rip v2 动态路由协议R1r1#configure terminal r1(config)#router rip r1(config-router)#version 2r1(config-router)#network 12.12.12.1 r1(config-router)#network 1.1.1.1r1(config-router)#network 1.1.2.1 r1(config-router)#no auto-summary r1(config-router)#exitr1(config)#exitR2r2#configure terminal r2(config)#router ripr2(config-router)#version 2r2(config-router)#network 12.12.12.2r2(config-router)#network 2.2.2.2r2(config-router)#network 2.2.1.2r2(config-router)#no auto-summaryr2(config-router)#exitr2(config)#exit显示路由表R1r1#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 - 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 1.0.0.0/24 is subnetted, 2 subnetsC 1.1.1.0 is directly connected, Loopback0C 1.1.2.0 is directly connected, Loopback1 2.0.0.0/8 is variably subnetted, 3 subnets, 2 masksR 2.2.1.0/24 120/1 via 12.12.12.2, 00:00:22, Serial1/2R 2.2.2.0/24 120/1 via 12.12.12.2, 00:00:22, Serial1/2 12.0.0.0/24 is subnetted, 1 subnetsC 12.12.12.0 is directly connected, Serial1/2R2r2#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 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 routeGateway of last resort is not set 1.0.0.0/24 is subnetted, 2 subnetsR 1.1.1.0 120/1 via 12.12.12.1, 00:00:10, Serial1/3R 1.1.2.0 120/1 via 12.12.12.1, 00:00:10, Serial1/3 2.0.0.0/24 is subnetted, 2 subnetsC 2.2.1.0 is directly connected, Loopback1C 2.2.2.0 is directly connected, Loopback0 12.0.0.0/24 is subnetted, 1 subnetsC 12.12.12.0 is directly connected, Serial1/3Ping测试R1r1#ping 2.2.2.2测试通过Type escape sequence to abort.Sending 5, 100-byte ICMP Echos to 2.2.2.2, timeout is 2 seconds:!Success rate is 100 percent (5/5), round-trip min/avg/max = 32/158/276 msr1#ping 2.2.2.2 source 1.1.1.1测试通过Type escape sequence to abort.Sending 5, 100-byte ICMP Echos to 2.2.2.2, 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 = 28/108/220 msr1#ping 2.2.2.2 source 1.1.2.1测试通过Type escape sequence to abort.Sending 5, 100-byte ICMP Echos to 2.2.2.2, timeout is 2 seconds:Packet sent with a source address of 1.1.2.1 !Success rate is 100 percent (5/5), round-trip min/avg/max = 48/121/200 msR2r2#ping 1.1.1.1测试通过Type escape sequence to abort.Sending 5, 100-byte ICMP Echos to 1.1.1.1, timeout is 2 seconds:!Success rate is 100 percent (5/5), round-trip min/avg/max = 20/134/204 msr2#ping 1.1.1.1 source 2.2.1.2测试通过Type escape sequence to abort.Sending 5, 100-byte ICMP Echos to 1.1.1.1, timeout is 2 seconds:Packet sent with a source address of 2.2.1.2 !Success rate is 100 percent (5/5), round-trip min/avg/max = 12/98/268 msr2#ping 1.1.1.1 source 2.2.2.2测试通过Type escape sequence to abort.Sending 5, 100-byte ICMP Echos to 1.1.1.1, timeout is 2 seconds:Packet sent with a source address of 2.2.2.2 !Success rate is 100 percent (5/5), round-trip min/avg/max = 4/133/196 ms通过以上测试说明目前我们的Rip v2运行很正常。网络连通性很好。自动汇总R1自动汇总r1#configure terminal r1(config)#router ripr1(config-router)#auto-summary r1(config-router)#exitr1(config)#exit现在R2的路由表r2#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 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 routeGateway of last resort is not setR 1.0.0.0/8 120/1 via 12.12.12.1, 00:00:02, Serial1/3 2.0.0.0/24 is subnetted, 2 subnetsC 2.2.1.0 is directly connected, Loopback1C 2.2.2.0 is directly connected, Loopback0 12.0.0.0/24 is subnetted, 1 subnetsC 12.12.12.0 is directly connected, Serial1/3路由条目:R 1.0.0.0/8 120/1 via 12.12.12.1, 00:00:02, Serial1/3替代了原来的路由条目: 1.0.0.0/24 is subnetted, 2 subnetsR 1.1.1.0 120/1 via 12.12.12.1, 00:00:10, Serial1/3R 1.1.2.0 120/1 via 12.12.12.1, 00:00:10, Serial1/3将2条汇总成了1条。由于是自动汇总的,因此他们是被汇总成为了一条主类路由自动汇总是在R1上做的,然后将汇总完成后的路由条目发送到R2上,因此是在R2的路由表里面体现出来汇总后的结果。取消自动汇总r1#configure terminal r1(config)#router ripr1(config-router)#no auto-summary r1(config-router)#exitr1(config)#exit手动汇总R1手动汇总命令r1#configure terminal r1(config)#interface serial 1/2r1(config-if)#ip summary-address rip 1.1.1.1 255.255.252.0r1(config-if)#exit r1(config)#exitR2上查看结果r2#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 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 routeGateway of last resort is not set 1.0.0.0/2
温馨提示
- 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
- 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
- 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
- 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
- 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
- 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
- 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。
最新文档
- 砖厂承包生产合同范本
- 用资质签合同范本
- 体外诊断试剂(药品)质量体系考核试题及答案
- 兼职保洁工合同范本
- 儿科急救药品知识考核测试题库含答案
- 职业卫生知识培训试题(与答案)
- 2025年银行高管试题及答案
- 2025年继续教育公需课必修考试题及参考答案
- 2025年高端自驾出行车辆全面安全检测与保养服务合同范本
- 新能源汽车安全操控技能培训服务合同
- 2025年政府部门文秘岗位笔试模拟题及答案集
- 2025年全科医师转岗培训理论知识题库及参考答案
- 2025-2026学年人教版(2024)初中生物八年级上册教学计划及进度表
- (高清版)DB11∕T 1455-2025 电动汽车充电基础设施规划设计标准
- 2025年辅警招聘考试真题(含答案)
- 电化学储能电站设计标准
- 消除母婴三病传播培训课件
- 附件6工贸高风险企业高危领域较大以上安全风险管控清单
- ASTM-D3359-(附著力测试标准)-中文版
- iatf16949-2016标准与程序文件对照表
- 过程装备与控制工程导论
评论
0/150
提交评论