




已阅读5页,还剩2页未读, 继续免费阅读
版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领
文档简介
实验8:开放式最短路径优先路由协议OSPF 配置 一、实验目的1、练习OSPF 动态路由协议的基本配置;2、掌握了解OSPF 路由协议原理二、实验环境packet tracer 5.0三、OSPF 协议介绍OSPF(Open Shortest Path First 开放式最短路径优先)是一个内部网关协议(Interior Gateway Protocol, 简称IGP) , 用于在单一自治系统(autonomoussystem,AS)内决策路由。与RIP 相对,OSPF 是链路状态路由协议,而RIP 是距离向量路由协议OSPF 的主要特性如下:适应范围支持各种规模的网络,最多可支持几千台路由器。快速收敛在网络的拓扑结构发生变化后立即发送更新报文,使这一变化在自治系统中同步。无自环OSPF 根据收集到的链路状态用最短路径树算法计算路由,从算法上本身保证了不会生成自环路由。OSPF 把一个大型网络分割成多个小型网络的能力被称为分层路由,这些被分割出来的小型网络就称为“区域”(Area)。由于区域内部路由器仅与同区域的路由器交换LSA (链路状态广播)信息,这样LSA 报文数量及链路状态信息库表项都会极大减少,SPF (Shortest Path First 最短路径优先算法)计算速度因此得到提高。多区域的OSPF 必须存在一个主干区域,主干区域负责收集非主干区域发出的汇总路由信息,并将这些信息返还给到各区域。OSPF 区域不能随意划分,应该合理地选择区域边界,使不同区域之间的通信量最小。但在实际应用中区域的划分往往并不是根据通信模式而是根据地理或政治因素来完成的。在OSPF 多区域网络中,路由器可以按不同的需要同时成为以下四种路由器中的几种:1. 内部路由器:所有端口在同一区域的路由器,维护一个链路状态数据库。2. 主干路由器:具有连接主干区域端口的路由器。3. 区域边界路由器(ABR):具有连接多区域端口的路由器,一般作为一个区域的出口。ABR 为每一个所连接的区域建立链路状态数据库,负责将所连接区域的路由摘要信息发送到主干区域,而主干区域上的ABR 则负责将这些信息发送到各个区域。4. 自治域系统边界路由器(ASBR):至少拥有一个连接外部自治域网络(如非OSPF 的网络)端口的路由器,负责将非OSPF 网络信息传入OSPF 网络。四、实验步骤:拓扑结构图如下所示:1、配置命令Router 5:Routerenable /进入特权模式Router#configure terminal /进入配置模式Enter configuration commands, one per line. End with CNTL/Z.Router(config)#interface FastEthernet0/0 /配置端口Router(config-if)#ip address 172.16.0.1 255.255.255.0Router(config-if)#no shutdown%LINK-5-CHANGED: Interface FastEthernet0/0, changed state to up%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/0, changed state to upRouter(config-if)#Router(config-if)#exitRouter(config)#interface Serial1/0 /配置端口Router(config-if)#ip address 192.168.0.1 255.255.255.0Router(config-if)#clock rate 64000Router(config-if)#no shutdownRouter(config-if)#%LINK-5-CHANGED: Interface Serial1/0, changed state to up%LINEPROTO-5-UPDOWN: Line protocol on Interface Serial1/0, changed state to upRouter(config-if)#route ospf 1 /启用OSPF 协议,ID 号为1Router(config-router)#network 192.168.0.0 0.0.0.255 area 0 /发布网络Router(config-router)#network 172.16.0.0 0.0.0.255 area 0Router(config-router)#exitRouter(config)#copy running-config startRouter(config)#copy running-config startup-Router(config)#copy running-config startup-cRouter(config)#exit%SYS-5-CONFIG_I: Configured from console by consoleRouter#copy runRouter#copy running-config sRouter#copy running-config startup-config /写入启动文件Destination filename startup-config?Building configuration.OKRouter 6:RouterenableRouter#configure terminalEnter configuration commands, one per line. End with CNTL/Z.Router(config)#interface FastEthernet0/0Router(config-if)#ip address 172.17.0.1 255.255.255.0Router(config-if)#no shutdown%LINK-5-CHANGED: Interface FastEthernet0/0, changed state to up%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/0, changed state to upRouter(config-if)#exitRouter(config)#interface Serial1/0Router(config-if)#ip address 192.168.0.2 255.255.255.0Router(config-if)#%LINK-5-CHANGED: Interface Serial1/0, changed state to upno shutdown%LINEPROTO-5-UPDOWN: Line protocol on Interface Serial1/0, changed state to upRouter(config-if)#exitRouter(config)#interface Serial1/1Router(config-if)#ip address 192.168.1.1 255.255.255.0Router(config-if)#clock rate 64000Router(config-if)#no shutdownRouter(config-if)#%LINK-5-CHANGED: Interface Serial1/1, changed state to up%LINEPROTO-5-UPDOWN: Line protocol on Interface Serial1/1, changed state to upRouter(config-if)#router ospf 1Router(config-router)#network 192.168.0.0 0.0.0.255 area 0Router(config-router)#network 192.168.1.0 0.0.0.255 area 0Router(config-router)#network 172.17.0.0 0.0.0.255 area 0Router(config-router)#exitRouter(config)#ex%SYS-5-CONFIG_I: Configured from console by consoleRouter#copyRouter#copy rRouter#copy running-config startup-configDestination filename startup-config?Building configuration.OKRouter#00:13:29: %OSPF-5-ADJCHG: Process 1, Nbr 192.168.2.1 on Serial1/1 from LOADING toFULL, Loading DoneRouter 3:RouterenableRouter#configure terminalEnter configuration commands, one per line. End with CNTL/Z.Router(config)#interface FastEthernet0/0Router(config-if)#ip address 172.18.0.1 255.255.255.0Router(config-if)#no shutdown%LINK-5-CHANGED: Interface FastEthernet0/0, changed state to up%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/0, changed state to upRouter(config-if)#exitRouter(config)#interface Serial1/0Router(config-if)#ip address 192.168.1.2 255.255.255.0Router(config-if)#%LINK-5-CHANGED: Interface Serial1/0, changed state to upno shutdownRouter(config-if)#exitRouter(config)#interface Serial1/1Router(config-if)#ip address 192.168.2.1 255.255.255.0Router(config-if)#clock rate 64000Router(config-if)#no shutdownRouter(config-if)#%LINK-5-CHANGED: Interface Serial1/1, changed state to upRouter(config-if)#exitRouter(config)#route ospf 1Router(config-router)#network 192.168.1.0 0.0.0.255 area 0Router(config-router)#network 192.168.1.00:13:29: %OSPF-5-ADJCHG: Process 1, Nbr 192.168.1.1 on Serial1/0 from LOADING toFULL, Loading Done0 0.0.0.255 area 0Router(config-router)#network 192.168.2.0 0.0.0.255 area 0Router(config-router)#network 172.18.0.0 0.0.0.255 area 0Router(config-router)#exitRouter(config)#ex%SYS-5-CONFIG_I: Configured from console by consoleRouter#copy rRouter#copy running-config sRouter#copy running-config startup-configDestination filename startup-config?Building configuration.OKRouter 4:RouterenableRouter#configure terminalEnter configuration commands, one per line. End with CNTL/Z.Router(config)#interface FastEthernet0/0Router(config-if)#ip address 10.1.1.1 255.255.255.0Router(config-if)#no shutdown%LINK-5-CHANGED: Interface FastEthernet0/0, changed state to up%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/0, changed state to upRouter(config-if)#exitRouter(config)#interface Serial1/0Router(config-if)#ip address 192.168.2.2 255.25
温馨提示
- 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
- 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
- 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
- 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
- 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
- 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
- 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。
最新文档
- 2025年高考数学立体几何专题训练:真题解析与高分策略
- 王牌课件五官速写
- 研发面试场景题目及答案
- 民法典婚姻家庭篇课件
- 上海市第八中学2026届化学高一第一学期期末质量检测模拟试题含解析
- 2025年远程医疗设备维护与应急响应服务合同
- 2025年度铁矿石海上运输包船服务合同
- 2025生态环保型办公楼装饰装修工程材料检测与绿色认证合同
- 2025年城市间企业差旅商务包车合作协议
- 2025年金融服务业员工劳动合同履行与风险控制专项协议
- 贵州省建筑工程施工资料管理导则
- 无损探伤工技师技能考试题库(附答案)
- 2025年军队文职人员(司机岗)历年考试真题库及答案(重点300题)
- 部编教科书语文一年级上册教师教学用书
- 压裂作业中的职业健康安全措施
- 人教版五年级道德与法治上册教学计划(及进度表)
- 小学《义务教育语文课程标准(2022年版)》解读课件
- DB42-T 2163-2023 水利工程质量监督规程
- 工程资质挂靠合作协议书范本
- 牛奶培训资料
- 《贝叶斯估计》课件
评论
0/150
提交评论