




已阅读5页,还剩4页未读, 继续免费阅读
版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领
文档简介
OSPF:Open Shortest Path First 开放最短路径优先协议拓扑图如下:(广播多路访问型)接口连接:Router1 E0/0 Router4 F0/1 Router2 E0/0 Router4 F0/2 Router3 E0/0 Router4 F0/3路由器参考配置如下:路由器R1的配置:Router /用户模式Routerenable /从用户模式进入到特权模式Router#configure terminal /从特权模式进入到全局模式Router(config)#hostname R1 /给路由器从命名为R1R1(config)#no ip domain lookup /关闭域名查找R1(config)#line console 0 /进入控制口R1(config-line)#logging synchronous /光标跟随R1(config-line)#exec-timeout 0 0 /关闭延迟R1(config-line)#exitR1(config)#interface loopback 0 /配置回环接口的ip地址R1(config-if)#ip address R1(config-if)#interface e0/0 /配置以太口的ip地址R1(config-if)#ip address R1(config-if)#no shutdown /激活物理接口R1(config-if)#endR1#show ip routeCodes: C - connected, S - static, 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 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 /24 is subnetted, 1 subnetsC is directly connected, Loopback0C /24 is directly connected, Ethernet0/0R1#configure terminalR1(config)#router ospf 1R1(config-router)#network area 2R1(config-router)#network area 2R1(config-router)#endR1#show ip routeCodes: C - connected, S - static, 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 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 /24 is subnetted, 1 subnetsC is directly connected, Loopback0 /32 is subnetted, 1 subnetsO 110/11 via , 00:00:13, Ethernet0/0 /32 is subnetted, 1 subnetsO 110/11 via , 00:00:13, Ethernet0/0C /24 is directly connected, Ethernet0/0R1#show ip protocols Routing Protocol is ospf 1 Outgoing update filter list for all interfaces is not set Incoming update filter list for all interfaces is not set Router ID Number of areas in this router is 1. 1 normal 0 stub 0 nssa Maximum path: 4 Routing for Networks: area 2 area 2 Reference bandwidth unit is 100 mbps Routing Information Sources: Gateway Distance Last Update 110 00:00:41 110 00:00:41 Distance: (default is 110)R1#show ip ospf interface e0/0Ethernet0/0 is up, line protocol is up Internet Address /24, Area 2 /广播式 Process ID 1, Router ID , Network Type BROADCAST, Cost: 10 Transmit Delay is 1 sec, State DR, Priority 1 Designated Router (ID) , Interface address Backup Designated router (ID) , Interface address Timer intervals configured, Hello 10, Dead 40, Wait 40, Retransmit 5 oob-resync timeout 40 Hello due in 00:00:09 Supports Link-local Signaling (LLS) Index 2/2, flood queue length 0 Next 0x0(0)/0x0(0) Last flood scan length is 1, maximum is 1 Last flood scan time is 0 msec, maximum is 4 msec Neighbor Count is 2, Adjacent neighbor count is 2 Adjacent with neighbor (Backup Designated Router) Adjacent with neighbor Suppress hello for 0 neighbor(s)R1#show ip ospf neighbor Neighbor ID Pri State Dead Time Address Interface 1 FULL/BDR 00:00:35 Ethernet0/0 1 FULL/DR 00:00:33 Ethernet0/0R1#clear ip ospf process Reset ALL OSPF processes? no: yR1#show ip ospf neighbor Neighbor ID Pri State Dead Time Address Interface 20 FULL/DR 00:00:30 Ethernet0/0 1 FULL/BDR 00:00:29 Ethernet0/0R1#show ip routeCodes: C - connected, S - static, 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 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 /24 is subnetted, 1 subnetsC is directly connected, Loopback0 /32 is subnetted, 1 subnetsO 110/11 via , 00:00:57, Ethernet0/0 /32 is subnetted, 1 subnetsO 110/11 via , 00:00:57, Ethernet0/0C /24 is directly connected, Ethernet0/0R1#show ip ospf interface e0/0Ethernet0/0 is up, line protocol is up Internet Address /24, Area 2 Process ID 1, Router ID , Network Type BROADCAST, Cost: 10 Transmit Delay is 1 sec, State DROTHER, Priority 1 Designated Router (ID) , Interface address Backup Designated router (ID) , Interface address Timer intervals configured, Hello 10, Dead 40, Wait 40, Retransmit 5 oob-resync timeout 40 Hello due in 00:00:01 Supports Link-local Signaling (LLS) Index 2/2, flood queue length 0 Next 0x0(0)/0x0(0) Last flood scan length is 0, maximum is 1 Last flood scan time is 0 msec, maximum is 4 msec Neighbor Count is 2, Adjacent neighbor count is 2 Adjacent with neighbor (Designated Router) Adjacent with neighbor (Backup Designated Router) Suppress hello for 0 neighbor(s)R1#路由器R2的配置:Router /用户模式Routerenable /从用户模式进入到特权模式Router#configure terminal /从特权模式进入到全局模式Router(config)#hostname R2 /给路由器从命名为R2R2(config)#no ip domain lookup /关闭域名查找R2(config)#line console 0 /进入控制口R2(config-line)#logging synchronous /光标跟随R2(config-line)#exec-timeout 0 0 /关闭延迟R2(config-line)#exitR2(config)#interface loopback 0 /配置回环接口的ip地址R2(config-if)#ip address R2(config-if)#interface e0/0 /配置以太口的ip地址R2(config-if)#ip address R2(config-if)#no shutdown R2(config-if)#endR2#show ip routeCodes: C - connected, S - static, 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 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 /24 is subnetted, 1 subnetsC is directly connected, Loopback0C /24 is directly connected, Ethernet0/0R2#configure termianlR2(config)#router ospf 2R2(config-router)#network area 2R2(config-router)#network area 2R2(config-router)#endR2#show ip routeCodes: C - connected, S - static, 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 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 /32 is subnetted, 1 subnetsO 110/11 via , 00:00:08, Ethernet0/0 /24 is subnetted, 1 subnetsC is directly connected, Loopback0 /32 is subnetted, 1 subnetsO 110/11 via , 00:00:08, Ethernet0/0C /24 is directly connected, Ethernet0/0R2#show ip ospf neighbor Neighbor ID Pri State Dead Time Address Interface 1 FULL/DROTHER 00:00:33 Ethernet0/0 1 FULL/DR 00:00:30 Ethernet0/0R2#configure terminalR2(config)#interface e0/0R2(config-if)#ip ospf priority 20 /修改接口的优先级为20R2(config-if)#endR2#clear ip ospf process /清空ospf协议的进程Reset ALL OSPF processes? no: yR2#show ip ospf neighbor Neighbor ID Pri State Dead Time Address Interface 1 FULL/DROTHER 00:00:30 Ethernet0/0 1 FULL/BDR 00:00:32 Ethernet0/0R2#show running-configBuilding configuration.Current configuration : 823 bytes!version 12.4service timestamps debug datetime msecservice timestamps log datetime msecno service password-encryption!hostname R2!boot-start-markerboot-end-marker!no aaa new-modelmemory-size iomem 5!ip cef!no ip domain lookup! !interface Loopback0 ip address !interface Ethernet0/0 ip address ip ospf priority 20 full-duplex!interface Ethernet0/1 no ip address shutdown half-duplex!interface Ethernet0/2 no ip address shutdown half-duplex!interface Ethernet0/3 no ip address shutdown half-duplex!router ospf 2 log-adjacency-changes network area 2 network area 2!ip http server!control-plane!line con 0 exec-timeout 0 0 logging synchronousline aux 0line vty 0 4! endR2#路由器R3的配置:RouterRouterenableRouter#configure terminalRouter(config)#hostname R3R3(config)#no ip domain lookupR3(config)#line console 0R3(config-line)#logging synchronousR3(config-line)#exec-timeout 0 0R3(config-line)#exitR3(config)#interface loopback 0R3(config-if)#ip address R3(config)#interface e0/0R3(config-if)#ip address R3(config-if)#no shutdown R3(config-if)#endR3#show ip routeCodes: C - connected, S - static, 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 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 /24 is subnetted, 1 subnetsC is directly connected, Loopback0C /24 is directly connected, Ethernet0/0R3#configure terminalR3(config)#router ospf 3R3(config-router)#network area 2R3(config-router)#network area 2R3(config-router)#endR3#show ip routeCodes: C - connected, S - static, R - RIP, M - mobile
温馨提示
- 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
- 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
- 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
- 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
- 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
- 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
- 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。
最新文档
- 旧版劳务合同范本
- 委托加工梨膏合同范本
- 弱电合同范本
- 贷款 房屋装修合同范本
- 杭州商铺投资合同范本
- 高位货架转让合同范本
- 饭店用工简易合同范本
- 社区安全知识培训课件新闻
- 龙胜租房合同范本
- 房屋承租居间合同范本
- 放射科质控汇报
- 2023年山东威海乳山市事业单位招聘带编入伍高校毕业生12人笔试备考题库及答案解析
- 结构方案论证会汇报模板参考83P
- GB/T 24218.1-2009纺织品非织造布试验方法第1部分:单位面积质量的测定
- 《企业人力资源管理专业实践报告2500字》
- 万东GFS型高频高压发生装置维修手册
- 公寓de全人物攻略本为个人爱好而制成如需转载注明信息
- 企业经营沙盘模拟实训指导书
- 魏家庄村道路实施方案
- 智能制造生产线运营与维护课件完整版
- 【外科学】心脏疾病
评论
0/150
提交评论