NBMA拓扑中,OSPF有两种正式的运行模式
(1)NBMA:模仿OSPF在广播(broadcast)网络中的运行方式,即必须手工配置邻居,并选举DRBDR。这种配置常用于全互联网络中
(2)点到多点(point to multipoint):将非广播网络视为一系列点到点链路。在这种网络中,路由器自动识别到邻居,不选举DRBDR
选择NBMA模式还是点到多点模式决定了非广播网络中Hello协议和扩散的运行方式。
<?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" />

 

NBMA网络选择OSPF模式
  在接口配置模式下,使用
ip  ospf  network  {broadcast | non –broadcast | point to multipoint | point to point }
选择OSPF模式
以下面拓扑为例,配置点到多点模式:
接口IP地址配置省略。
 
下面重点配置的地方:
P1R1(config)#int s0/0/0
P1R1(config-if)#encapsulation frame-relay
P1R1(config-if)#ip ospf network point-to-multipoint
P1R1(config)#router ospf 1
P1R1(config-router)#network 172.31.1.0 <?xml:namespace prefix = st1 ns = "urn:schemas-microsoft-com:office:smarttags" />0.0.0.255 area 0
P1R1(config-router)#network 10.1.0.0 0.0.0.255 area 1
P1R1(config-router)#network 10.1.1.0 0.0.0.255 area 1

 

P1R2(config)#int s0/0/0
P1R2(config-if)#encapsulation frame-relay
P1R2(config-if)#ip ospf network point-to-multipoint
P1R2(config)#router ospf 1
P1R2(config-router)#network 172.31.1.0 0.0.0.255 area 0
P1R2(config-router)#network 10.1.0.0 0.0.0.255 area 1
P1R1(config-router)#network 10.1.2.0 0.0.0.255 area 1

 

BBR1(config)#int s0/0/0
BBR1(config-if)#encapsulation frame-relay
BBR1(config-if)#ip ospf network point-to-multipoint
BBR1(config)#router ospf 1
BBR1(config-router)#network 172.31.1.0 0.0.0.255 area 0
BBR1(config-router)#network 10.254.0.0 0.0.0.255 area 1
 
 
配置cisco点到多点非广播模式
接口IP地址配置省略
下面重点配置的地方:
BBR1(config)#int s0/0/0
BBR1(config-if)#encapsulation frame-relay
BBR1(config-if)#no shut
BBR1(config)#int s0/0/0.1 multipoint
BBR1(config-subif)#ip ospf network point-to-multipoint
BBR1(config-subif)#ip add 172.31.1.3 255.255.255.0
BBR1(config-subif)#frame-relay map ip 172.31.1.1 102 broadcast
BBR1(config-subif)#frame-relay map ip 172.31.1.2 103 broadcast
BBR1(config-subif)#exit
BBR1(config)#int s0/0/0.2 point-to-point
BBR1(config-subif)#ip add 172.31.2.3 255.255.255.0
BBR1(config-subif)#frame-relay interface-dcli 104
BBR1(config-subif)#exit
BBR1(config)#router ospf 1
BBR1(config-router)#network 172.31.1.0 0.0.0.255 area 0
BBR1(config-router)#network 172.31.2.0 0.0.0.255 area 0
BBR1(config-router)#network 10.254.0.0 0.0.0.255 area 0

 

P1R1(config)#int s0/0/0
P1R1(config-if)#encapsulation frame-relay
P1R1(config-if)#ip ospf network point-to-multipoint
P1R1(config)#router ospf 1
P1R1(config-router)#network 172.31.1.0 0.0.0.255 area 0
P1R1(config-router)#network 10.1.0.0 0.0.0.255 area 1
P1R1(config-router)#network 10.1.1.0 0.0.0.255 area 1

 

P1R2(config)#int s0/0/0
P1R2(config-if)#encapsulation frame-relay
P1R2(config-if)#ip ospf network point-to-multipoint
P1R2(config)#router ospf 1
P1R2(config-router)#network 172.31.1.0 0.0.0.255 area 0
P1R2(config-router)#network 10.1.0.0 0.0.0.255 area 1
P1R1(config-router)#network 10.1.2.0 0.0.0.255 area 1

 

P1R3(config)#int s0/0/0
P1R3(config-if)#encapsulation frame-relay
P1R3(config-if)#ip ospf network point-to-multipoint
P1R3(config)#router ospf 1
P1R3(config-router)#network 172.31.1.0 0.0.0.255 area 0
P1R3(config-router)#network 10.1.3.0 0.0.0.255 area 2