




已阅读5页,还剩4页未读, 继续免费阅读
版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领
文档简介
OSPF虚链路(virtual-link)配置实例这个配置将验证一个OSPF虚电路(Virtual-Link)的过程,重点在观察虚链路连接的临时网络与正常区域间路由有何区别。上图中区域4(area 4)没有和area 0直接相连。在R2与R3之间配置了一条虚链路。/ R1 /int lo0 ip ad 1.1.1.1 255.255.255.0int e0 ip ad 192.1.1.1 255.255.255.0router os 1 network 192.1.1.0 0.0.0.255 area 0/ R2 /int lo0 ip ad 2.2.2.2 255.255.255.0int e0 ip ad 192.1.1.2 255.255.255.0int e1 ip ad 193.1.1.2 255.255.255.0router os 1 network 192.1.1.0 0.0.0.255 area 0 network 193.1.1.0 0.0.0.255 area 1/ R3 /int lo0 ip ad 3.3.3.3 255.255.255.0int e1 ip ad 193.1.1.3 255.255.255.0int e0 ip ad 194.1.1.3 255.255.255.0router os 1 network 193.1.1.0 0.0.0.255 area 1 network 194.1.1.0 0.0.0.255 area 4/ R4 /int lo0 ip ad 4.4.4.4 255.255.255.0int e0 ip ad 194.1.1.4 255.255.255.0router os 1 network 194.1.1.0 0.0.0.255 area 4基本配置完成后,我们在每台路由器上分别来验证一下:r1#sh ip os neiNeighbor ID Pri State Dead Time Address Interface2.2.2.2 1 FULL/BDR 00:00:33 192.1.1.2 Ethernet0/0r1#r1#sh ip ro 1.0.0.0/24 is subnetted, 1 subnetsC 1.1.1.0 is directly connected, Loopback0O IA 193.1.1.0/24 110/20 via 192.1.1.2, 00:00:19, Ethernet0/0C 192.1.1.0/24 is directly connected, Ethernet0/0/注意R1上有关于193.1.1.0的路由条目,是属于IA类型(域间路由)r2#sh ip os neiNeighbor ID Pri State Dead Time Address Interface1.1.1.1 1 FULL/DR 00:00:35 192.1.1.1 Ethernet0/03.3.3.3 1 FULL/BDR 00:00:35 193.1.1.3 Ethernet1/0r2#r2#r2#sh ip ro 2.0.0.0/24 is subnetted, 1 subnetsC 2.2.2.0 is directly connected, Loopback0C 193.1.1.0/24 is directly connected, Ethernet1/0C 192.1.1.0/24 is directly connected, Ethernet0/0r3#sh ip os neiNeighbor ID Pri State Dead Time Address Interface2.2.2.2 1 FULL/DR 00:00:32 193.1.1.2 Ethernet1/04.4.4.4 1 FULL/DR 00:00:34 194.1.1.4 Ethernet0/0r3#sh ip ro 3.0.0.0/24 is subnetted, 1 subnetsC 3.3.3.0 is directly connected, Loopback0C 193.1.1.0/24 is directly connected, Ethernet1/0O IA 192.1.1.0/24 110/20 via 193.1.1.2, 00:02:49, Ethernet1/0C 194.1.1.0/24 is directly connected, Ethernet0/0/注意R3中有关于192.1.1.0的路由是属于IA类型(域间路由)r4#sh ip os neiNeighbor ID Pri State Dead Time Address Interface3.3.3.3 1 FULL/BDR 00:00:33 194.1.1.3 Ethernet0/0r4#sh ip ro 4.0.0.0/24 is subnetted, 1 subnetsC 4.4.4.0 is directly connected, Loopback0C 194.1.1.0/24 is directly connected, Ethernet0/0/R4上没有关于AREA 0内的任何路由信息我们下面在R2、R3上添加Virtual-link的配置:R2:router os 1 area 1 virtual-link 3.3.3.3R3:router os 1 area1 virtual-link 2.2.2.2对比之前的路由信息,看有何区别:r1#sh ip ro 1.0.0.0/24 is subnetted, 1 subnetsC 1.1.1.0 is directly connected, Loopback0O IA 193.1.1.0/24 110/20 via 192.1.1.2, 00:00:01, Ethernet0/0C 192.1.1.0/24 is directly connected, Ethernet0/0O IA 194.1.1.0/24 110/30 via 192.1.1.2, 00:00:01, Ethernet0/0/多了一条194网段的路由,类型IA(区域间)r2#sh ip ro 2.0.0.0/24 is subnetted, 1 subnetsC 2.2.2.0 is directly connected, Loopback0C 193.1.1.0/24 is directly connected, Ethernet1/0C 192.1.1.0/24 is directly connected, Ethernet0/0O IA 194.1.1.0/24 110/20 via 193.1.1.3, 00:00:06, Ethernet1/0/多了一条194网段路由,类型为IA(区域间)r3#sh ip ro 3.0.0.0/24 is subnetted, 1 subnetsC 3.3.3.0 is directly connected, Loopback0C 193.1.1.0/24 is directly connected, Ethernet1/0O 192.1.1.0/24 110/20 via 193.1.1.2, 00:02:56, Ethernet1/0C 194.1.1.0/24 is directly connected, Ethernet0/0/R3的192路由原本为IA类型(区域间),现在转为O类型(区域内),说明R3认为自已与192网段是直连的。虚链路相当于将R3直接连接了AREA 0 与 AREA 4区域r4#sh ip ro 4.0.0.0/24 is subnetted, 1 subnetsC 4.4.4.0 is directly connected, Loopback0O IA 193.1.1.0/24 110/20 via 194.1.1.3, 00:03:40, Ethernet0/0O IA 192.1.1.0/24 110/30 via 194.1.1.3, 00:03:25, Ethernet0/0C 194.1.1.0/24 is directly connected, Ethernet0/0/R4上192路由类型IA(区域间)最后我们将虚链路效果再与正常连接方式进行一下比对,如下图:验证如下:r1#sh ip ro 1.0.0.0/24 is subnetted, 1 subnetsC 1.1.1.0 is directly connected, Loopback0O IA 193.1.1.0/24 110/20 via 192.1.1.2, 00:00:41, Ethernet0/0C 192.1.1.0/24 is directly connected, Ethernet0/0C 192.2.2.0/24 is directly connected, Ethernet1/0O IA 194.1.1.0/24 110/20 via 192.2.2.4, 00:00:39, Ethernet1/0r2#sh ip ro 2.0.0.0/24 is subnetted, 1 subnetsC 2.2.2.0 is directly connected, Loopback0C 193.1.1.0/24 is directly connected, Ethernet1/0C 192.1.1.0/24 is directly connected, Ethernet0/0O 192.2.2.0/24 110/20 via 192.1.1.1, 00:01:04, Ethernet0/0O IA 194.1.1.0/24 110/30 via 192.1.1.1, 00:00:03, Ethernet0/0r2#r3#sh ip ro 3.0.0.0/24 is subnetted, 1 subnetsC 3.3.3.0 is directly connected, Loopback0C 193.1.1.0/24 is directly connected, Ethernet1/0O IA 192.1.1.0/24 110/20 via 193.1.1.2, 00:01:31, Ethernet1/0O IA 192.2.2.0/24 110/30 via 193.1.1.2, 00:01:15, Ethernet1/0O IA 194.1.1.0/24 110/40 via 193.1.1.2, 00:00:15, Ethernet1/0r4#sh ip ro 4.0.0.0/24 is subnetted, 1 subnetsC 4.4.4.0 is directly connected, Loopback0O IA 193.1.1.0/24 110/30 via 192.2.2.1, 00:00:39, Ethernet1/0O 192.1.1.0/24 110/20 via 192.2.2.1, 00:01:37, Ethernet1/0C 192.2.2.0/24 is directly connected, Ethernet1/0C 194.1.1.0/24 is directly connected, Ethernet0/0r5#sh ip ro 5.0.0.0/24 is subnetted, 1 subnetsC 5.5.5.0 is directly connected, Loopback0O IA 193.1.1.0/24 110/40 via 194.1.1.4, 00:00:52, Ethernet0/0O IA 192.1.1.0/24 110/30 via 194.1.1.4, 00:00:52, Ethernet0/0O IA 192.2.2.0/24 110/20 via 194.1.1.4, 00:00:52, Ethernet0/0C 194.1.1.0/24 is directly connected, Ethernet0/0如果上述方式还不容易理解,你也可以将virtual-link可以想象成:将R2与R3合并成一台路由器,如下图:r1#sh ip ro 1.0.0.0/24 is subnetted, 1 subnetsC 1.1.1.0 is directly connected, Loopback0O IA 193.1.1.0/24 110/20 via 192.1.1.2, 00:00:57, Ethernet0/0C 192.1.1.0/24 is directly connected, Ethernet0/0O IA 194.1.1.0/24 110/74 via 192.1.1.2, 00:00:24, Ethernet0/0r2#sh ip ro 2.0.0.0/24 is subnetted, 1 subnetsC 2.2.2.0 is directly connected, Loopback0C 193.1.1.0/24 is directly connected, Ether
温馨提示
- 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
- 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
- 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
- 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
- 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
- 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
- 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。
最新文档
- 2025湖南衡阳市水务投资集团有限公司招聘30人考前自测高频考点模拟试题及答案详解(历年真题)
- 2025河北沧州孟村饶安高级中学招聘1人考前自测高频考点模拟试题及参考答案详解一套
- 2025广东依顿电子科技股份有限公司招聘高级经理岗模拟试卷附答案详解(考试直接用)
- 2025辽渔集团有限公司人员考前自测高频考点模拟试题及答案详解(考点梳理)
- 2025年福建省漳州市医院招聘若干人模拟试卷含答案详解
- 2025安徽皖信人力资源管理有限公司招聘某政务热线话务员招聘10人模拟试卷及一套答案详解
- 2025甘肃定西市岷县人力资源和社会保障局招聘城镇公益性岗位人员11人模拟试卷及1套参考答案详解
- 2025江苏盐城工学院招聘专职辅导员13人模拟试卷及一套参考答案详解
- 2025年河北北方学院附属第二医院选聘工作人员6名模拟试卷附答案详解(考试直接用)
- 2025河南信阳市潢川县退役军人事务局招聘3名全日制公益性岗位模拟试卷及答案详解一套
- 2025年河南省文化旅游投资集团有限公司权属企业社会招聘52人笔试参考题库附答案解析
- 吉林省松原市四校2025~2026学年度下学期九年级第一次月考试卷 物理(含答案)
- 2025云南昆明元朔建设发展有限公司第一批收费员招聘20人考试参考试题及答案解析
- 2025年北京市海淀区中考二模语文试题
- 上海工资发放管理办法
- 社会科学研究方法 课件 第九章 实地研究
- 2025秋统编版(2024)小学道德与法治三年级上册(全册)课时练习及答案(附目录)
- 医院空气消毒技术规范
- 药物外渗的PDCA循环管理
- 2024年乡村振兴应知应会考试题及答案
- 破局向新 持续向上-2025年人力资源发展趋势报告-智联招聘北大国发院
评论
0/150
提交评论