博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
帧中继网络中配置OSPF
阅读量:6975 次
发布时间:2019-06-27

本文共 4607 字,大约阅读时间需要 15 分钟。

默认情况下帧中继网络是无法运行OSPF协议的,为什么?

 
【原因】:帧中继(fram-relay)网络属于非广播型多路访问,
       而OSPF协议规定路由器之间的Hello包是通过组播来传输
    (组播也属于非广播类型)因此帧中继上默认情况是无法运行OSPF协议的。
 
下面有4种解决方法:
  • 方法一,手工设置ospf网络类型为广播型,在指定fram-relay map时设置为broadcast
    (Fram-relay 广播)
  • 方法二,默认非广播类型,使用neighbor手工指定邻居,并且手工指定DR为中心路由器
    (fram-relay非广播)
  • 方法三,手工设置OSPF网络类型为:点到多点型广播型,在指定fram-relay map时设置为broadcast
    (fram-relay 点对多点广播)
  • 方法四:手工设置OSPF网络类型为:点到多点非广播,使用neighbor手工指定邻居
    (fram-relay 点对多点非广播)
 
再看解决方法之前,先理解以下内容
  1. OSPF中的“neighbor” 可以手动指定邻居路由器的IP地址,使得它不用组播也能和邻居交换路由信息。
  2. 哪些网络需要选举DR,哪些网络不用选举DR
 OSPF网络类型  特征  是否选举DR
 广播型多路访问  以太网、令牌环或FDDI  是
 非广播型多路访问  帧中继、X.25、SMDS  是
 点对点  PPP、HDLC
 否
 点对多点  由管理员配置  否
     3.fram-relay map 中 broadcast 关键词允许路由器通过指定的DLCI号将广播分组分送给所映射的路由器
 
【实验拓扑】:中心-分支帧中继网络拓扑结构

 

 

  • 方法一,手工设置ospf网络类型为广播型,在指定fram-relay map时设置为broadcast
R1:
interface L0
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
  • 方法二,默认非广播类型,使用neighbor手工指定邻居,并且手工指定DR为中心路由器
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
frame-relay map ip 10.0.0.4 104
frame-relay map ip 10.0.0.5 105
!
router ospf 1
network 0.0.0.0 255.255.255.255 area 0
neighbor 10.0.0.4
neighbor 10.0.0.5
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 priority 0
frame-relay map ip 10.0.0.1 401
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 priority 0
frame-relay map ip 10.0.0.1 501
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
  • 方法三,手工设置OSPF网络类型为:点到多点型广播型,在指定fram-relay map时设置为broadcast
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 point-to-multipoint
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 point-to-multipoint
frame-relay map ip 10.0.0.1 401 broadcast
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 point-to-multipoint
frame-relay map ip 10.0.0.1 501 broadcast
no frame-relay inverse-arp
!
router ospf 1
network 0.0.0.0 255.255.255.255 area 0
  • 方法四:手工设置OSPF网络类型为:点到多点非广播,使用neighbor手工指定邻居
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 point-to-multipoint non-broadcast
frame-relay map ip 10.0.0.4 104
frame-relay map ip 10.0.0.5 105
!
router ospf 1
network 0.0.0.0 255.255.255.255 area 0
neighbor 10.0.0.5
neighbor 10.0.0.4
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 point-to-multipoint non-broadcast
frame-relay map ip 10.0.0.1 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 point-to-multipoint non-broadcast
frame-relay map ip 10.0.0.1 501
no frame-relay inverse-arp
!
router ospf 1
network 0.0.0.0 255.255.255.255 area 0
本文转自zcm8483 51CTO博客,原文链接:http://blog.51cto.com/haolun/993193

转载地址:http://gnypl.baihongyu.com/

你可能感兴趣的文章
IOS自定义表格UITableViewCell
查看>>
[Linux] ubuntu 格式化u盘
查看>>
一个COM示例程序
查看>>
通过改进算法来优化程序性能的真实案例(Ransac)
查看>>
head命令
查看>>
软件开发经验总结(一)细节决定软件的成败
查看>>
python tar.gz格式压缩、解压
查看>>
JNDI概述(转载)
查看>>
利用java反射机制 读取配置文件 实现动态类载入以及动态类型转换
查看>>
第 7 章 项目运作
查看>>
PYTHON黑帽编程1.5 使用WIRESHARK练习网络协议分析
查看>>
.NET平台开源项目速览(18)C#平台JSON实体类生成器JSON C# Class Generator
查看>>
C# 格式串(收藏)
查看>>
浅谈SQL Server中统计对于查询的影响
查看>>
WF4 Beta,RC版文章总结
查看>>
WPF 与Surface 2.0 SDK 亲密接触–LibraryContainer 篇
查看>>
C# 对应 Oracle 存储过程 的 SYS_REFCURSOR 应该 传入什么类型的参数?
查看>>
Unity3D移植到自己的Android程序
查看>>
【转】用示例说明索引数据块中出现热块的场景,并给出解决方案
查看>>
HDU 2034 人见人爱A-B
查看>>