



下载本文档
版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领
文档简介
1、配置OSPF网络类型一、 拓扑图,如图1.1所示:图1.1 帧中继下OSPF实验拓扑图二、 初始配置:1. R1的初始配置:R1(config)#int s3/0R1(config-if)#no shR1(config-if)#encapsulation frame-relayR1(config-if)#no frame-relay inverse-arpR1(config-if)#no arp frame-relayR1(config-if)#frame-relay map ip 123.0.0.2 102 broadcast2. R2的初始配置:R2(config)#int s3/0R2(
2、config-if)#ip add 123.0.0.2 R2(config-if)#no shR2(config-if)#encapsulation frame-relayR2(config-if)#no frame-relay inverse-arpR2(config-if)#no arp frame-relayR2(config-if)#frame-relay map ip 123.0.0.1 201 broadcastR2(config-if)#frame-relay map ip 123.0.0.3 203 broadcast3. R3的初始配置:R3(config)#int s3/0
3、R3(config-if)#no shR3(config-if)#encapsulation frame-relay R3(config-if)#no arp frame-relay R3(config-if)#no frame-relay inverse-arpR3(config-if)#frame-relay map ip 123.0.0.2 302 broadcast三、 在R2上查看OSPF相关信息/查看OSPF邻居信息R2#sh ip os neR2#/查看OSPF接口信息R2#sh ip os int s3/0Serial3/0 is up, line protocol is up
4、 Internet Address 123.0.0.2/24, Area 0 /S3/0所连网络类型为NON_BROADCAST Process ID 1, Router ID 2.2.2.2, Network Type NON_BROADCAST, Cost: 64 Transmit Delay is 1 sec, State DR, Priority 10 No backup designated router on this network Timer intervals configured, Hello 30, Dead 120, Wait 120, Retransmit 5 oob
5、-resync timeout 120 Hello due in 00:00:04 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 4 msec, maximum is 4 msec Neighbor Count is 0, Adjacent neighbor count is 0 Suppress hello for 0 neighbor(s)以上结果说明,在NON_BROADCAST网络中,不会发送广播,也
6、不会发送组播,所以OSPF不会在帧中继接口上发送Hello包,无法建立邻居关系,因此也就无法建立邻接关系,手工指定neighbour,使其单播发送Hello包。四、 实验过程1. 在NON_BROADCAST网络中,各路由器上手工指定相应邻居/在R1上指定其邻居R2/在R2上指定其邻居R2、R3/在R3上指定其邻居R2/在R2上show ip ospf neighborR2#sh ip ospf neighbor Neighbor ID Pri State Dead Time Address Interface1.1.1.1 1 FULL/DROTHER 00:01:49 123.0.0.1
7、Serial3/03.3.3.3 1 FULL/BDR 00:01:47 123.0.0.3 Serial3/0以上实验说明,在NON_BROADCAST网络中可以通过手工指定邻居,在该种网路中需要选举DR/BDR,因控制中心路由器称为DR,保证数据库的正确同步。2. 删除邻居,清OSPF进程,将OSPF网络类型修改为BROADCAST,在OSPF接口上,配置ip ospf network broadcast/在OSPF接口上修改OSPF网络类型为BROADCAST/R1上做相应配置R1(config-router)#no R1(config-router)#do clear ip os pR
8、eset ALL OSPF processes? no: yR1(config-if)#ip ospf network broadcast/R2上做相应配置R2(config-router)#no neighbor 123.0.0.1R2(config-router)#no neighbor 123.0.0.3R2(config-router)#do clear ip os pReset ALL OSPF processes? no: yR2(config-if)#ip ospf network broadcast/R3上做相应配置R3(config-router)#no neighbor 1
9、23.0.0.2R3(config-router)#do clear ip os pReset ALL OSPF processes? no: yR3(config-if)#ip ospf network broadcast/在R2上查看邻居信息R2(config-if)#do sh ip os neNeighbor ID Pri State Dead Time Address Interface1.1.1.1 1 FULL/DROTHER 00:00:35 123.0.0.1 Serial3/03.3.3.3 1 FULL/DR 00:00:34 123.0.0.3 Serial3/0以上结
10、果说明,OSPF认为此类网络支持广播和组播,所以不需要手工指定邻居,但也需要控制DR/BDR的选举,否则也可导致数据库不同步从而发生错误路由。/在R1上查看路由表R1(config-router)#do sh ip rouCodes: 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
11、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 1.0.0.0/24 is subnetted, 1
12、 subnetsC 1.1.1.0 is directly connected, Loopback0 2.0.0.0/32 is subnetted, 1 subnetsO 2.2.2.2 110/65 via 123.0.0.2, 00:01:22, Serial3/0 123.0.0.0/24 is subnetted, 1 subnetsC 123.0.0.0 is directly connected, Serial3/0/在R1上查看OSPF接口信息R1(config-router)#do sh ip os int s3/0Serial3/0 is up, line protocol
13、 is up Internet Address 123.0.0.1/24, Area 0 Process ID 1, Router ID 1.1.1.1, Network Type BROADCAST, Cost: 64 Transmit Delay is 1 sec, State DR, Priority 1 Timer intervals configured, Hello 10, Dead 40, Wait 40, Retransmit 5 oob-resync timeout 40 Hello due in 00:00:06 Index 2/2, flood queue length 0 Next 0x0(0)/0x0(0) Last flood scan length is
温馨提示
- 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
- 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
- 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
- 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
- 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
- 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
- 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。
最新文档
- 2025年金融科技企业投资价值评估与决策模型创新实证分析报告
- 古代诗词考试试题及答案
- 高一数学期中考试题及答案
- 钢结构A期末考试试题及答案
- 半月板囊肿护理常规
- 发展经济学试题及答案
- 咳嗽的问诊要点与护理诊断
- 捉迷藏安全课件
- 2025至2030中国冶金工程施工总承包行业发展分析及有效策略与实施路径评估报告
- 2025至2030中国再生PET行业市场发展分析及投资前景与投资策略报告
- 电工厂搬迁方案(3篇)
- 一级医院医保管理制度
- 2025年南京市中考数学真题试卷
- 老年人眼科疾病
- 钢板配送设计方案(3篇)
- 2025年内蒙古煤炭地质勘查(集团)一零九有限公司招聘笔试参考题库含答案解析
- 中医基础学课件护理情志
- 小学三年级科学下册教案
- T/CBMCA 039-2023陶瓷大板岩板装修镶贴应用规范
- 2025-2030中国美容美发行业市场现状供需分析及投资评估规划分析研究报告
- 2025年中国不锈钢蚀刻板数据监测研究报告
评论
0/150
提交评论