网络类型
1.Broadcast
2.NonBroadcast
3.Point-to-Multimpoint
4.Point-to-Multimpoint NonBroadcast
5.Point-to-Point
****************************************************
**OSPF网络类型 DR/BDR 手工邻居 HELLO 单播/组播 **
** P2P --- --- 10S 组 **
** P2MP --- --- 30S 单/组 **
** NBMA √ √ 30S 单 **
** Broadcast √ --- 10S 组 **
** P2MP-NBMA --- √ 30S 单 **
****************************************************
--------------------------------
R1
|(S1/0)
|
R2(S1/0)------FR-SW-------(S1/0)R3
--------------------------------
1.Broadcast
R1#show run
interface Loopback0
ip address 1.1.1.1 255.255.255.0
ip ospf network point-to-point
!
interface Serial1/0
ip address 123.1.1.1 255.255.255.0
encapsulation frame-relay
ip ospf network broadcast
frame-relay map ip 123.1.1.3 103 broadcast
frame-relay map ip 123.1.1.2 102 broadcast
no frame-relay inverse-arp
!
router ospf 100
router-id 1.1.1.1
log-adjacency-changes
network 1.1.1.1 0.0.0.0 area 0
network 123.1.1.1 0.0.0.0 area 0
!
R2#show run
interface Loopback0
ip address 2.2.2.2 255.255.255.0
ip ospf network point-to-point
!
interface Serial1/0
ip address 123.1.1.2 255.255.255.0
encapsulation frame-relay
ip ospf network broadcast
frame-relay map ip 123.1.1.3 203 broadcast
frame-relay map ip 123.1.1.1 201 broadcast
no frame-relay inverse-arp
!
router ospf 100
router-id 2.2.2.2
log-adjacency-changes
network 2.2.2.2 0.0.0.0 area 0
network 123.1.1.2 0.0.0.0 area 0
!
R3#show run
interface Loopback0
ip address 3.3.3.3 255.255.255.0
ip ospf network point-to-point
!
interface Serial1/0
ip address 123.1.1.3 255.255.255.0
encapsulation frame-relay
ip ospf network broadcast
frame-relay map ip 123.1.1.1 301 broadcast
frame-relay map ip 123.1.1.2 302 broadcast
no frame-relay inverse-arp
!
router ospf 100
router-id 3.3.3.3
log-adjacency-changes
network 3.3.3.3 0.0.0.0 area 0
network 123.1.1.3 0.0.0.0 area 0
!
R1#show ip ospf neighbor
Neighbor ID Pri State Dead Time Address Interface
3.3.3.3 1 FULL/DR 00:00:35 123.1.1.3 Serial0
2.2.2.2 1 FULL/BDR 00:00:31 123.1.1.2 Serial0
R1#