




已阅读5页,还剩5页未读, 继续免费阅读
版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领
文档简介
R2和R3的基本配置: R2:interface Loopback0 ip address 2.2.2.2 255.255.255.0! interface Serial1/0 ip address 12.1.1.2 255.255.255.0 encapsulation frame-relay /封装Frame-relay no frame-relay inverse-arp /关闭反向ARP解析,防止动态形成PVC frame-relay map ip 12.1.1.3 101 broadcast !router ospf 10 router-id 2.2.2.2 network 2.2.2.0 0.0.0.255 area 0 network 12.1.1.0 0.0.0.255 area 0 R3:interface Loopback0 ip address 3.3.3.3 255.255.255.0!interface Serial1/1 ip address 12.1.1.3 255.255.255.0 encapsulation frame-relayframe-relay map ip 12.1.1.2 102 broadcast no frame-relay inverse-arp!router ospf 10 router-id 3.3.3.3network 3.3.3.0 0.0.0.255 area 0 network 12.1.1.0 0.0.0.255 area 0Type1-Non_Broadcast(默认)我们在R2上show ip ospf neighbor,发现没有邻居。说明在这种情况下邻居需要手动配置!配置如下:R2:R2(config)#router ospf 10R2(config-router)#neighbor 12.1.1.3R3:R3(config)#router ospf 10R3(config-router)#neighbor 12.1.1.2此时在R2上查看邻居:R2#sho ip ospf nei Neighbor ID Pri State Dead Time Address Interface3.3.3.3 1 FULL/DR 00:01:46 12.1.1.3 Serial1/0发现邻居已经形成并且有DR与BDR的选举!在R2上查看接口R2#show ip ospf interfaceSerial1/0 is up, line protocol is up Internet Address 12.1.1.2/24, Area 0 Process ID 10, Router ID 2.2.2.2, Network Type NON_BROADCAST, Cost: 64 Transmit Delay is 1 sec, State BDR, Priority 1 Designated Router (ID) 3.3.3.3, Interface address 12.1.1.3 Backup Designated router (ID) 2.2.2.2, Interface address 12.1.1.2 Flush timer for old DR LSA due in 00:01:40 Timer intervals configured, Hello 30, Dead 120, Wait 120, Retransmit 5在这种网络类型中,hello的间隔是30s。打开debug信息,我们可以看到在这种网络类型中,OSPF的数据包是单播传送的。R2#debug ip ospf events*Aug 14 14:52:52.819: OSPF: Send hello to 12.1.1.3 area 0 on Serial1/0 from 12.1.1.2R2#*Aug 14 14:52:57.087: OSPF: Rcv hello from 3.3.3.3 area 0 from Serial1/0 12.1.1.3*Aug 14 14:52:57.091: OSPF: End of hello processingType2- Broadcast首先去掉刚才手动配置的邻居关系:R2(config)#router ospf 10R2(config-router)#no neighbor 12.1.1.3 R3(config)#router ospf 10R3(config-router)#no neighbor 12.1.1.2将R2和R3接口的网络类型改成broadcastR2(config-router)#int s1/0R2(config-if)#ip ospf network broadcastR3(config-router)#int s1/1R3(config-if)#ip ospf network broadcast一会我们就看到了如下信息R3#*Aug 14 14:59:52.823: %OSPF-5-ADJCHG: Process 10, Nbr 2.2.2.2 on Serial1/1 from LOADING to FULL, Loading Done这说明了在这种网络类型下是不需要手动配置邻居关系的!R2#show ip ospf nei Neighbor ID Pri State Dead Time Address Interface3.3.3.3 1 FULL/DR 00:00:39 12.1.1.3 Serial1/0有DR与BDR的选举。R2#sho ip ospf intSerial1/0 is up, line protocol is up Internet Address 12.1.1.2/24, Area 0 Process ID 10, Router ID 2.2.2.2, Network Type BROADCAST, Cost: 64 Transmit Delay is 1 sec, State BDR, Priority 1 Designated Router (ID) 3.3.3.3, Interface address 12.1.1.3 Backup Designated router (ID) 2.2.2.2, Interface address 12.1.1.2 Timer intervals configured, Hello 10, Dead 40, Wait 40, Retransmit 5 Hello时间间隔为10s。R2#*Aug 14 15:02:20.443: OSPF: Send hello to 224.0.0.5 area 0 on Serial1/0 from 12.1.1.2*Aug 14 15:02:20.959: OSPF: Rcv hello from 3.3.3.3 area 0 from Serial1/0 12.1.1.3*Aug 14 15:02:20.963: OSPF: End of hello processing使用224.0.0.5这个组播地址传送数据包。Type3- Point-to-Point将R2,R3接口的网络类型改成Point-to-PointR2(config-if)#ip ospf net point-to-pointR3(config-if)#ip ospf net point-to-point很快我们就可以看到如下信息R3(config-if)#*Aug 14 15:06:07.559: %OSPF-5-ADJCHG: Process 10, Nbr 2.2.2.2 on Serial1/1 from LOADING to FULL, Loading Done说明这种网络类型也不需要手动指定邻居R2#sho ip ospf nei Neighbor ID Pri State Dead Time Address Interface3.3.3.3 0 FULL/ - 00:00:37 12.1.1.3 Serial1/0没有DR/BDR的选举R2#sh ip ospf intSerial1/0 is up, line protocol is up Internet Address 12.1.1.2/24, Area 0 Process ID 10, Router ID 2.2.2.2, Network Type POINT_TO_POINT, Cost: 64 Transmit Delay is 1 sec, State POINT_TO_POINT, Timer intervals configured, Hello 10, Dead 40, Wait 40, Retransmit 5Hello时间间隔为10sR2#*Aug 14 15:08:25.311: OSPF: Send hello to 224.0.0.5 area 0 on Serial1/0 from 12.1.1.2R2#*Aug 14 15:08:30.259: OSPF: Rcv hello from 3.3.3.3 area 0 from Serial1/0 12.1.1.3*Aug 14 15:08:30.263: OSPF: End of hello processing同样也是使用224.0.0.5这个组播地址传送数据。Type4- Point-to-Multipoint将接口改为Point-to-MultipointR2(config-if)#ip ospf network point-to-multipointR3(config-if)#ip ospf network point-to-multipoint*Aug 14 15:10:51.739: %OSPF-5-ADJCHG: Process 10, Nbr 2.2.2.2 on Serial1/1 from LOADING to FULL, Loading Done同样也不需要手动指定邻居R2#sho ip ospf nei Neighbor ID Pri State Dead Time Address Interface3.3.3.3 0 FULL/ - 00:01:48 12.1.1.3 Serial1/0没有DR和BDR的选举R2#sho ip ospf intSerial1/0 is up, line protocol is up Internet Address 12.1.1.2/24, Area 0 Process ID 10, Router ID 2.2.2.2, Network Type POINT_TO_MULTIPOINT, Cost: 64 Transmit Delay is 1 sec, State POINT_TO_MULTIPOINT, Timer intervals configured, Hello 30, Dead 120, Wait 120, Retransmit 5Hello时间间隔为30sR2#*Aug 14 15:12:49.759: OSPF: Send hello to 224.0.0.5 area 0 on Serial1/0 from 12.1.1.2R2#*Aug 14 15:12:57.443: OSPF: Rcv hello from 3.3.3.3 area 0 from Serial1/0 12.1.1.3*Aug 14 15:12:57.447: OSPF: End of hello processing以224.0.0.5这个组播地址发送数据Type5- Point-to-Multipoint(Non_Broadcast)改变接口类型为Point-to-Multipoint(Non_Broadcast)R2(config-if)#ip ospf network point-to-multipoint non-broadcastR3(config-if)#ip ospf network point-to-multipoint non-broadcast这个时候邻居没有被自动发现。我们在R2上手动指定邻居R2(config-if)#router ospf 10R2(config-router)#neighbor 12.1.1.3R2(config-router)#*Aug 14 15:18:38.955: %OSPF-5-ADJCHG: Process 10, Nbr 3.3.3.3 on Serial1/0 from LOADING to FULL, Loading Done邻居只要在一边指定即可。说明在这种网络类型下邻居需要手动指定。R2#sho ip ospf nei Neighbor ID Pri State Dead Time Address Interface3.3.3.3 0 FULL/ -
温馨提示
- 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
- 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
- 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
- 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
- 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
- 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
- 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。
最新文档
- 事业单位考试综合知识历年真题库
- 小学语文节日文化教学活动方案
- 小学一年级数学基础练习试卷
- 数据成果可靠有效声明书3篇范文
- 项目施工进度规划表
- 2025-2030儿童零食健康化转型与家长消费决策调研报告
- 2025-2030儿童舞蹈教育行业市场竞争格局与投资价值评估报告
- 2025-2030儿童编程教育硬件配套市场需求与技术路线预测报告
- 2025-2030儿童植物栽培教育市场认知度提升途径研究报告
- 2025-2030儿童教育机器人市场供需状况与投资价值判断研究报告
- 华为信息安全管理培训课件
- 诗经整本书阅读课件
- (2025年标准)预售小麦协议书
- 2025年院感测试题及答案
- 承包商全流程安全培训
- 养生店国庆节活动方案
- 7.1促进民族团结 课件 2025-2026学年统编版道德与法治九年级上册
- 2025年建筑施工安全教育试题及答案
- 我国运动员在奥林匹克运动会取得的辉煌成绩课件
- 专升本高等数学的讲义80页PPT课件
- 汽车机械基础(全套课件)
评论
0/150
提交评论