全文预览已结束
下载本文档
版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领
文档简介
R1Lo 0172.16.1.1/24s1/110.1.1.1/24R2s1/010.1.1.2/24s1/110.2.2.1/24R3s1/010.2.2.2/24Lo 0192.168.1.1/24步骤一:配置各路由器的IP地址,并使用ping命令确认直连接口相互可以ping通。步骤二:使用show ip route查看各路由器的路由表。R1#show ip route查看路由表 Codes: 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, 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 172.16.0.0/24 is subnetted, 1 subnetsC 172.16.1.0 is directly connected, Loopback0 10.0.0.0/24 is subnetted, 1 subnetsC 10.1.1.0 is directly connected, Serial1/1目前只有直连路由的路由条目R1#步骤三:配置三台路由器RIP路由。R1(config)#router rip 启用RIP路由协议R1(config-router)#network 172.16.0.0将172.16.0.0网络所在的接口加入到RIP的运行进程中。1 向外通告路由,此接口网络号将被包含。2 同时,通告将从此接口被发出。R1(config-router)#network 10.0.0.0R1(config-router)#exitR2(config)#router ripR2(config-router)#network 10.0.0.0此处network一次,同时可以包含两个接口。此为主类汇总地址。R2(config-router)#exitR3(config)#router ripR3(config-router)#network 10.0.0.0R3(config-router)#network 192.168.1.0R3(config-router)#exit步骤四:在任意一台路由器PING远端非直连网络R1#ping 192.168.1.1Type escape sequence to abort.Sending 5, 100-byte ICMP Echos to 192.168.1.1, timeout is 2 seconds:!此处是可PING通的。为什么?Success rate is 100 percent (5/5), round-trip min/avg/max = 836/1046/1144 msR1#步骤五:查看R1的路由表R1#show ip route Codes: 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, 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 172.16.0.0/24 is subnetted, 1 subnetsC 172.16.1.0 is directly connected, Loopback0 10.0.0.0/24 is subnetted, 2 subnetsR 10.2.2.0 120/1 via 10.1.1.2, 00:00:15, Serial1/1此条目标识为R,表示此条路由是通过RIP学习到。120/1:120为管理路离1为度量值C 10.1.1.0 is directly connected, Serial1/1R 192.168.1.0/24 120/2 via 10.1.1.2, 00:00:15, Serial1/1步骤六:查RIP的相关属性R1#show ip protocols Routing Protocol is rip Sending updates every 30 seconds, next due in 9 seconds30秒的更新周期 Invalid after 180 seconds, hold down 180, flushed after 240第一个180为路由失效时间。第二个180秒为沉默时间第三个240删除路由时间 Outgoing update filter list for all interfaces is not set Incoming update filter list for all interfaces is not set Redistributing: rip Default version control: send version 1, receive any version Interface Send Recv Triggered RIP Key-chain Serial1/1 1 1 2 Loopback0 1 1 2 Automatic network summarization is in effect Maximum path: 4 Routing for Networks: 10.0.0.0 172.16.0.0 Routing Information Sources: Gateway Distance Last Update 10.1.1.2 120 00:00:15 Distance: (default is 120)管理距离步骤七:查看R3的路由表R3#show ip route Codes: 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, 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 172.16.0.0/16 120/2 via 10.2.2.1, 00:00:13, Serial1/0是RIP是Classful的路由协议,会在主类的边界自动的汇总.所以24位的网络在此处显示为16位的主类网络路由 10.0.0.0/24 is subnetted, 2 subnetsR 10.1.1.0 120/1 via 10.2.2.1, 00:00:13, Serial1/0C 10.2.2.0 is directly connected, Serial1/0R 131.1.0.0/16 120/1 via 10.2.2.1, 00:00:11, Serial1/0C 192.168.1.0/24 is directly connected, Loopback0步骤八:使用debug命令去观察自动汇总过程R1#debug ip rip RIP protocol debugging is on00:02:04: RIP: sending v1 update to 255.255.255.255广播通告 via Serial1/1 (10.1.1.1)00:02:04: RIP: build update entries00:02:04: network 172.16.0.0 metric 1汇总在此进行另外由于水平分隔的规则,向R2仅通告172.16.1.0/24路由00:02:04: RIP: sending v1 update to 255.255.255.255 via Loopback0 (172.16.1.1)00:02:04: RIP: build update entries00:02:04: network 10.0.0.0 metric 100:02:04: network 131.1.0.0 metric 200:02:04: network 192.168.1.0 metric 300:02:05: RIP: received v1 update from 10.1.1.2 on Serial1/100:02:05: 10.2.2.0 in 1 hops00:02:05: 131.1.0.0 in 1 hops00:02:05: 192.168.1.0 in 2 hops00:02:34: RIP: received v1 update from 10.1.1.1 on Serial1/000:02:34: 172.16.0.0 in 1 hopsR1#R1#undebug allR1#undebug ip rip关闭DEBUG步骤九:使用被动接口R3#debug ip rip RIP protocol debugging is on00:02:35: RIP: sending v1 update to 255.255.255.255 via Serial1/0 (10.2.2.2)00:02:35: RIP: build update entries00:02:35: network 192.168.1.0 metric 100:02:35: RIP: sending v1 update to 255.255.255.255 via Loopback0 (192.168.1.1)00:02:35: RIP: build update entries00:02:35: network 10.0.0.0 metric 100:02:35: network 131.1.0.0 metric 200:02:35: network 172.16.0.0 metric 3此处注意R3向回环接口发送更新。但回环没有路由器来接收此更新。那么我们可以使用被动接口,阻止路由通告从回环接口发出。R3#R3#conf tEnter configuration commands, one per line. End with CNTL/Z.R3(config)#router rip R3(config-r
温馨提示
- 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
- 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
- 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
- 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
- 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
- 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
- 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。
最新文档
- 2026届河北省承德市九校高三上学期期中联考历史试题(含答案)
- 蛋白质-能量营养不良的护理
- 2025湖南长沙市第二医院(长沙市妇幼保健院河西分院)自主招聘工作人员考核模拟试卷带答案解析
- 2026年设备监理师之质量投资进度控制考试题库200道含完整答案(考点梳理)
- 2026年土地登记代理人之土地权利理论与方法题库200道附参考答案(夺分金卷)
- 2026年宁波宁海县教育局面向高校应届毕业生招聘教师46人历年真题汇编及答案解析(夺冠)
- 2026年劳务员之劳务员基础知识考试题库200道附参考答案【黄金题型】
- 玛沁县紧密型医共体11月编外人员招聘历年真题汇编及答案解析(夺冠)
- 2026年楚雄州禄丰市校园招聘高中教师(20人)历年真题汇编附答案解析
- 2026年网络预约出租汽车驾驶员从业资格考试题库附完整答案(有一套)
- 2026-2031中国废塑料破碎行业市场前景预测及投资价值评估分析报告
- 2025年如法网考试试题及答案
- 2025陕西金泰氯碱化工有限公司招聘笔试历年常考点试题专练附带答案详解2套试卷
- DBJT 13-502-2025 古建筑安全监测技术标准
- 高速公路边坡治理总体施工组织设计(2025年9月19号)
- 2025年入团考试练习试题(100题)附答案
- T-CHSA 010-2023 恒牙拔牙术临床操作规范
- 山西省长子县山西凌志达煤业有限公司煤炭资源开发利用、地质环境保护与土地复垦方案
- 海姆立克评分标准
- 社会主义核心价值观与中华传统文化
- 新汉语水平考试HSK(五级)模拟试卷4(题后含答案及解析)
评论
0/150
提交评论