频 道 直 达 - 新闻 - 读书 - 培训 - 教程 - 前沿 - 组网 - 系统应用 - 安全 - 编程 - 存储 - 操作系统 - 数据库 - 服务器 - 专题 - 产品 - 案例库 - 技术圈 - 博客 - BBS
51CTO.COM_中国领先的IT技术网站
找资料:

OSPF篇:帧中继承载OSPF-广播

作者: 佚名 出处:中国IT实验室 2008-04-22 13:08    砖    好    评论   进入论坛
阅读提示:在网络类型为broadcast的网络中OSPF hellos包是通过组播传递,像non-broadcast的网络类型一样需要DR/BDR 的选举。对于以太网络或者令牌网这种广播型网络来说,这种是缺省的网络类型。

目标:

在R1,R4和R5之间的帧中继网络中配置OSPF,网络类型为broadcast,实现VLAN A, VLAN B和VLAN C的互通

配置指南:

在R1上配置接口Ethernet0/0地址为1.0.0.1/8

在R4上配置接口Ethernet0/0地址为4.0.0.4/8

在R5上配置接口Ethernet0/0地址为5.0.0.5/8

在R1上配置接口Seria0/0地址为10.0.0.1/8

在R4上配置接口Serial0/0地址为10.0.0.4/8

在R5上配置接口Serial0/0地址为10.0.0.5/8

在R1,R4和R5的Serial接口上配置帧中继封装

在R4和R5上禁用帧中继反向地址解析

在R1上配置静态映射,通过DCLI104到10.0.0.4和通过DLCI105到10.0.0.5

在R4上配置静态映射,通过DLCI401到10.0.0.1和10.0.0.5

在R5上配置静态映射,通过DLCI501到10.0.0.1 和10.0.0.4

确保链路支持广播和多播数据包传递

在R1, R4, 和R5的Serial接口上配置OSPF网络类型为broadcast

在R4和R5配置Serial接口OSPF优先级为0

配置R1, R4和R5中所有接口加入area 0

自我提问:

broadcast的网络类型和其他网络类型有什么不同?

这种网络类型中LSA是单播还是组播发送?

这种网络类型支持DR/BDR 选举吗?

这些属性对配置有什么影响?

最终配置和验证:

R1:
interface Ethernet0/0
ip address 1.0.0.1 255.0.0.0
!
interface Serial0/0
ip address 10.0.0.1 255.0.0.0
encapsulation frame-relay
ip ospf network broadcast
frame-relay map ip 10.0.0.4 104 broadcast
frame-relay map ip 10.0.0.5 105 broadcast
!
router ospf 1
network 0.0.0.0 255.255.255.255 area 0
R4:
interface Ethernet0/0
ip address 4.0.0.4 255.0.0.0
!
interface Serial0/0
ip address 10.0.0.4 255.0.0.0
encapsulation frame-relay
ip ospf network broadcast
ip ospf priority 0
frame-relay map ip 10.0.0.1 401 broadcast
frame-relay map ip 10.0.0.5 401
no frame-relay inverse-arp
!
router ospf 1
network 0.0.0.0 255.255.255.255 area 0
R5:
interface Ethernet0/0
ip address 5.0.0.5 255.0.0.0
!
interface Serial0/0
ip address 10.0.0.5 255.0.0.0
encapsulation frame-relay
ip ospf network broadcast
ip ospf priority 0
frame-relay map ip 10.0.0.1 501 broadcast
frame-relay map ip 10.0.0.4 501
no frame-relay inverse-arp
!
router ospf 1
network 0.0.0.0 255.255.255.255 area 0
R1#show ip ospf neighbor
Neighbor ID Pri State Dead Time Address Interface
10.0.0.4 0 FULL/DROTHER 00:00:33 10.0.0.4 Serial0/0
10.0.0.5 0 FULL/DROTHER 00:00:36 10.0.0.5 Serial0/0
R4#show ip ospf neighbor
Neighbor ID Pri State Dead Time Address Interface
10.0.0.1 1 FULL/DR 00:00:39 10.0.0.1 Serial0/0
R5#show ip ospf neighbor
Neighbor ID Pri State Dead Time Address Interface
10.0.0.1 1 FULL/DR 00:00:33 10.0.0.1 Serial0/0
R1#show ip route
Codes: C - connected, S - static, I - IGRP, 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, E - EGP
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 route
Gateway of last resort is not set
C 1.0.0.0/8 is directly connected, Ethernet0/0
O 4.0.0.0/8 [110/74] via 10.0.0.4, 00:01:49, Serial0/0
O 5.0.0.0/8 [110/74] via 10.0.0.5, 00:01:49, Serial0/0
C 10.0.0.0/8 is directly connected, Serial0/0
R4#show ip route
Codes: C - connected, S - static, I - IGRP, 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, E - EGP
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 route
Gateway of last resort is not set
O 1.0.0.0/8 [110/74] via 10.0.0.1, 00:02:26, Serial0/0
C 4.0.0.0/8 is directly connected, Ethernet0/0
O 5.0.0.0/8 [110/74] via 10.0.0.5, 00:02:26, Serial0/0
C 10.0.0.0/8 is directly connected, Serial0/0
R5#show ip route
Codes: C - connected, S - static, I - IGRP, 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, E - EGP
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 route
Gateway of last resort is not set
O 1.0.0.0/8 [110/74] via 10.0.0.1, 00:00:11, Serial0/0
O 4.0.0.0/8 [110/74] via 10.0.0.4, 00:00:11, Serial0/0
C 5.0.0.0/8 is directly connected, Ethernet0/0
C 10.0.0.0/8 is directly connected, Serial0/

注解:

在网络类型为broadcast的网络中OSPF hellos包是通过组播传递,像non-broadcast的网络类型一样需要DR/BDR 的选举。对于以太网络或者令牌网这种广播型网络来说,这种是缺省的网络类型。需要注意的是本例中的framerelay map命令增加了broadcast选项,这是因为hello包是组播传递的。另外由于不是单播所以对于DR和BDR就不需要配置neighbor的命令。同样还会出现前例讲到的优先级配置问题,略过。

通过使用show ip ospf neighbor命令来验证邻居关系,使用show ip ospf interface命令来验证网络类型和DR/BDR.

关于下一跳的问题也类似前例。

【相关文章】

【责任编辑:王健楠 TEL:(010)68476606】

专题
OSPF路由协议专栏
思科全球CEO钱伯斯第七次访华
运营商封堵非法ADSL共享
计算机网络维护入门
十大正在慢慢死去的IT技术
我也说两句

匿名发表

(如果看不清请点击图片进行更换)


中 国 领 先 的 IT 技 术 网 站 ·
技 术 成 就 梦 想
订阅技术快讯
电子杂志下载
名称:SQL Server数据库管理精品黄皮书
简介:书中文章经过精挑细选,便于用户能根据自己的实际工作和学习,快速在本书寻找到相关资料。内容涵盖了SQL Server的安装与升级、语句查询、数据备份和恢复、自动化任务、数据同步、数据字典、安全和预防、性能和优化、集群等各方面应用信息,以及DBA管理人员在数据库管理工作中
名称:2007路由技术大全
简介:《2007路由技术大全》由51CTO.com网站特别策划制作,该书包括路由器技术、路由器产品、路由器配置、安全设置、路由器故障处理、路由器密码恢复,以及广大网友在实践使用中的心得经验和技巧文章,内容注重实用性,适用于初学者入门,也适合多年从业者提高,是一本实践和理论完
名称:网络安全精品应用黄皮书
简介:《2007精品网络安全黄皮书》包括了9个大类24个小类, 800余篇文章,内容包含了熊猫烧香病毒、DDOS攻击、ARP病等热点问题的介绍及解决方案。从病毒查杀、防范、系统、数据等各方面的安全设置到黑客技术的了解、防范,涉及到了安全应用的全部领域, 由浅至深内容全面。
勇闯IT培训黑色围城
勇闯IT培训黑色围..
见证中国网络安全二十年
见证中国网络安全..
技术人求职简历完备手册
技术人求职简历完..
· 技术人求职简历完备手册
· 华为员工自杀频频拷问..
· 视频访谈:网管员如何踏..
· 首届中国IT工程师生态..
· 思科全球CEO钱伯斯第七..
· 北漂技术人90天求职纪实
· 2007年互联网大会
· 龙芯要做中国的“奔腾”
· IPv6协议--拓展网络无..
· 国际文档格式标准开战
· 微软出价446亿美元收购..
· 贝恩资本携手华为22亿..
· Linux——从菜鸟到高手
· SOA 面向服务架构
· 2008年4月全国计算机等..
· 微软Forefront企业安全..
ARP攻击防范与解决方案
ARP攻击防范与解..
iSCSI应用与发展
iSCSI应用与发展
SQL Server 2008/2005全解
SQL Server 2008/..
· SQL Server 2008/2005..
· SOA 面向服务架构
· SQL Server 2008/2005..
· iSCSI应用与发展
· RAID——磁盘阵列基础
· 中间件应用技术专题
· SQL Server入门到精通
· 病毒查杀专题
· 国际文档格式标准开战
· 路由器设置与口令恢复
· Linux防火墙
· 打造安全服务器
· SOA 面向服务架构
· PHP开发应用手册
· ADSL应用面面俱到
· 入侵防护系统(IPS)初探
ARP攻击防范与解决方案
ARP攻击防范与解..
SQL Server 2008/2005全解
SQL Server 2008/..
iSCSI应用与发展
iSCSI应用与发展
· iSCSI应用与发展
· 中间件应用技术专题
· SQL Server入门到精通
· SQL Server 2008/2005..
· SOA 面向服务架构
· iSCSI应用与发展
· RAID——磁盘阵列基础
· 病毒查杀专题
· 路由器设置与口令恢复
· SOA 面向服务架构
· 了解统一威胁管理(UTM)..
· ADSL应用面面俱到
· ADSL应用面面俱到
· PHP开发应用手册
· 中间件应用技术专题
· Linux防火墙