二、point-to-point網絡類型

1.預設網絡類型(point-to-point)
R1#show run
Building configuration...
!
interface Loopback0
ip address 1.1.1.1 255.255.255.0
interface Serial1/0
ip address 12.1.1.1 255.255.255.0
serial restart-delay 0
router ospf 1
router-id 1.1.1.1
network 1.1.1.0 0.0.0.255 area 0
network 12.1.1.0 0.0.0.255 area 0
R2#show run
ip address 2.2.2.2 255.255.255.0
ip address 12.1.1.2 255.255.255.0
router-id 2.2.2.2
network 2.2.2.0 0.0.0.255 area 0
R1#show ip route
Gateway of last resort is not set
1.0.0.0/8 is variably subnetted, 2 subnets, 2 masks
C 1.1.1.0/24 is directly connected, Loopback0
L 1.1.1.1/32 is directly connected, Loopback0
2.0.0.0/32 is subnetted, 1 subnets
O 2.2.2.2 [110/65] via 12.1.1.2, 00:06:48, Serial1/0
12.0.0.0/8 is variably subnetted, 2 subnets, 2 masks
C 12.1.1.0/24 is directly connected, Serial1/0
L 12.1.1.1/32 is directly connected, Serial1/0
R1#show ip ospf neighbor
Neighbor ID Pri State Dead Time Address Interface
2.2.2.2 0 FULL/ - 00:00:33 12.1.1.2 Serial1/0
R1#show ip ospf interface s1/0
Serial1/0 is up, line protocol is up
Internet Address 12.1.1.1/24, Area 0, Attached via Network Statement
Process ID 1, Router ID 1.1.1.1, Network Type POINT_TO_POINT, Cost: 64
Topology-MTID Cost Disabled Shutdown Topology Name
0 64 no no Base
Transmit Delay is 1 sec, State POINT_TO_POINT
Timer intervals configured, Hello 10, Dead 40, Wait 40, Retransmit 5
oob-resync timeout 40
Hello due in 00:00:06
Supports Link-local Signaling (LLS)
Cisco NSF helper support enabled
IETF NSF helper support enabled
Index 2/2, flood queue length 0
Next 0x0(0)/0x0(0)
Last flood scan length is 1, maximum is 1
Last flood scan time is 4 msec, maximum is 4 msec
Neighbor Count is 1, Adjacent neighbor count is 1
Adjacent with neighbor 2.2.2.2
Suppress hello for 0 neighbor(s)
2.point-to-multipoint網絡類型
O 2.2.2.2 [110/65] via 12.1.1.2, 00:00:05, Serial1/0
12.0.0.0/8 is variably subnetted, 3 subnets, 2 masks
O 12.1.1.2/32 [110/64] via 12.1.1.2, 00:00:05, Serial1/0
2.2.2.2 0 FULL/ - 00:01:42 12.1.1.2 Serial1/0
R1#show ip ospf interface s1/0
Process ID 1, Router ID 1.1.1.1, Network Type POINT_TO_MULTIPOINT, Cost: 64
Transmit Delay is 1 sec, State POINT_TO_MULTIPOINT
Timer intervals configured, Hello 30, Dead 120, Wait 120, Retransmit 5
oob-resync timeout 120
Hello due in 00:00:21
Last flood scan time is 0 msec, maximum is 4 msec
3、point-to-multipoint none-broadcast網絡類型
O 2.2.2.2 [110/65] via 12.1.1.2, 00:00:24, Serial1/0
O 12.1.1.2/32 [110/64] via 12.1.1.2, 00:00:24, Serial1/0
2.2.2.2 0 FULL/ - 00:01:17 12.1.1.2 Serial1/0
R1#show ip ospf int
Hello due in 00:00:22
4、broadcast 網絡類型
O 2.2.2.2 [110/65] via 12.1.1.2, 00:00:04, Serial1/0
2.2.2.2 1 FULL/BDR 00:00:33 12.1.1.2 Serial1/0
R1#
Process ID 1, Router ID 1.1.1.1, Network Type BROADCAST, Cost: 64
Transmit Delay is 1 sec, State DR, Priority 1
Designated Router (ID) 1.1.1.1, Interface address 12.1.1.1
Backup Designated router (ID) 2.2.2.2, Interface address 12.1.1.2
Hello due in 00:00:01
Adjacent with neighbor 2.2.2.2 (Backup Designated Router)
R2#show ip ospf neighbor
1.1.1.1 1 FULL/DR 00:00:37 12.1.1.1 Serial1/0
5、none-broadcast 類型
R1(config)#router ospf 1
R1(config-router)#neighbor 12.1.1.2
R1(config-router)#end
*Sep 28 20:58:03.579: %SYS-5-CONFIG_I: Configured from console by console
*Sep 28 20:58:09.515: %OSPF-5-ADJCHG: Process 1, Nbr 2.2.2.2 on Serial1/0 from LOADING to FULL, Loading Done
R1#show ip route
O 2.2.2.2 [110/65] via 12.1.1.2, 00:00:19, Serial1/0
2.2.2.2 1 FULL/DR 00:01:47 12.1.1.2 Serial1/0
R1#show ip ospf in
Process ID 1, Router ID 1.1.1.1, Network Type NON_BROADCAST, Cost: 64
Transmit Delay is 1 sec, State BDR, Priority 1
Designated Router (ID) 2.2.2.2, Interface address 12.1.1.2
Backup Designated router (ID) 1.1.1.1, Interface address 12.1.1.1
Flush timer for old DR LSA due in 00:02:18
Hello due in 00:00:15
Adjacent with neighbor 2.2.2.2 (Designated Router)
1.1.1.1 1 FULL/BDR 00:01:40 12.1.1.1 Serial1/0
總結:
point-to-point預設網絡類型point-to-point,自動建立鄰居,不選DR/BDR, Hello 10, Dead 40, Wait 40,
point-to-multipoint網絡類型預設類型point-to-multipoint,不選DR/BDR,建立鄰居關系,Hello 30, Dead 120
point-to-multipoint none-broadcast網絡類型預設網絡為point-to-multipoint,自動建立鄰居關系,不選DR/BDR,Hello 30, Dead 120, Wait 120
broadcast自動發現鄰居,選DR/BDR,Hello 10, Dead 40, Wait 40