测试拓扑
测试命令
修改接口网络类型
R1(config-if)#ip ospf network ?
broadcast Specify OSPF broadcast multi-access network
non-broadcast Specify OSPF NBMA network
point-to-multipoint Specify OSPF point-to-multipoint network
point-to-point Specify OSPF point-to-point network
R1(config-if)#ip ospf network point-to-multipoint ?
non-broadcast Specify non-broadcast point-to-mpoint network
<cr>
查看接口网络类型
R1#show ip ospf int e0/1
Ethernet0/1 is up, line protocol is up
Internet Address 12.1.1.1/24, Area 0, Attached via Network Statement
Process ID 110, Router ID 89.1.1.1, Network Type BROADCAST, Cost: 10
Topology-MTID Cost Disabled Shutdown Topology Name
0 10 no no Base
Transmit Delay is 1 sec, State DR, Priority 1
Designated Router (ID) 89.1.1.1, Interface address 12.1.1.1
No backup designated router on this network
Timer intervals configured, Hello 10, Dead 40, Wait 40, Retransmit 5
oob-resync timeout 40
Hello due in 00:00:04
Supports Link-local Signaling (LLS)
Cisco NSF helper support enabled
IETF NSF helper support enabled
Index 1/1/1, flood queue length 0
Next 0x0(0)/0x0(0)/0x0(0)
Last flood scan length is 1, maximum is 4
Last flood scan time is 0 msec, maximum is 0 msec
Neighbor Count is 1, Adjacent neighbor count is 1
Adjacent with neighbor 89.2.2.2
Suppress hello for 0 neighbor(s)
详见下表格
总结:
1.是否建立邻居关系与网络类型无关。hello时间和dead时间一致,其他参数默认(一致),无论什么网络类型,邻居关系均可以正常建立;
2.需要选举DR/BDR相互之间可以收到路由,或不需要选举DR/BDR相互之间也可以收到路由,其他情况都没有路由。由于广播和NBMA网络需要选举DR/BDR,点到点、点到多点、点到多点非广播不选举DR/BDR。所以只有两端都选举DR/BDR的网络类型或者两端都不选举DR/BDR的网络类型才可以传递路由;
3.一端需要选举DR/BDR,另一端不选举DR/BDR,hello时间,dead时间一致,邻居关系可以建立,但无法传递路由。因2类LSA是由DR产生的,另一端没有DR/BDR的概念,则无法传递路由。