




版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领
文档简介
1、动态路由协议OSPF的虚拟链路配置软件:cisco packet tracer 6.0 Router型号(2811)网络拓扑图如下(R3右边的都属区域2,区域2可以删掉R5 R6 R7 R8)OSPF的区域配置规则是:普通区域必须与骨干区域直连。area 2的路由器 不能学习虚拟链路area 1的路由信息(即192.168.3.0)。因为建立虚拟链路后,在areas2的路由器角度,area 1是不存在的,只是一条链路(即R3是不存在的),拓扑图等价于area3-R1-area0-R2-area2-R4-area2(虚拟链路建立前: area3-R1-area0-R2-area1-R3-area
2、2-R4-area2)头尾的路由器如果只用了一个接口,才设一个环回接口(int loopback x)。其它的路由器不要设环回接口R1属于区域0 ,R2左接口属于区域0,右接口属于区域1 ,R3左接口属于区域1,右接口属于区域2,R3可以通过左边的接口能学习到区域0发布的路由(除区域2的路由),虚拟链路建立前区域0是学习不到R3右边接口的路由的 。如果要使区域0也能学到区域2(也就是R3右边接口的路由),要在区域0跟区域2之间建立一个虚链路 ,这样区域2的路由才能发布到区域0中。在一个OSPF网络中,选举一个路由器做为指定路由器DR,所有其他路由器只和它一个交换整个网络的一些路由更新信息,再由
3、它对邻居路由器发送更新报文。这样节省网络流量。再指定一个备份指定路由器BDR,当DR出现故障时,BDR起着备份的作用,它再发挥作用,确保网络的可靠性。路由器R1配置:RouterenRouter#conf tRouter(config)#int f0/0Router(config-if)#ip address 192.168.1.1 255.255.255.0Router(config-if)#no shutdownRouter(config-if)#exitRouter(config-if)#int f0/1Router(config-if)#ip address 192.168.2.1 2
4、55.255.255.0Router(config-if)#no shutdownRouter(config-if)#exitRouter(config-if)#router ospf 1 /启用OSPF协议/Router(config-router)#network 192.168.1.0 0.0.0.255 area 1Router(config-router)#network 192.168.2.0 0.0.0.255 area 0Router(config-router)#exit路由器R2配置:RouterenRouter#conf tRouter(config)#int f0/0R
5、outer(config-if)#ip address 192.168.2.2 255.255.255.0Router(config-if)#no shutdownRouter(config-if)#exitRouter(config-if)#int f0/1Router(config-if)#ip address 192.168.3.1 255.255.255.0Router(config-if)#no shutdownRouter(config-if)#exitRouter(config)#router ospf 1Router(config-router)#network 192.168
6、.2.0 0.0.0.255 area 0Router(config-router)#network 192.168.3.0 0.0.0.255 area 1Router(config-router)#area 1 virtual-link 192.168.4.1 /配置虚拟链路穿越area 1/Router(config-router)#exit路由器R3配置:RouterenRouter#conf tRouter(config)#int f0/0Router(config-if)#ip address 192.168.3.2 255.255.255.0Router(config-if)#n
7、o shutdownRouter(config-if)#exitRouter(config-if)#int f0/1Router(config-if)#ip address 192.168.4.1 255.255.255.0Router(config-if)#no shutdownRouter(config-if)#exitRouter(config)#router ospf 1Router(config-router)#network 192.168.3.0 0.0.0.255 area 1Router(config-router)#network 192.168.4.0 0.0.0.255
8、 area 2Router(config-router)#area 1 virtual-link 192.168.3.1Router(config-router)#exit路由器R4配置:RouterenRouter#conf tRouter(config)#int f0/0Router(config-if)#ip address 192.168.4.2 255.255.255.0Router(config-if)#no shutdownRouter(config-if)#exitRouter(config)#int f0/1Router(config-if)#ip address 192.1
9、68.5.1 255.255.255.0Router(config-if)#no shutdownRouter(config-if)#exitRouter(config)#int f1/0Router(config-if)#ip address 192.168.8.1 255.255.255.0Router(config-if)#no shutdownRouter(config-if)#exitRouter(config)#router ospf 1Router(config-router)#network 192.168.4.0 0.0.0.255 area 2Router(config-r
10、outer)#network 192.168.5.0 0.0.0.255 area 2Router(config-router)#network 192.168.8.0 0.0.0.255 area 2Router(config-router)#exit路由器R5配置:RouterenRouter#conf tRouter(config)#int f0/0Router(config-if)#ip address 192.168.5.2 255.255.255.0Router(config-if)#no shutdownRouter(config-if)#exitRouter(config)#i
11、nt f0/1Router(config-if)#ip address 192.168.6.1 255.255.255.0Router(config-if)#no shutdownRouter(config-if)#exitRouter(config)#router ospf 1Router(config-router)#network 192.168.5.0 0.0.0.255 area 2Router(config-router)#network 192.168.6.0 0.0.0.255 area 2Router(config-router)#exit路由器R6配置:RouterenRo
12、uter#conf tRouter(config)#int f0/0Router(config-if)#ip address 192.168.6.2 255.255.255.0Router(config-if)#no shutdownRouter(config-if)#exitRouter(config)#int f0/1Router(config-if)#ip address 192.168.7.1 255.255.255.0Router(config-if)#no shutdownRouter(config-if)#exitRouter(config)#router ospf 1Route
13、r(config-router)#network 192.168.6.0 0.0.0.255 area 2Router(config-router)#network 192.168.7.0 0.0.0.255 area 2Router(config-router)#exit路由器R7配置:RouterenRouter#conf tRouter(config)#int f0/0Router(config-if)#ip address 192.168.8.2 255.255.255.0Router(config-if)#no shutdownRouter(config-if)#exitRouter
14、(config)#int f0/1Router(config-if)#ip address 192.168.9.1 255.255.255.0Router(config-if)#no shutdownRouter(config-if)#exitRouter(config)#router ospf 1Router(config-router)#network 192.168.8.0 0.0.0.255 area 2Router(config-router)#network 192.168.9.0 0.0.0.255 area 2Router(config-router)#exit路由器R8配置:
15、RouterenRouter#conf tRouter(config)#int f0/0Router(config-if)#ip address 192.168.6.2 255.255.255.0Router(config-if)#no shutdownRouter(config-if)#exitRouter(config)#int f0/1Router(config-if)#ip address 192.168.7.1 255.255.255.0Router(config-if)#no shutdownRouter(config-if)#exitRouter(config)#router ospf 1Router(config-router)#network 192.168.9.0 0.0.0.255 area 2Router(con
温馨提示
- 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
- 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
- 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
- 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
- 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
- 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
- 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。
最新文档
- 亳州职业技术学院《工程统计》2023-2024学年第二学期期末试卷
- 河北地质大学华信学院《机械工程测试技术基础实验》2023-2024学年第二学期期末试卷
- 广东茂名农林科技职业学院《创新思维与设计》2023-2024学年第二学期期末试卷
- 贵州工业职业技术学院《特种连接技术》2023-2024学年第二学期期末试卷
- 兰州城市学院《组织设计》2023-2024学年第二学期期末试卷
- 石家庄财经职业学院《编译原理》2023-2024学年第二学期期末试卷
- 湖北生态工程职业技术学院《土木工程制图》2023-2024学年第二学期期末试卷
- 西安工商学院《逆向设计与增材制造》2023-2024学年第二学期期末试卷
- 天府新区航空旅游职业学院《物流客户关系管理》2023-2024学年第二学期期末试卷
- 2025四年级数学下学期期中学业质量监测复习
- 2024年汽车装调工技能竞赛理论考试题库(含答案)
- (新版)区块链应用操作员职业技能竞赛理论考试题库-上(单选题)
- 生猪屠宰兽医卫生检验人员理论考试题库及答案
- 高中英语课程设计目的
- 2024-2025学年北京一零一中学初三期初测试数学试题含解析
- 2024年12月大学英语四级CET-4真题试卷
- 高中生物学选择性必修一测试卷及答案解析
- 佳能EOS700D使用说明书
- 煤矿应急叫应、回应、响应机制
- 圆圈正义读书分享课件
- DL∕T 1910-2018 配电网分布式馈线自动化技术规范
评论
0/150
提交评论