下载本文档
版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领
文档简介
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. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。
最新文档
- 招聘考试《医疗类(其他)》历年参考题库含答案详解
- 2026安徽马鞍山市产城物业管理有限责任公司招聘劳务派遣人员3人(第二批)笔试题库附答案详解【完整版】
- 四川省遂宁市第一中学校2026年临聘教师(13人)模拟试卷附答案详解【模拟题】
- 2026天津南开大学附属小学教师招聘笔试题库含完整答案详解【典优】
- 2026云南保山市龙陵县第一中学、职业高级中学和县教育教师发展中心选调教师16人模拟试卷(原创题)附答案详解
- 2026天津市大中专毕业生就业指导中心见习基地招聘备考题库及参考答案详解(满分必刷)
- 2026广东深圳市南山区白芒小学语文、数学、英语、道法、体育教师招聘5人模拟试卷附参考答案详解【培优A卷】
- 小学语文教师学期总结与工作反思
- 传染病系相关知识培训
- 销售新人必读基础培训手册
- 健康科普能力大赛
- 2026年CCAA注册审核员《管理体系认证基础》试题及答案
- 云南大理西电新源开发有限责任公司招聘笔试题库2026
- 新疆2026年事业编招聘考试真题及答案解析
- 2026年江苏省苏州市中考道德与法治试卷附答案
- 康复治疗师岗位技能测试试题及答案
- GB/T 12957-2026用于水泥混合材的工业废渣活性试验方法
- 低压用电系统漏电保护技术措施培训
- 2026人教版小学四年级下册语文全单元课文易错考点梳理讲义
- 浙江省名校共同体2026年中考模拟考数学试题(6月)
- 留疆战士考试题及答案
评论
0/150
提交评论