关于ospf在NBMA模式下的不同网络类型,我分别做了一下实验。
拓扑图:
ospf在帧中继模式下的不同网络类型_第1张图片
 
 
配置帧中继
Fr(config )#frame-relay switching
Fr(config )#int s1/1
Fr(config -if)#encapsulation frame-relay
Fr(config -if)#frame-relay intf-type dce
Fr(config -if)#clock rate 64000
Fr(config -if)#frame-relay route 405 int s1/2 504
Fr(config )#int s1/2
Fr(config -if)#encapsulation frame-relay
Fr(config -if)#frame-relay intf-type dce
Fr(config -if)#clock rate 64000
Fr(config -if)#frame-relay route 504 int s1/1 405
Fr(config -if)#frame-relay route 506 int s1/3 605
Fr(config )#int s1/3
Fr(config -if)#encapsulation frame-relay
Fr(config -if)#frame-relay intf-type dce
Fr(config -if)#clock rate 64000
Fr(config -if)#frame-relay route 605int s1/2 506
(1) 点对多点(只跟中心节点建立邻居,邻居自动发现,不需要 DR,BDR ,处于相同的子网,每 30s 发送一次 hello 包,死亡时间 120s
R44(config)#int s0/0
R44(config-if)#ip ospf network poit-to-multipoint
R55(config)#int s0/0
R55(config-if)#ip ospf network poit-to-multipoint
R66(config)#int s0/0
R66(config-if)#ip ospf network poit-to-multipoint
R44#show ip route
 
(2)NBMA( 手工指定邻居,只跟中心节点建立邻居,需要 DR,BDR ,确保中心节点为 DR, 处于相同的子网,每 30s 发送一次 hello )
在中心路由器上( R55
R55(config)#router ospf 1
R55(config-router)#neighbor 192.168.10.1 priority 0
R55(config-router)#neighbor 192.168.10.3 priority 0
(实验中遇到一个问题,把上述指邻居的命令 no 掉后,邻居还会起来,这时用 clear ip ospf process 重清一下进程就不会再建立邻居了)
(3) 强制广播 ( 只跟中心节点建立邻居关系,邻居自动发现,选举 DR BDR ,处于相同子网,每 10s 发送一次 hello 包,死亡时间 40s)
R44(config-if)#ip ospf network broadcast
R55(config-if)#ip ospf network broadcast
R66(config-if)#ip ospf network broadcast
4 )点到多点非广播 ( 只跟中心节点建立邻居,需要在中心节点手工指定邻居,不需要 DR,BDR ,处于相同子网,每 30s 发送一次 hello)
R44(config-if)#ip ospf network point-to-multipoint no-broadcast
R55(config-if)#ip ospf network point-to-multipoint no-broadcast
R66(config-if)#ip ospf network point-to-multipoint no-broadcast
R55(config)#router ospf 1
R55(router-config)#neighbor 192.168.1.1 priority 0
R55(router-config)#neighbor 192.168.1.3 priority 0
5 )点到点(只跟中心节点建立邻居,邻居自动发现,不需要 DR,BDR ,处于不同子网 ,hello 时间 10s
R44(config )#int s0/0.1 point-to-point
R44(config -subif)#ip address 172.16.1.1 255.255.255.0
R44(config -subif)#no shut
R44(config-subif )#frame-relay interface-dlci 405
R55(config )#int s0/0.1 point-to-point
R55(config-subif )#ip address 172.16.1.2 255.255.255.0
R55(config-subif )#no shut
R55(config-subif )#frame-relay interface-dlci 504
R55(config )#int s0/0.2 point-to-point
R55(config-subif )#ip address 172.16.2.1 255.255.255.0
R55(config-subif )#no shut
R55(config-subif )#frame-relay interface-dlci 506
R66(config )#int s0/0.2 point-to-point    
R66(config-subif )#ip address 172.16.2.2 255.255.255.0
R66(config-subif )#no shut
R66(config-subif )#frame-relay interface-dlci 605
6 )中心路由器是点到多点,两边路由器是点到点。(只跟中心节点建立邻居,邻居自动发现,不需要 DR,BDR ,处于相同子网,)
R44(config)#int s0/0
R44(config-if)#ip ospf network point-to-point
R44(config-if)#ip ospf hello-interval 30 / 因为点到点的 hello 时间和点到多点的 hello 时间不一样,所以要修改 hello 时间才能形成邻居。
R44(config-if)#ip ospf dead-interval 120
R55(config)#int s0/0
R55(config-if)#ip ospf network point-to-multipoint
R66(config)#int s0/0
R66(config-if)#ip ospf network point-to-point
R66(config-if)#ip ospf hello-interval 30
R66(config-if)#ip ospf dead-interval 120
实验结果与分析
1 )点到多点相当于是末节路由所以他会宣告主机地址,
2 )只要是非广播的类型都要指定邻居
(3) 点到点不用关闭反向 ARP
4 ospf 有三种网络类型机 点到点,广播, NBMA
而在 NBMA 网络中 OSPF 又有五种运行模式(点到点,广播,点到多点,点到多点非广播, NBMA ,)
5 )点到点的模式时,如果之前在 R4 R6 上有做 map 映射,则应改先 no 掉否则 R4(config-subif)#frame-relay interface-dlci 405 这条命令将出错。
6 )由于模拟器的原因,做点到点的时候,只有一边建立了邻居。
(7) 因为点到点的 hello 时间和点到多点的 hello 时间不一样,所以要修改 hello 时间才能形成邻居。