


全文预览已结束
下载本文档
版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领
文档简介
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. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。
最新文档
- 谁的花园大课件
- 2025年二手房买卖居间服务合同范本(含税费承担)
- 2025版防火玻璃防火卷帘门购销及安装合同
- 2025年度水路货物运输与船舶维修保养合同范本
- 2025版绿色金融融资中介服务合同范本
- 2025版船舶维修保养劳务合同范本
- 2025年智能电网用柴油发电机采购及监控合同
- 2025版墙体租赁与绿色生态保护合同
- 2025年度房地产项目投资合作协议
- 2025版科研机构研究员聘用合同书
- 2025-2030再生胶产业规划专项研究报告
- 完整的离婚协议书打印电子版(2025年版)
- 2025年人教部编版小学三年级语文上册全册单元测试题及答案(全套)
- 碧桂园物业管理
- 新时代中小学教师职业行为十项准则
- 去极端化教育宣讲
- 《走进物联网》课件
- 2023-2024学年浙江省杭州市钱塘区六年级上期末数学试卷(附答案解析)
- 2025年农村土地承包权补充协议
- JJF(皖) 175-2024 电子辊道秤校准规范
- 2025年人教版(2024)高一化学下册阶段测试试卷含答案
评论
0/150
提交评论