




已阅读5页,还剩3页未读, 继续免费阅读
版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领
文档简介
CCNA实验之四:动态路由之OSPF协议的配置对于OSPF是由IETF开发的路由选择协议,属于内部网关协议(IGP),不同于RIP的距离矢量协议,OSPF是链路状态协议,和距离矢量相比具有收敛速度快、更适合于大型网络。目前OSPF是运用比较广泛的路由动态协议,他不是CISCO专有的路由协议,可以互联CISCO、华为等多个公司的路由器,兼容性非常不错。OSPF协议可以运行在三种拓扑结构中:广播型多路访问(Broadcast Multi-Access)、点到点拓扑结构(Point To Point)、非广播型多路访问(Non-Broadcast Multi-Access,NBMA):以点到点拓扑结构完成以下实验。拓扑图如下:Router1配置:Press Enter to StartRouterenableRouter#config terminal Enter configuration commands, one per line. End with CNTL/Z.Router(config)#hostname Route1Route1(config)#interface e0Route1(config-if)#ip address 192.168.1.2 255.255.255.0Route1(config-if)#no shutdown %LINK-3-UPDOWN: Interface Ethernet0, changed state to upRoute1(config-if)#interface s0Route1(config-if)#ip address 192.168.2.1 255.255.255.0Route1(config-if)#no shutdown %LINK-3-UPDOWN: Interface Serial0, changed state to up%LINK-3-UPDOWN: Interface Serial0, changed state to down%LINEPROTO-5-UPDOWN: Line protocol on Interface Serial0, changed state to downRoute1(config-if)#enRoute1(config-if)#encapsulation ppp修改封装协议为pppRoute1(config-if)#clock rate 64000设置DCE端线路速度,单位是bit/s首先 必须是串行线 才能配置时钟其次 时钟必须设置在串行线的DCE端,一般串口线之间才需要设置时钟频率,否则不能相互通信Route1(config-if)#exitRoute1(config)#route ?rip Routing Information Protocol (RIP)igrp Interior Gateway Routing Protocol (IGRP)eigrp Enhanced Interior Gateway Routing Protocol (EIGRP)ospf Open Shortest Path First (OSPF)bgp Border Gateway Protocol (BGP)isis ISO IS-ISword Route map tagRoute1(config)#route ospf ? Process IDRoute1(config)#route ospf 1 /启用ospf协议Route1(config-router)#network 192.168.2.0 0.0.0.255 area 0 /发布邻接网络 Route1(config-router)#network 192.168.1.0 0.0.0.255 area 0 /此处分别为192.168.1.0和192.168.2.0Route1(config-router)#exitRoute1(config)#exitRoute1#copy running-config startup-config Destination filename startup-config?Building configuration.OKRouter2配置:Press Enter to StartRouterenableRouter#config terminal Enter configuration commands, one per line. End with CNTL/Z.Router(config)#hostname Route2Router2(config)#interface e0Router2(config-if)#ip address 192.168.3.1 255.255.255.0Router2(config-if)#no shutdown%LINK-3-UPDOWN: Interface Ethernet0, changed state to upRouter2(config-if)#interface s1Router2(config-if)#ip address 192.168.2.2 255.255.255.0Router2(config-if)#encapsulation ppp(修改封装协议为ppp)Router2(config-if)#no shutdown %LINK-3-UPDOWN: Interface Serial1, changed state to upRouter2(config-if)#exitRouter2(config)#exitRouter2#config tEnter configuration commands, one per line. End with CNTL/Z.Router2(config)#route ospf 1 /启用ospf协议Router2(config-router)#network 192.168.2.0 0.0.0.255 area 0 /发布邻接网络Router2(config-router)#network 192.168.3.0 0.0.0.255 area 0 /此处分别为192.168.3.0和192.168.2.0Router2(config-router)#exitRouter2(config)#exitRouter2#copy running-config startup-config Destination filename startup-config?Building configuration.OKPC1的配置:Boson BOSS 5.0Copyright 1998-2003 Boson Software, Inc.Use the command help to get startedPress Enter to beginC:C:winip?winipcfg C:winipcfg中进行配置IP:192.168.1.1 255.255.255.0 网关:192.168.1.2PC2的配置:Boson BOSS 5.0Copyright 1998-2003 Boson Software, Inc.Use the command help to get startedPress Enter to beginC:C:winip?winipcfg C:winipcfg中进行配置IP:192.168.3.2 255.255.255.0 网关:192.168.3.1测试:Router1#show ip routeCodes: C - connected, S - static, I - IGRP, R - RIP, M - mobile, B - BGP D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area E1 - OSPF external type 1, E2 - OSPF external type 2, E - EGP i - IS-IS, L1 - IS-IS level-1, L2 - IS-IS level-2, * - candidate default U - per-user static routeGateway of last resort is not set 192.168.1.0/24 is subnetted, 1 subnetsC 192.168.1.0 is directly connected, Ethernet0 192.168.2.0/24 is subnetted, 1 subnetsC 192.168.2.0 is directly connected, Serial0 192.168.3.0/24 is subnetted, 1 subnetsO 192.168.3.0 110/64 via 192.168.3.1, 00:14:53, Serial0 /ospf学来的路由条目Router2#show ip routeCodes: C - connected, S - static, I - IGRP, R - RIP, M - mobile, B - BGP D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area E1 - OSPF external type 1, E2 - OSPF external type 2, E - EGP i - IS-IS, L1 - IS-IS level-1, L2 - IS-IS level-2, * - candidate default U - per-user static routeGateway of last resort is not set 192.168.3.0/24 is subnetted, 1 subnetsC 192.168.3.0 is directly connected, Ethernet0 192.168.2.0/24 is subnetted, 1 subnetsC 192.168.2.0 is directly connected, Serial1 192.168.1.0/24 is subnetted, 1 subnetsO 192.168.1.0 110/64 via 192.168.2.1, 00:15:33, Serial1 /ospf学来的路由条目P1PingP2:C:ping 192.168.3.2Pinging 192.168.3.2 with 32 bytes of data:Reply from 192.168.3.2: bytes=32 time=60ms TTL=241Reply from 192.168.3.2: bytes=32 time=60ms TTL=241Reply from 192.168.3.2: bytes=32 time=60ms TTL=241Reply from 192.168.3.2: bytes=32
温馨提示
- 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
- 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
- 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
- 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
- 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
- 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
- 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。
最新文档
- Ethoxzolamide-Standard-生命科学试剂-MCE
- 武汉事业单位笔试真题2025
- 农发行湘潭市湘乡市2025秋招半结构化面试15问及话术
- 农发行兴安盟突泉县2025秋招半结构化面试题库及参考答案
- 2025年遵义市事业单位考试真题
- 农村新能源市场2025年智能化发展趋势研究报告
- 农发行达州市达川区2025秋招笔试专业知识题专练及答案
- 2025年新能源汽车充电基础设施与生物质能发电设施互联互通研究报告
- 工业区位因素
- 今年高考的试卷及答案
- 近效期药品登记表
- 2022年全国工会财务知识大赛参考题库精简600题(含各题型)
- 特高压交流与特高压直流输电技术特点对比分析
- 康复医学科关于无效中止康复训练的制度与流程
- GB/T 13460-2016再生橡胶通用规范
- 《矩阵论》研究生教学课件
- 中国荨麻疹诊疗指南(2022版)
- 北京市统一医疗服务收费标准
- 陈明伤寒论经方加减治疗脾胃病陈明
- 简明新疆地方史赵阳
- 基础观感验收自评报告
评论
0/150
提交评论