OSPF实验

OSPF实验
在这里插入图片描述

要求:

  1. 整个网络IP地址为192.168.1.0/24,自己规划
  2. area 0区域手工设置R1为DR、R2为BDR
  3. R3~R5之间使用密文认证方式
  4. R1、R2、R5上配置环回接口,但是R5环回接口不能宣告进OSPF
  5. 全网可达

配置:

1、IP分配:

192.168.1.0/24
192.168.1.0/26----骨干
	192.128.1.0/30
	192.168.1.0000 00/30----R3~R4
	192.168.1.0001 00/30----R4~R5
	192.128.1.00 001000/29----192.168.1.8/29
192.168.1.64/26----R1环回
192.168.1.128/64----R2环回
192.168.1.192/26----R5环回

2、IP配置:

r1:

[r1]int g 0/0/0
[r1-GigabitEthernet0/0/0]ip ad 192.168.1.9 29
Mar 29 2023 16:07:44-08:00 r1 %%01IFNET/4/LINK_STATE(l)[1]:The line protocol IP 
on the interface GigabitEthernet0/0/0 has entered the UP state. 
[r1-GigabitEthernet0/0/0]q
[r1]int l 1
[r1-LoopBack1]ip ad 192.168.1.65 26
[r1-LoopBack1]q

r2:

[r2]int g 0/0/0
[r2-GigabitEthernet0/0/0]ip ad 192.168.1.10 29
Mar 29 2023 16:09:38-08:00 r2 %%01IFNET/4/LINK_STATE(l)[1]:The line protocol IP 
on the interface GigabitEthernet0/0/0 has entered the UP state. 
[r2-GigabitEthernet0/0/0]q
[r2]int l 2
[r2-LoopBack2]ip ad 192.168.1.129 26
[r2-LoopBack2]q

r3:

[r3]int g 0/0/0
[r3-GigabitEthernet0/0/0]ip ad 192.168.1.11 29
Mar 29 2023 16:12:26-08:00 r3 %%01IFNET/4/LINK_STATE(l)[0]:The line protocol IP 
on the interface GigabitEthernet0/0/0 has entered the UP state. 
[r3-GigabitEthernet0/0/0]q
[r3]int g 0/0/1
[r3-GigabitEthernet0/0/1]ip ad 192.168.1.1 30
Mar 29 2023 16:13:10-08:00 r3 %%01IFNET/4/LINK_STATE(l)[1]:The line protocol IP 
on the interface GigabitEthernet0/0/1 has entered the UP state. 
[r3-GigabitEthernet0/0/1]q

r4:

[r4]int g 0/0/0
[r4-GigabitEthernet0/0/0]ip ad 192.168.1.2 30
[r4-GigabitEthernet0/0/0]
Mar 29 2023 16:13:48-08:00 r4 %%01IFNET/4/LINK_STATE(l)[0]:The line protocol IP 
on the interface GigabitEthernet0/0/0 has entered the UP state. 
[r4-GigabitEthernet0/0/0]q
[r4]int g 0/0/1
[r4-GigabitEthernet0/0/1]ip ad 192.168.1.5 30
Mar 29 2023 16:14:28-08:00 r4 %%01IFNET/4/LINK_STATE(l)[1]:The line protocol IP 
on the interface GigabitEthernet0/0/1 has entered the UP state. 
[r4-GigabitEthernet0/0/1]q

r5:

[r5]int g 0/0/0
[r5-GigabitEthernet0/0/0]ip ad 192.168.1.6 30
Mar 29 2023 16:15:05-08:00 r5 %%01IFNET/4/LINK_STATE(l)[0]:The line protocol IP 
on the interface GigabitEthernet0/0/0 has entered the UP state.
[r5-GigabitEthernet0/0/0]q
[r5]int l 0 
[r5-LoopBack0]ip ad 192.168.1.193 26
[r5-LoopBack0]q

ospf配置

r1:

[r1]ospf 1 rou	
[r1]ospf 1 router-id 1.1.1.1
[r1-ospf-1]a	
[r1-ospf-1]area 0
[r1-ospf-1-area-0.0.0.0]net	
[r1-ospf-1-area-0.0.0.0]network 192.168.1.0 0.0.0.255
[r1-ospf-1-area-0.0.0.0]undo network 192.168.1.0 0.0.0.255
[r1-ospf-1-area-0.0.0.0]netw	
[r1-ospf-1-area-0.0.0.0]network 192.168.1.64 0.0.0.63
[r1-ospf-1-area-0.0.0.0]net	
[r1-ospf-1-area-0.0.0.0]network 192.168.1.65 0.0.0.0
[r1-ospf-1-area-0.0.0.0]net	
[r1-ospf-1-area-0.0.0.0]network 192.168.1.9 0.0.0.0
[r1-ospf-1-area-0.0.0.0]
Mar 29 2023 16:26:45-08:00 r1 %%01OSPF/4/NBR_CHANGE_E(l)[0]:Neighbor changes eve
nt: neighbor status changed. (ProcessId=256, NeighborAddress=10.1.168.192, Neigh
borEvent=HelloReceived, NeighborPreviousState=Down, NeighborCurrentState=Init) 
[r1-ospf-1-area-0.0.0.0]
Mar 29 2023 16:26:54-08:00 r1 %%01OSPF/4/NBR_CHANGE_E(l)[1]:Neighbor changes eve
nt: neighbor status changed. (ProcessId=256, NeighborAddress=10.1.168.192, Neigh
borEvent=2WayReceived, NeighborPreviousState=Init, NeighborCurrentState=ExStart)
 
[r1-ospf-1-area-0.0.0.0]
Mar 29 2023 16:26:54-08:00 r1 %%01OSPF/4/NBR_CHANGE_E(l)[2]:Neighbor changes eve
nt: neighbor status changed. (ProcessId=256, NeighborAddress=10.1.168.192, Neigh
borEvent=NegotiationDone, NeighborPreviousState=ExStart, NeighborCurrentState=Ex
change) 
[r1-ospf-1-area-0.0.0.0]
Mar 29 2023 16:26:54-08:00 r1 %%01OSPF/4/NBR_CHANGE_E(l)[3]:Neighbor changes eve
nt: neighbor status changed. (ProcessId=256, NeighborAddress=10.1.168.192, Neigh
borEvent=ExchangeDone, NeighborPreviousState=Exchange, NeighborCurrentState=Load
ing) 
[r1-ospf-1-area-0.0.0.0]
Mar 29 2023 16:26:54-08:00 r1 %%01OSPF/4/NBR_CHANGE_E(l)[4]:Neighbor changes eve
nt: neighbor status changed. (ProcessId=256, NeighborAddress=10.1.168.192, Neigh
borEvent=LoadingDone, NeighborPreviousState=Loading, NeighborCurrentState=Full) 

[r1-ospf-1-area-0.0.0.0]
Mar 29 2023 16:28:32-08:00 r1 %%01OSPF/4/NBR_CHANGE_E(l)[5]:Neighbor changes eve
nt: neighbor status changed. (ProcessId=256, NeighborAddress=11.1.168.192, Neigh
borEvent=HelloReceived, NeighborPreviousState=Down, NeighborCurrentState=Init) 
[r1-ospf-1-area-0.0.0.0]
Mar 29 2023 16:28:38-08:00 r1 %%01OSPF/4/NBR_CHANGE_E(l)[6]:Neighbor changes eve
nt: neighbor status changed. (ProcessId=256, NeighborAddress=11.1.168.192, Neigh
borEvent=2WayReceived, NeighborPreviousState=Init, NeighborCurrentState=ExStart)
 
[r1-ospf-1-area-0.0.0.0]
Mar 29 2023 16:28:38-08:00 r1 %%01OSPF/4/NBR_CHANGE_E(l)[7]:Neighbor changes eve
nt: neighbor status changed. (ProcessId=256, NeighborAddress=11.1.168.192, Neigh
borEvent=NegotiationDone, NeighborPreviousState=ExStart, NeighborCurrentState=Ex
change) 
[r1-ospf-1-area-0.0.0.0]
Mar 29 2023 16:28:38-08:00 r1 %%01OSPF/4/NBR_CHANGE_E(l)[8]:Neighbor changes eve
nt: neighbor status changed. (ProcessId=256, NeighborAddress=11.1.168.192, Neigh
borEvent=ExchangeDone, NeighborPreviousState=Exchange, NeighborCurrentState=Load
ing) 
[r1-ospf-1-area-0.0.0.0]
Mar 29 2023 16:28:38-08:00 r1 %%01OSPF/4/NBR_CHANGE_E(l)[9]:Neighbor changes eve
nt: neighbor status changed. (ProcessId=256, NeighborAddress=11.1.168.192, Neigh
borEvent=LoadingDone, NeighborPreviousState=Loading, NeighborCurrentState=Full) 

[r1-ospf-1-area-0.0.0.0]q

r2:

[r2]ospf 1 router-id 2.2.2.2
[r2-ospf-1]a	
[r2-ospf-1]area 0
[r2-ospf-1-area-0.0.0.0]net	
[r2-ospf-1-area-0.0.0.0]network 192.168.1.10 0.0.0.0
[r2-ospf-1-area-0.0.0.0]net	
[r2-ospf-1-area-0.0.0.0]network 
Mar 29 2023 16:26:54-08:00 r2 %%01OSPF/4/NBR_CHANGE_E(l)[0]:Neighbor changes eve
nt: neighbor status changed. (ProcessId=256, NeighborAddress=9.1.168.192, Neighb
orEvent=HelloReceived, NeighborPreviousState=Down, NeighborCurrentState=Init) 
[r2-ospf-1-area-0.0.0.0]network 1
Mar 29 2023 16:26:54-08:00 r2 %%01OSPF/4/NBR_CHANGE_E(l)[1]:Neighbor changes eve
nt: neighbor status changed. (ProcessId=256, NeighborAddress=9.1.168.192, Neighb
orEvent=2WayReceived, NeighborPreviousState=Init, NeighborCurrentState=2Way) 
[r2-ospf-1-area-0.0.0.0]network 1
Mar 29 2023 16:26:54-08:00 r2 %%01OSPF/4/NBR_CHANGE_E(l)[2]:Neighbor changes eve
nt: neighbor status changed. (ProcessId=256, NeighborAddress=9.1.168.192, Neighb
orEvent=AdjOk?, NeighborPreviousState=2Way, NeighborCurrentState=ExStart) 
[r2-ospf-1-area-0.0.0.0]network 1
Mar 29 2023 16:26:54-08:00 r2 %%01OSPF/4/NBR_CHANGE_E(l)[3]:Neighbor changes eve
nt: neighbor status changed. (ProcessId=256, NeighborAddress=9.1.168.192, Neighb
orEvent=NegotiationDone, NeighborPreviousState=ExStart, NeighborCurrentState=Exc
hange) 
[r2-ospf-1-area-0.0.0.0]network 1
Mar 29 2023 16:26:54-08:00 r2 %%01OSPF/4/NBR_CHANGE_E(l)[4]:Neighbor changes eve
nt: neighbor status changed. (ProcessId=256, NeighborAddress=9.1.168.192, Neighb
orEvent=ExchangeDone, NeighborPreviousState=Exchange, NeighborCurrentState=Loadi
ng) 
[r2-ospf-1-area-0.0.0.0]network 1
Mar 29 2023 16:26:54-08:00 r2 %%01OSPF/4/NBR_CHANGE_E(l)[5]:Neighbor changes eve
nt: neighbor status changed. (ProcessId=256, NeighborAddress=9.1.168.192, Neighb
orEvent=LoadingDone, NeighborPreviousState=Loading, NeighborCurrentState=Full) 
[r2-ospf-1-area-0.0.0.0]network 192.168.1.129 0.0.0.0
[r2-ospf-1-area-0.0.0.0]q

r3:

[r3]ospf 1 rou	
[r3]ospf 1 router-id 3.3.3.3
[r3-ospf-1]a	
[r3-ospf-1]area 0
[r3-ospf-1-area-0.0.0.0]netw	
[r3-ospf-1-area-0.0.0.0]network 192.168.1.11 0.0.0.0
[r3-ospf-1-area-0.0.0.0]
Mar 29 2023 16:28:35-08:00 r3 %%01OSPF/4/NBR_CHANGE_E(l)[0]:Neighbor changes eve
nt: neighbor status changed. (ProcessId=256, NeighborAddress=10.1.168.192, Neigh
borEvent=HelloReceived, NeighborPreviousState=Down, NeighborCurrentState=Init) 
[r3-ospf-1-area-0.0.0.0]
Mar 29 2023 16:28:35-08:00 r3 %%01OSPF/4/NBR_CHANGE_E(l)[1]:Neighbor changes eve
nt: neighbor status changed. (ProcessId=256, NeighborAddress=10.1.168.192, Neigh
borEvent=2WayReceived, NeighborPreviousState=Init, NeighborCurrentState=2Way) 
[r3-ospf-1-area-0.0.0.0]
Mar 29 2023 16:28:35-08:00 r3 %%01OSPF/4/NBR_CHANGE_E(l)[2]:Neighbor changes eve
nt: neighbor status changed. (ProcessId=256, NeighborAddress=10.1.168.192, Neigh
borEvent=AdjOk?, NeighborPreviousState=2Way, NeighborCurrentState=ExStart) 
[r3-ospf-1-area-0.0.0.0]
Mar 29 2023 16:28:35-08:00 r3 %%01OSPF/4/NBR_CHANGE_E(l)[3]:Neighbor changes eve
nt: neighbor status changed. (ProcessId=256, NeighborAddress=10.1.168.192, Neigh
borEvent=NegotiationDone, NeighborPreviousState=ExStart, NeighborCurrentState=Ex
change) 
[r3-ospf-1-area-0.0.0.0]
Mar 29 2023 16:28:35-08:00 r3 %%01OSPF/4/NBR_CHANGE_E(l)[4]:Neighbor changes eve
nt: neighbor status changed. (ProcessId=256, NeighborAddress=10.1.168.192, Neigh
borEvent=ExchangeDone, NeighborPreviousState=Exchange, NeighborCurrentState=Load
ing) 
[r3-ospf-1-area-0.0.0.0]
Mar 29 2023 16:28:35-08:00 r3 %%01OSPF/4/NBR_CHANGE_E(l)[5]:Neighbor changes eve
nt: neighbor status changed. (ProcessId=256, NeighborAddress=10.1.168.192, Neigh
borEvent=LoadingDone, NeighborPreviousState=Loading, NeighborCurrentState=Full) 

[r3-ospf-1-area-0.0.0.0]
Mar 29 2023 16:28:38-08:00 r3 %%01OSPF/4/NBR_CHANGE_E(l)[6]:Neighbor changes eve
nt: neighbor status changed. (ProcessId=256, NeighborAddress=9.1.168.192, Neighb
orEvent=HelloReceived, NeighborPreviousState=Down, NeighborCurrentState=Init) 
[r3-ospf-1-area-0.0.0.0]
Mar 29 2023 16:28:38-08:00 r3 %%01OSPF/4/NBR_CHANGE_E(l)[7]:Neighbor changes eve
nt: neighbor status changed. (ProcessId=256, NeighborAddress=9.1.168.192, Neighb
orEvent=2WayReceived, NeighborPreviousState=Init, NeighborCurrentState=2Way) 
[r3-ospf-1-area-0.0.0.0]
Mar 29 2023 16:28:38-08:00 r3 %%01OSPF/4/NBR_CHANGE_E(l)[8]:Neighbor changes eve
nt: neighbor status changed. (ProcessId=256, NeighborAddress=9.1.168.192, Neighb
orEvent=AdjOk?, NeighborPreviousState=2Way, NeighborCurrentState=ExStart) 
[r3-ospf-1-area-0.0.0.0]
Mar 29 2023 16:28:38-08:00 r3 %%01OSPF/4/NBR_CHANGE_E(l)[9]:Neighbor changes eve
nt: neighbor status changed. (ProcessId=256, NeighborAddress=9.1.168.192, Neighb
orEvent=NegotiationDone, NeighborPreviousState=ExStart, NeighborCurrentState=Exc
hange) 
[r3-ospf-1-area-0.0.0.0]
Mar 29 2023 16:28:38-08:00 r3 %%01OSPF/4/NBR_CHANGE_E(l)[10]:Neighbor changes ev
ent: neighbor status changed. (ProcessId=256, NeighborAddress=9.1.168.192, Neigh
borEvent=ExchangeDone, NeighborPreviousState=Exchange, NeighborCurrentState=Load
ing) 
[r3-ospf-1-area-0.0.0.0]
Mar 29 2023 16:28:38-08:00 r3 %%01OSPF/4/NBR_CHANGE_E(l)[11]:Neighbor changes ev
ent: neighbor status changed. (ProcessId=256, NeighborAddress=9.1.168.192, Neigh
borEvent=LoadingDone, NeighborPreviousState=Loading, NeighborCurrentState=Full) 

[r3-ospf-1-area-0.0.0.0]q
[r3-ospf-1]q
[r3]ospf 1 rou	
[r3]ospf 1 router-id 3.3.3.3
[r3-ospf-1]a 1
[r3-ospf-1-area-0.0.0.1]net 192.168.1.1 0.0.0.0
[r3-ospf-1-area-0.0.0.1]q
[r3-ospf-1]
Mar 29 2023 16:33:33-08:00 r3 %%01OSPF/4/NBR_CHANGE_E(l)[12]:Neighbor changes ev
ent: neighbor status changed. (ProcessId=256, NeighborAddress=2.1.168.192, Neigh
borEvent=HelloReceived, NeighborPreviousState=Down, NeighborCurrentState=Init) 
[r3-ospf-1]
Mar 29 2023 16:33:35-08:00 r3 %%01OSPF/4/NBR_CHANGE_E(l)[13]:Neighbor changes ev
ent: neighbor status changed. (ProcessId=256, NeighborAddress=2.1.168.192, Neigh
borEvent=2WayReceived, NeighborPreviousState=Init, NeighborCurrentState=ExStart)
 
[r3-ospf-1]
Mar 29 2023 16:33:35-08:00 r3 %%01OSPF/4/NBR_CHANGE_E(l)[14]:Neighbor changes ev
ent: neighbor status changed. (ProcessId=256, NeighborAddress=2.1.168.192, Neigh
borEvent=NegotiationDone, NeighborPreviousState=ExStart, NeighborCurrentState=Ex
change) 
[r3-ospf-1]
Mar 29 2023 16:33:35-08:00 r3 %%01OSPF/4/NBR_CHANGE_E(l)[15]:Neighbor changes ev
ent: neighbor status changed. (ProcessId=256, NeighborAddress=2.1.168.192, Neigh
borEvent=ExchangeDone, NeighborPreviousState=Exchange, NeighborCurrentState=Load
ing) 
[r3-ospf-1]
Mar 29 2023 16:33:35-08:00 r3 %%01OSPF/4/NBR_CHANGE_E(l)[16]:Neighbor changes ev
ent: neighbor status changed. (ProcessId=256, NeighborAddress=2.1.168.192, Neigh
borEvent=LoadingDone, NeighborPreviousState=Loading, NeighborCurrentState=Full) 

r4:

[r4]ospf 1 router-id 4.4.4.4
[r4-ospf-1]a 1
[r4-ospf-1-area-0.0.0.1]net	
[r4-ospf-1-area-0.0.0.1]network 0.0.0.0 255.255.255.255
[r4-ospf-1-area-0.0.0.1]
Mar 29 2023 16:33:34-08:00 r4 %%01OSPF/4/NBR_CHANGE_E(l)[0]:Neighbor changes eve
nt: neighbor status changed. (ProcessId=256, NeighborAddress=1.1.168.192, Neighb
orEvent=HelloReceived, NeighborPreviousState=Down, NeighborCurrentState=Init) 
[r4-ospf-1-area-0.0.0.1]
Mar 29 2023 16:33:34-08:00 r4 %%01OSPF/4/NBR_CHANGE_E(l)[1]:Neighbor changes eve
nt: neighbor status changed. (ProcessId=256, NeighborAddress=1.1.168.192, Neighb
orEvent=2WayReceived, NeighborPreviousState=Init, NeighborCurrentState=2Way) 
[r4-ospf-1-area-0.0.0.1]
Mar 29 2023 16:33:34-08:00 r4 %%01OSPF/4/NBR_CHANGE_E(l)[2]:Neighbor changes eve
nt: neighbor status changed. (ProcessId=256, NeighborAddress=1.1.168.192, Neighb
orEvent=AdjOk?, NeighborPreviousState=2Way, NeighborCurrentState=ExStart) 
[r4-ospf-1-area-0.0.0.1]
Mar 29 2023 16:33:35-08:00 r4 %%01OSPF/4/NBR_CHANGE_E(l)[3]:Neighbor changes eve
nt: neighbor status changed. (ProcessId=256, NeighborAddress=1.1.168.192, Neighb
orEvent=NegotiationDone, NeighborPreviousState=ExStart, NeighborCurrentState=Exc
hange) 
[r4-ospf-1-area-0.0.0.1]
Mar 29 2023 16:33:35-08:00 r4 %%01OSPF/4/NBR_CHANGE_E(l)[4]:Neighbor changes eve
nt: neighbor status changed. (ProcessId=256, NeighborAddress=1.1.168.192, Neighb
orEvent=ExchangeDone, NeighborPreviousState=Exchange, NeighborCurrentState=Loadi
ng) 
[r4-ospf-1-area-0.0.0.1]
Mar 29 2023 16:33:35-08:00 r4 %%01OSPF/4/NBR_CHANGE_E(l)[5]:Neighbor changes eve
nt: neighbor status changed. (ProcessId=256, NeighborAddress=1.1.168.192, Neighb
orEvent=LoadingDone, NeighborPreviousState=Loading, NeighborCurrentState=Full) 
[r4-ospf-1-area-0.0.0.1]disp	
[r4-ospf-1-area-0.0.0.1]display th
[V200R003C00]
#
 area 0.0.0.1 
  network 0.0.0.0 255.255.255.255 
#
return
[r4-ospf-1-area-0.0.0.1]q
[r4-ospf-1]
Mar 29 2023 16:34:34-08:00 r4 %%01OSPF/4/NBR_CHANGE_E(l)[6]:Neighbor changes eve
nt: neighbor status changed. (ProcessId=256, NeighborAddress=6.1.168.192, Neighb
orEvent=HelloReceived, NeighborPreviousState=Down, NeighborCurrentState=Init) 
[r4-ospf-1]
Mar 29 2023 16:34:43-08:00 r4 %%01OSPF/4/NBR_CHANGE_E(l)[7]:Neighbor changes eve
nt: neighbor status changed. (ProcessId=256, NeighborAddress=6.1.168.192, Neighb
orEvent=2WayReceived, NeighborPreviousState=Init, NeighborCurrentState=ExStart) 

[r4-ospf-1]
Mar 29 2023 16:34:43-08:00 r4 %%01OSPF/4/NBR_CHANGE_E(l)[8]:Neighbor changes eve
nt: neighbor status changed. (ProcessId=256, NeighborAddress=6.1.168.192, Neighb
orEvent=NegotiationDone, NeighborPreviousState=ExStart, NeighborCurrentState=Exc
hange) 
[r4-ospf-1]
Mar 29 2023 16:34:43-08:00 r4 %%01OSPF/4/NBR_CHANGE_E(l)[9]:Neighbor changes eve
nt: neighbor status changed. (ProcessId=256, NeighborAddress=6.1.168.192, Neighb
orEvent=ExchangeDone, NeighborPreviousState=Exchange, NeighborCurrentState=Loadi
ng) 
[r4-ospf-1]
Mar 29 2023 16:34:43-08:00 r4 %%01OSPF/4/NBR_CHANGE_E(l)[10]:Neighbor changes ev
ent: neighbor status changed. (ProcessId=256, NeighborAddress=6.1.168.192, Neigh
borEvent=LoadingDone, NeighborPreviousState=Loading, NeighborCurrentState=Full) 

r5:

[r5]ospf 1 rou 5.5.5.5
[r5-ospf-1]A 1
[r5-ospf-1-area-0.0.0.1]net	
[r5-ospf-1-area-0.0.0.1]network 192.168.1.6 0.0.0.0
[r5-ospf-1-area-0.0.0.1]net 192.168.1.1
Mar 29 2023 16:34:43-08:00 r5 %%01OSPF/4/NBR_CHANGE_E(l)[0]:Neighbor changes eve
nt: neighbor status changed. (ProcessId=256, NeighborAddress=5.1.168.192, Neighb
orEvent=HelloReceived, NeighborPreviousState=Down, NeighborCurrentState=Init) 
[r5-ospf-1-area-0.0.0.1]net 192.168.1.1
Mar 29 2023 16:34:43-08:00 r5 %%01OSPF/4/NBR_CHANGE_E(l)[1]:Neighbor changes eve
nt: neighbor status changed. (ProcessId=256, NeighborAddress=5.1.168.192, Neighb
orEvent=2WayReceived, NeighborPreviousState=Init, NeighborCurrentState=2Way) 
[r5-ospf-1-area-0.0.0.1]net 192.168.1.1
Mar 29 2023 16:34:43-08:00 r5 %%01OSPF/4/NBR_CHANGE_E(l)[2]:Neighbor changes eve
nt: neighbor status changed. (ProcessId=256, NeighborAddress=5.1.168.192, Neighb
orEvent=AdjOk?, NeighborPreviousState=2Way, NeighborCurrentState=ExStart) 
[r5-ospf-1-area-0.0.0.1]net 192.168.1.1
Mar 29 2023 16:34:43-08:00 r5 %%01OSPF/4/NBR_CHANGE_E(l)[3]:Neighbor changes eve
nt: neighbor status changed. (ProcessId=256, NeighborAddress=5.1.168.192, Neighb
orEvent=NegotiationDone, NeighborPreviousState=ExStart, NeighborCurrentState=Exc
hange) 
[r5-ospf-1-area-0.0.0.1]net 192.168.1.1
Mar 29 2023 16:34:43-08:00 r5 %%01OSPF/4/NBR_CHANGE_E(l)[4]:Neighbor changes eve
nt: neighbor status changed. (ProcessId=256, NeighborAddress=5.1.168.192, Neighb
orEvent=ExchangeDone, NeighborPreviousState=Exchange, NeighborCurrentState=Loadi
ng) 
[r5-ospf-1-area-0.0.0.1]net 192.168.1.19
Mar 29 2023 16:34:43-08:00 r5 %%01OSPF/4/NBR_CHANGE_E(l)[5]:Neighbor changes eve
nt: neighbor status changed. (ProcessId=256, NeighborAddress=5.1.168.192, Neighb
orEvent=LoadingDone, NeighborPreviousState=Loading, NeighborCurrentState=Full) 

检测:

[r1]dis ospf peer  

	 OSPF Process 1 with Router ID 1.1.1.1
		 Neighbors 

 Area 0.0.0.0 interface 192.168.1.9(GigabitEthernet0/0/0)'s neighbors
 Router ID: 2.2.2.2          Address: 192.168.1.10    
   State: Full  Mode:Nbr is  Master  Priority: 1
   DR: 192.168.1.9  BDR: 192.168.1.10  MTU: 0    
   Dead timer due in 34  sec 
   Retrans timer interval: 5 
   Neighbor is up for 00:15:30     
   Authentication Sequence: [ 0 ] 

 Router ID: 3.3.3.3          Address: 192.168.1.11    
   State: Full  Mode:Nbr is  Master  Priority: 1
   DR: 192.168.1.9  BDR: 192.168.1.10  MTU: 0    
   Dead timer due in 36  sec 
   Retrans timer interval: 5 
   Neighbor is up for 00:13:46     
   Authentication Sequence: [ 0 ] 

发现DR为r1,需进行更改

<r1>reset ospf process
Warning: The OSPF process will be reset. Continue? [Y/N]:y
Mar 29 2023 16:45:47-08:00 r1 %%01OSPF/3/NBR_CHG_DOWN(l)[0]:Neighbor event:neigh
bor state changed to Down. (ProcessId=256, NeighborAddress=2.2.2.2, NeighborEven
t=KillNbr, NeighborPreviousState=Full, NeighborCurrentState=Down) 
<r1>
<r1>
Mar 29 2023 16:45:47-08:00 r1 %%01OSPF/3/NBR_DOWN_REASON(l)[1]:Neighbor state le
aves full or changed to Down. (ProcessId=256, NeighborRouterId=2.2.2.2, Neighbor
AreaId=0, NeighborInterface=GigabitEthernet0/0/0,NeighborDownImmediate reason=Ne
ighbor Down Due to Kill Neighbor, NeighborDownPrimeReason=OSPF Process Reset, Ne
ighborChangeTime=2023-03-29 16:45:47-08:00) 
<r1>
Mar 29 2023 16:45:47-08:00 r1 %%01OSPF/3/NBR_CHG_DOWN(l)[2]:Neighbor event:neigh
bor state changed to Down. (ProcessId=256, NeighborAddress=3.3.3.3, NeighborEven
t=KillNbr, NeighborPreviousState=Full, NeighborCurrentState=Down) 
<r1>
Mar 29 2023 16:45:47-08:00 r1 %%01OSPF/3/NBR_DOWN_REASON(l)[3]:Neighbor state le
aves full or changed to Down. (ProcessId=256, NeighborRouterId=3.3.3.3, Neighbor
AreaId=0, NeighborInterface=GigabitEthernet0/0/0,NeighborDownImmediate reason=Ne
ighbor Down Due to Kill Neighbor, NeighborDownPrimeReason=OSPF Process Reset, Ne
ighborChangeTime=2023-03-29 16:45:47-08:00) 
<r1>
Mar 29 2023 16:45:50-08:00 r1 %%01OSPF/4/NBR_CHANGE_E(l)[4]:Neighbor changes eve
nt: neighbor status changed. (ProcessId=256, NeighborAddress=10.1.168.192, Neigh
borEvent=HelloReceived, NeighborPreviousState=Down, NeighborCurrentState=Init) 
<r1>
Mar 29 2023 16:45:50-08:00 r1 %%01OSPF/4/NBR_CHANGE_E(l)[5]:Neighbor changes eve
nt: neighbor status changed. (ProcessId=256, NeighborAddress=10.1.168.192, Neigh
borEvent=2WayReceived, NeighborPreviousState=Init, NeighborCurrentState=2Way) 
<r1>
Mar 29 2023 16:45:57-08:00 r1 %%01OSPF/4/NBR_CHANGE_E(l)[6]:Neighbor changes eve
nt: neighbor status changed. (ProcessId=256, NeighborAddress=11.1.168.192, Neigh
borEvent=HelloReceived, NeighborPreviousState=Down, NeighborCurrentState=Init) 
<r1>
Mar 29 2023 16:45:57-08:00 r1 %%01OSPF/4/NBR_CHANGE_E(l)[7]:Neighbor changes eve
nt: neighbor status changed. (ProcessId=256, NeighborAddress=11.1.168.192, Neigh
borEvent=2WayReceived, NeighborPreviousState=Init, NeighborCurrentState=2Way) 
<r1>
Mar 29 2023 16:45:57-08:00 r1 %%01OSPF/4/NBR_CHANGE_E(l)[8]:Neighbor changes eve
nt: neighbor status changed. (ProcessId=256, NeighborAddress=10.1.168.192, Neigh
borEvent=AdjOk?, NeighborPreviousState=2Way, NeighborCurrentState=ExStart) 
<r1>
Mar 29 2023 16:45:57-08:00 r1 %%01OSPF/4/NBR_CHANGE_E(l)[9]:Neighbor changes eve
nt: neighbor status changed. (ProcessId=256, NeighborAddress=11.1.168.192, Neigh
borEvent=AdjOk?, NeighborPreviousState=2Way, NeighborCurrentState=ExStart) 
<r1>
Mar 29 2023 16:45:57-08:00 r1 %%01OSPF/4/NBR_CHANGE_E(l)[10]:Neighbor changes ev
ent: neighbor status changed. (ProcessId=256, NeighborAddress=10.1.168.192, Neig
hborEvent=NegotiationDone, NeighborPreviousState=ExStart, NeighborCurrentState=E
xchange) 
<r1>
Mar 29 2023 16:45:57-08:00 r1 %%01OSPF/4/NBR_CHANGE_E(l)[11]:Neighbor changes ev
ent: neighbor status changed. (ProcessId=256, NeighborAddress=11.1.168.192, Neig
hborEvent=NegotiationDone, NeighborPreviousState=ExStart, NeighborCurrentState=E
xchange) 
<r1>
Mar 29 2023 16:45:57-08:00 r1 %%01OSPF/4/NBR_CHANGE_E(l)[12]:Neighbor changes ev
ent: neighbor status changed. (ProcessId=256, NeighborAddress=10.1.168.192, Neig
hborEvent=ExchangeDone, NeighborPreviousState=Exchange, NeighborCurrentState=Loa
ding) 
<r1>
Mar 29 2023 16:45:57-08:00 r1 %%01OSPF/4/NBR_CHANGE_E(l)[13]:Neighbor changes ev
ent: neighbor status changed. (ProcessId=256, NeighborAddress=11.1.168.192, Neig
hborEvent=ExchangeDone, NeighborPreviousState=Exchange, NeighborCurrentState=Loa
ding) 
<r1>
Mar 29 2023 16:45:57-08:00 r1 %%01OSPF/4/NBR_CHANGE_E(l)[14]:Neighbor changes ev
ent: neighbor status changed. (ProcessId=256, NeighborAddress=10.1.168.192, Neig
hborEvent=LoadingDone, NeighborPreviousState=Loading, NeighborCurrentState=Full)
 
<r1>
Mar 29 2023 16:45:57-08:00 r1 %%01OSPF/4/NBR_CHANGE_E(l)[15]:Neighbor changes ev
ent: neighbor status changed. (ProcessId=256, NeighborAddress=11.1.168.192, Neig
hborEvent=LoadingDone, NeighborPreviousState=Loading, NeighborCurrentState=Full)
 
<r1>sys
Enter system view, return user view with Ctrl+Z.
[r1]dis ospf p

	 OSPF Process 1 with Router ID 1.1.1.1
		 Neighbors 

 Area 0.0.0.0 interface 192.168.1.9(GigabitEthernet0/0/0)'s neighbors
 Router ID: 2.2.2.2          Address: 192.168.1.10    
   State: Full  Mode:Nbr is  Master  Priority: 1
   DR: 192.168.1.10  BDR: 192.168.1.11  MTU: 0    
   Dead timer due in 36  sec 
   Retrans timer interval: 0 
   Neighbor is up for 00:00:25     
   Authentication Sequence: [ 0 ] 

 Router ID: 3.3.3.3          Address: 192.168.1.11    
   State: Full  Mode:Nbr is  Master  Priority: 1
   DR: 192.168.1.10  BDR: 192.168.1.11  MTU: 0    
   Dead timer due in 32  sec 
   Retrans timer interval: 5 
   Neighbor is up for 00:00:25     
   Authentication Sequence: [ 0 ] 

发现为r2,需重置三台路由器

<r1>reset ospf process
Warning: The OSPF process will be reset. Continue? [Y/N]:y
Mar 29 2023 16:51:23-08:00 r1 %%01OSPF/3/NBR_CHG_DOWN(l)[67]:Neighbor event:neig
hbor state changed to Down. (ProcessId=256, NeighborAddress=2.2.2.2, NeighborEve
nt=KillNbr, NeighborPreviousState=Full, NeighborCurrentState=Down) 
<r1>
Mar 29 2023 16:51:23-08:00 r1 %%01OSPF/3/NBR_DOWN_REASON(l)[68]:Neighbor state l
eaves full or changed to Down. (ProcessId=256, NeighborRouterId=2.2.2.2, Neighbo
rAreaId=0, NeighborInterface=GigabitEthernet0/0/0,NeighborDownImmediate reason=N
eighbor Down Due to Kill Neighbor, NeighborDownPrimeReason=OSPF Process Reset, N
eighborChangeTime=2023-03-29 16:51:23-08:00) 
<r1>
Mar 29 2023 16:51:23-08:00 r1 %%01OSPF/3/NBR_CHG_DOWN(l)[69]:Neighbor event:neig
hbor state changed to Down. (ProcessId=256, NeighborAddress=3.3.3.3, NeighborEve
nt=KillNbr, NeighborPreviousState=Full, NeighborCurrentState=Down) 
<r1>
Mar 29 2023 16:51:23-08:00 r1 %%01OSPF/3/NBR_DOWN_REASON(l)[70]:Neighbor state l
eaves full or changed to Down. (ProcessId=256, NeighborRouterId=3.3.3.3, Neighbo
rAreaId=0, NeighborInterface=GigabitEthernet0/0/0,NeighborDownImmediate reason=N
eighbor Down Due to Kill Neighbor, NeighborDownPrimeReason=OSPF Process Reset, N
eighborChangeTime=2023-03-29 16:51:23-08:00) 
<r1>
Mar 29 2023 16:51:25-08:00 r1 %%01OSPF/4/NBR_CHANGE_E(l)[71]:Neighbor changes ev
ent: neighbor status changed. (ProcessId=256, NeighborAddress=11.1.168.192, Neig
hborEvent=HelloReceived, NeighborPreviousState=Down, NeighborCurrentState=Init) 

<r1>
Mar 29 2023 16:51:25-08:00 r1 %%01OSPF/4/NBR_CHANGE_E(l)[72]:Neighbor changes ev
ent: neighbor status changed. (ProcessId=256, NeighborAddress=11.1.168.192, Neig
hborEvent=2WayReceived, NeighborPreviousState=Init, NeighborCurrentState=2Way) 
<r1>
Mar 29 2023 16:51:30-08:00 r1 %%01OSPF/4/NBR_CHANGE_E(l)[73]:Neighbor changes ev
ent: neighbor status changed. (ProcessId=256, NeighborAddress=10.1.168.192, Neig
hborEvent=HelloReceived, NeighborPreviousState=Down, NeighborCurrentState=Init) 

<r1>
Mar 29 2023 16:51:30-08:00 r1 %%01OSPF/4/NBR_CHANGE_E(l)[74]:Neighbor changes ev
ent: neighbor status changed. (ProcessId=256, NeighborAddress=10.1.168.192, Neig
hborEvent=2WayReceived, NeighborPreviousState=Init, NeighborCurrentState=2Way) 
<r1>
Mar 29 2023 16:51:30-08:00 r1 %%01OSPF/4/NBR_CHANGE_E(l)[75]:Neighbor changes ev
ent: neighbor status changed. (ProcessId=256, NeighborAddress=10.1.168.192, Neig
hborEvent=AdjOk?, NeighborPreviousState=2Way, NeighborCurrentState=ExStart) 
<r1>
Mar 29 2023 16:51:30-08:00 r1 %%01OSPF/4/NBR_CHANGE_E(l)[76]:Neighbor changes ev
ent: neighbor status changed. (ProcessId=256, NeighborAddress=11.1.168.192, Neig
hborEvent=AdjOk?, NeighborPreviousState=2Way, NeighborCurrentState=ExStart) 
<r1>
Mar 29 2023 16:51:30-08:00 r1 %%01OSPF/4/NBR_CHANGE_E(l)[77]:Neighbor changes ev
ent: neighbor status changed. (ProcessId=256, NeighborAddress=11.1.168.192, Neig
hborEvent=NegotiationDone, NeighborPreviousState=ExStart, NeighborCurrentState=E
xchange) 
<r1>
Mar 29 2023 16:51:30-08:00 r1 %%01OSPF/4/NBR_CHANGE_E(l)[78]:Neighbor changes ev
ent: neighbor status changed. (ProcessId=256, NeighborAddress=10.1.168.192, Neig
hborEvent=NegotiationDone, NeighborPreviousState=ExStart, NeighborCurrentState=E
xchange) 
<r1>
Mar 29 2023 16:51:30-08:00 r1 %%01OSPF/4/NBR_CHANGE_E(l)[79]:Neighbor changes ev
ent: neighbor status changed. (ProcessId=256, NeighborAddress=10.1.168.192, Neig
hborEvent=ExchangeDone, NeighborPreviousState=Exchange, NeighborCurrentState=Loa
ding) 
<r1>
Mar 29 2023 16:51:30-08:00 r1 %%01OSPF/4/NBR_CHANGE_E(l)[80]:Neighbor changes ev
ent: neighbor status changed. (ProcessId=256, NeighborAddress=11.1.168.192, Neig
hborEvent=ExchangeDone, NeighborPreviousState=Exchange, NeighborCurrentState=Loa
ding) 
<r1>
Mar 29 2023 16:51:30-08:00 r1 %%01OSPF/4/NBR_CHANGE_E(l)[81]:Neighbor changes ev
ent: neighbor status changed. (ProcessId=256, NeighborAddress=11.1.168.192, Neig
hborEvent=LoadingDone, NeighborPreviousState=Loading, NeighborCurrentState=Full)
 
<r1>
Mar 29 2023 16:51:30-08:00 r1 %%01OSPF/4/NBR_CHANGE_E(l)[82]:Neighbor changes ev
ent: neighbor status changed. (ProcessId=256, NeighborAddress=10.1.168.192, Neig
hborEvent=LoadingDone, NeighborPreviousState=Loading, NeighborCurrentState=Full)

直至出现以下状况:

<r1>dis ospf p

	 OSPF Process 1 with Router ID 1.1.1.1
		 Neighbors 

 Area 0.0.0.0 interface 192.168.1.9(GigabitEthernet0/0/0)'s neighbors
 Router ID: 2.2.2.2          Address: 192.168.1.10    
   State: Full  Mode:Nbr is  Master  Priority: 1
   DR: 192.168.1.11  BDR: 192.168.1.10  MTU: 0    
   Dead timer due in 35  sec 
   Retrans timer interval: 5 
   Neighbor is up for 00:00:06     
   Authentication Sequence: [ 0 ] 

 Router ID: 3.3.3.3          Address: 192.168.1.11    
   State: Full  Mode:Nbr is  Master  Priority: 1
   DR: 192.168.1.11  BDR: 192.168.1.10  MTU: 0    
   Dead timer due in 33  sec 
   Retrans timer interval: 0 
   Neighbor is up for 00:00:06     
   Authentication Sequence: [ 0 ] 

调整优先级:

[r1]int g 0/0/0
[r1-GigabitEthernet0/0/0]ospf dr	
[r1-GigabitEthernet0/0/0]ospf dr-priority 5
[r1-GigabitEthernet0/0/0]q
[r2]int g 0/0/0
[r2-GigabitEthernet0/0/0]ospf dr	
[r2-GigabitEthernet0/0/0]ospf dr-priority 3
[r2-GigabitEthernet0/0/0]q

设置密文

[r3-GigabitEthernet0/0/1]ospf a	
[r3-GigabitEthernet0/0/1]ospf authentication-mode md5 10 cipher ******
[r3-GigabitEthernet0/0/1]
Mar 29 2023 17:02:53-08:00 r3 %%01OSPF/3/NBR_CHG_DOWN(l)[66]:Neighbor event:neig
hbor state changed to Down. (ProcessId=256, NeighborAddress=4.4.4.4, NeighborEve
nt=InactivityTimer, NeighborPreviousState=Full, NeighborCurrentState=Down) 
[r3-GigabitEthernet0/0/1]
Mar 29 2023 17:02:53-08:00 r3 %%01OSPF/3/NBR_DOWN_REASON(l)[67]:Neighbor state l
eaves full or changed to Down. (ProcessId=256, NeighborRouterId=4.4.4.4, Neighbo
rAreaId=16777216, NeighborInterface=GigabitEthernet0/0/1,NeighborDownImmediate r
eason=Neighbor Down Due to Inactivity, NeighborDownPrimeReason=Hello Not Seen, N
eighborChangeTime=2023-03-29 17:02:53-08:00) 
[r3-GigabitEthernet0/0/1]
Mar 29 2023 17:03:01-08:00 r3 %%01OSPF/4/NBR_CHANGE_E(l)[68]:Neighbor changes ev
ent: neighbor status changed. (ProcessId=256, NeighborAddress=2.1.168.192, Neigh
borEvent=HelloReceived, NeighborPreviousState=Down, NeighborCurrentState=Init) 
[r3-GigabitEthernet0/0/1]
Mar 29 2023 17:03:01-08:00 r3 %%01OSPF/4/NBR_CHANGE_E(l)[69]:Neighbor changes ev
ent: neighbor status changed. (ProcessId=256, NeighborAddress=2.1.168.192, Neigh
borEvent=2WayReceived, NeighborPreviousState=Init, NeighborCurrentState=ExStart)
 
[r3-GigabitEthernet0/0/1]
Mar 29 2023 17:03:01-08:00 r3 %%01OSPF/4/NBR_CHANGE_E(l)[70]:Neighbor changes ev
ent: neighbor status changed. (ProcessId=256, NeighborAddress=2.1.168.192, Neigh
borEvent=NegotiationDone, NeighborPreviousState=ExStart, NeighborCurrentState=Ex
change) 
[r3-GigabitEthernet0/0/1]
Mar 29 2023 17:03:01-08:00 r3 %%01OSPF/4/NBR_CHANGE_E(l)[71]:Neighbor changes ev
ent: neighbor status changed. (ProcessId=256, NeighborAddress=2.1.168.192, Neigh
borEvent=ExchangeDone, NeighborPreviousState=Exchange, NeighborCurrentState=Load
ing) 
[r3-GigabitEthernet0/0/1]
Mar 29 2023 17:03:01-08:00 r3 %%01OSPF/4/NBR_CHANGE_E(l)[72]:Neighbor changes ev
ent: neighbor status changed. (ProcessId=256, NeighborAddress=2.1.168.192, Neigh
borEvent=LoadingDone, NeighborPreviousState=Loading, NeighborCurrentState=Full) 

[r3-GigabitEthernet0/0/1]
Mar 29 2023 17:04:48-08:00 r3 %%01OSPF/3/NBR_DOWN_REASON(l)[73]:Neighbor state l
eaves full or changed to Down. (ProcessId=256, NeighborRouterId=4.4.4.4, Neighbo
rAreaId=16777216, NeighborInterface=GigabitEthernet0/0/1,NeighborDownImmediate r
eason=Neighbor Down Due to 1-Wayhello Received, NeighborDownPrimeReason=1-Wayhel
lo Received, NeighborChangeTime=2023-03-29 17:04:48-08:00) 
[r3-GigabitEthernet0/0/1]
Mar 29 2023 17:04:48-08:00 r3 %%01OSPF/4/NBR_CHANGE_E(l)[74]:Neighbor changes ev
ent: neighbor status changed. (ProcessId=256, NeighborAddress=2.1.168.192, Neigh
borEvent=1-Way, NeighborPreviousState=Full, NeighborCurrentState=Init) 
[r3-GigabitEthernet0/0/1]
Mar 29 2023 17:04:54-08:00 r3 %%01OSPF/4/NBR_CHANGE_E(l)[75]:Neighbor changes ev
ent: neighbor status changed. (ProcessId=256, NeighborAddress=2.1.168.192, Neigh
borEvent=2WayReceived, NeighborPreviousState=Init, NeighborCurrentState=ExStart)
 
[r3-GigabitEthernet0/0/1]
Mar 29 2023 17:04:54-08:00 r3 %%01OSPF/4/NBR_CHANGE_E(l)[76]:Neighbor changes ev
ent: neighbor status changed. (ProcessId=256, NeighborAddress=2.1.168.192, Neigh
borEvent=NegotiationDone, NeighborPreviousState=ExStart, NeighborCurrentState=Ex
change) 
[r3-GigabitEthernet0/0/1]
Mar 29 2023 17:04:54-08:00 r3 %%01OSPF/4/NBR_CHANGE_E(l)[77]:Neighbor changes ev
ent: neighbor status changed. (ProcessId=256, NeighborAddress=2.1.168.192, Neigh
borEvent=ExchangeDone, NeighborPreviousState=Exchange, NeighborCurrentState=Load
ing) 
[r3-GigabitEthernet0/0/1]
Mar 29 2023 17:04:54-08:00 r3 %%01OSPF/4/NBR_CHANGE_E(l)[78]:Neighbor changes ev
ent: neighbor status changed. (ProcessId=256, NeighborAddress=2.1.168.192, Neigh
borEvent=LoadingDone, NeighborPreviousState=Loading, NeighborCurrentState=Full) 
[r4]int g 0/0/0
[r4-GigabitEthernet0/0/0]ospf authentication-mode md5 10 cipher ******
[r4-GigabitEthernet0/0/0]
Mar 29 2023 17:03:01-08:00 r4 %%01OSPF/3/NBR_DOWN_REASON(l)[0]:Neighbor state le
aves full or changed to Down. (ProcessId=256, NeighborRouterId=3.3.3.3, Neighbor
AreaId=16777216, NeighborInterface=GigabitEthernet0/0/0,NeighborDownImmediate re
ason=Neighbor Down Due to SequenceNum Mismatch, NeighborDownPrimeReason=M,I,MS b
it or SequenceNum Incorrect, NeighborChangeTime=2023-03-29 17:03:01-08:00) 
[r4-GigabitEthernet0/0/0]
Mar 29 2023 17:03:01-08:00 r4 %%01OSPF/4/NBR_CHANGE_E(l)[1]:Neighbor changes eve
nt: neighbor status changed. (ProcessId=256, NeighborAddress=1.1.168.192, Neighb
orEvent=SeqNumberMismatch, NeighborPreviousState=Full, NeighborCurrentState=ExSt
art) 
[r4-GigabitEthernet0/0/0]
Mar 29 2023 17:03:01-08:00 r4 %%01OSPF/4/NBR_CHANGE_E(l)[2]:Neighbor changes eve
nt: neighbor status changed. (ProcessId=256, NeighborAddress=1.1.168.192, Neighb
orEvent=NegotiationDone, NeighborPreviousState=ExStart, NeighborCurrentState=Exc
hange) 
[r4-GigabitEthernet0/0/0]
Mar 29 2023 17:03:01-08:00 r4 %%01OSPF/4/NBR_CHANGE_E(l)[3]:Neighbor changes eve
nt: neighbor status changed. (ProcessId=256, NeighborAddress=1.1.168.192, Neighb
orEvent=ExchangeDone, NeighborPreviousState=Exchange, NeighborCurrentState=Loadi
ng) 
[r4-GigabitEthernet0/0/0]
Mar 29 2023 17:03:01-08:00 r4 %%01OSPF/4/NBR_CHANGE_E(l)[4]:Neighbor changes eve
nt: neighbor status changed. (ProcessId=256, NeighborAddress=1.1.168.192, Neighb
orEvent=LoadingDone, NeighborPreviousState=Loading, NeighborCurrentState=Full) 
[r4-GigabitEthernet0/0/0]q
[r4]int g 0/0/1
[r4-GigabitEthernet0/0/1]ospf authentication-mode md5 6 cipher ******
[r4-GigabitEthernet0/0/1]q
[r4]q
<r4>re	
<r4>reboot
<r4>refresh
<r4>rename
<r4>reset ospf p
Warning: The OSPF process will be reset. Continue? [Y/N]:n
<r4>reset ospf p
Warning: The OSPF process will be reset. Continue? [Y/N]:y
Mar 29 2023 17:04:48-08:00 r4 %%01OSPF/3/NBR_CHG_DOWN(l)[5]:Neighbor event:neigh
bor state changed to Down. (ProcessId=256, NeighborAddress=3.3.3.3, NeighborEven
t=KillNbr, NeighborPreviousState=Full, NeighborCurrentState=Down) 
<r4>
<r4>
Mar 29 2023 17:04:48-08:00 r4 %%01OSPF/3/NBR_DOWN_REASON(l)[6]:Neighbor state le
aves full or changed to Down. (ProcessId=256, NeighborRouterId=3.3.3.3, Neighbor
AreaId=16777216, NeighborInterface=GigabitEthernet0/0/0,NeighborDownImmediate re
ason=Neighbor Down Due to Kill Neighbor, NeighborDownPrimeReason=OSPF Process Re
set, NeighborChangeTime=2023-03-29 17:04:48-08:00) 
<r4>
Mar 29 2023 17:04:48-08:00 r4 %%01OSPF/3/NBR_CHG_DOWN(l)[7]:Neighbor event:neigh
bor state changed to Down. (ProcessId=256, NeighborAddress=5.5.5.5, NeighborEven
t=KillNbr, NeighborPreviousState=Full, NeighborCurrentState=Down) 
<r4>
Mar 29 2023 17:04:48-08:00 r4 %%01OSPF/3/NBR_DOWN_REASON(l)[8]:Neighbor state le
aves full or changed to Down. (ProcessId=256, NeighborRouterId=5.5.5.5, Neighbor
AreaId=16777216, NeighborInterface=GigabitEthernet0/0/1,NeighborDownImmediate re
ason=Neighbor Down Due to Kill Neighbor, NeighborDownPrimeReason=OSPF Process Re
set, NeighborChangeTime=2023-03-29 17:04:48-08:00) 
<r4>
Mar 29 2023 17:04:54-08:00 r4 %%01OSPF/4/NBR_CHANGE_E(l)[9]:Neighbor changes eve
nt: neighbor status changed. (ProcessId=256, NeighborAddress=1.1.168.192, Neighb
orEvent=HelloReceived, NeighborPreviousState=Down, NeighborCurrentState=Init) 
<r4>
Mar 29 2023 17:04:54-08:00 r4 %%01OSPF/4/NBR_CHANGE_E(l)[10]:Neighbor changes ev
ent: neighbor status changed. (ProcessId=256, NeighborAddress=1.1.168.192, Neigh
borEvent=2WayReceived, NeighborPreviousState=Init, NeighborCurrentState=2Way) 
<r4>
Mar 29 2023 17:04:54-08:00 r4 %%01OSPF/4/NBR_CHANGE_E(l)[11]:Neighbor changes ev
ent: neighbor status changed. (ProcessId=256, NeighborAddress=1.1.168.192, Neigh
borEvent=AdjOk?, NeighborPreviousState=2Way, NeighborCurrentState=ExStart) 
<r4>
Mar 29 2023 17:04:54-08:00 r4 %%01OSPF/4/NBR_CHANGE_E(l)[12]:Neighbor changes ev
ent: neighbor status changed. (ProcessId=256, NeighborAddress=1.1.168.192, Neigh
borEvent=NegotiationDone, NeighborPreviousState=ExStart, NeighborCurrentState=Ex
change) 
<r4>
Mar 29 2023 17:04:54-08:00 r4 %%01OSPF/4/NBR_CHANGE_E(l)[13]:Neighbor changes ev
ent: neighbor status changed. (ProcessId=256, NeighborAddress=1.1.168.192, Neigh
borEvent=ExchangeDone, NeighborPreviousState=Exchange, NeighborCurrentState=Load
ing) 
<r4>d
Mar 29 2023 17:04:54-08:00 r4 %%01OSPF/4/NBR_CHANGE_E(l)[14]:Neighbor changes ev
ent: neighbor status changed. (ProcessId=256, NeighborAddress=1.1.168.192, Neigh
borEvent=LoadingDone, NeighborPreviousState=Loading, NeighborCurrentState=Full) 

<r4>dis o
Mar 29 2023 17:04:56-08:00 r4 %%01OSPF/4/NBR_CHANGE_E(l)[15]:Neighbor changes ev
ent: neighbor status changed. (ProcessId=256, NeighborAddress=6.1.168.192, Neigh
borEvent=HelloReceived, NeighborPreviousState=Down, NeighborCurrentState=Init) 
<r4>dis o
Mar 29 2023 17:04:56-08:00 r4 %%01OSPF/4/NBR_CHANGE_E(l)[16]:Neighbor changes ev
ent: neighbor status changed. (ProcessId=256, NeighborAddress=6.1.168.192, Neigh
borEvent=2WayReceived, NeighborPreviousState=Init, NeighborCurrentState=2Way) 
<r4>dis o
Mar 29 2023 17:04:56-08:00 r4 %%01OSPF/4/NBR_CHANGE_E(l)[17]:Neighbor changes ev
ent: neighbor status changed. (ProcessId=256, NeighborAddress=6.1.168.192, Neigh
borEvent=AdjOk?, NeighborPreviousState=2Way, NeighborCurrentState=ExStart) 
<r4>dis o
Mar 29 2023 17:04:56-08:00 r4 %%01OSPF/4/NBR_CHANGE_E(l)[18]:Neighbor changes ev
ent: neighbor status changed. (ProcessId=256, NeighborAddress=6.1.168.192, Neigh
borEvent=NegotiationDone, NeighborPreviousState=ExStart, NeighborCurrentState=Ex
change) 
<r4>dis os
Mar 29 2023 17:04:56-08:00 r4 %%01OSPF/4/NBR_CHANGE_E(l)[19]:Neighbor changes ev
ent: neighbor status changed. (ProcessId=256, NeighborAddress=6.1.168.192, Neigh
borEvent=ExchangeDone, NeighborPreviousState=Exchange, NeighborCurrentState=Load
ing) 
<r4>dis os
Mar 29 2023 17:04:57-08:00 r4 %%01OSPF/4/NBR_CHANGE_E(l)[20]:Neighbor changes ev
ent: neighbor status changed. (ProcessId=256, NeighborAddress=6.1.168.192, Neigh
borEvent=LoadingDone, NeighborPreviousState=Loading, NeighborCurrentState=Full) 

<r4>dis ospf p b

	 OSPF Process 1 with Router ID 4.4.4.4
		  Peer Statistic Information
 ----------------------------------------------------------------------------
 Area Id          Interface                        Neighbor id      State    
 0.0.0.1          GigabitEthernet0/0/0             3.3.3.3          Full        
 0.0.0.1          GigabitEthernet0/0/1             5.5.5.5          Full        
 ----------------------------------------------------------------------------

测试:

<r1>display ip routing-table protocol ospf 
Route Flags: R - relay, D - download to fib
------------------------------------------------------------------------------
Public routing table : OSPF
         Destinations : 4        Routes : 4        

OSPF routing table status : <Active>
         Destinations : 4        Routes : 4

Destination/Mask    Proto   Pre  Cost      Flags NextHop         Interface

        0.0.0.0/0   O_ASE   150  1           D   192.168.1.11    GigabitEthernet
0/0/0
    192.168.1.0/30  OSPF    10   2           D   192.168.1.11    GigabitEthernet
0/0/0
    192.168.1.4/30  OSPF    10   3           D   192.168.1.11    GigabitEthernet
0/0/0
  192.168.1.129/32  OSPF    10   1           D   192.168.1.10    GigabitEthernet
0/0/0

OSPF routing table status : <Inactive>
         Destinations : 0        Routes : 0

<r1>sys
Enter system view, return user view with Ctrl+Z.
[r1]ping -a 192.168.1.65 192.168.1.193
  PING 192.168.1.193: 56  data bytes, press CTRL_C to break
    Reply from 192.168.1.193: bytes=56 Sequence=1 ttl=253 time=60 ms
    Reply from 192.168.1.193: bytes=56 Sequence=2 ttl=253 time=70 ms
    Reply from 192.168.1.193: bytes=56 Sequence=3 ttl=253 time=70 ms
    Reply from 192.168.1.193: bytes=56 Sequence=4 ttl=253 time=40 ms
    Reply from 192.168.1.193: bytes=56 Sequence=5 ttl=253 time=70 ms

  --- 192.168.1.193 ping statistics ---
    5 packet(s) transmitted
    5 packet(s) received
    0.00% packet loss
    round-trip min/avg/max = 40/62/70 ms

8.1.11 GigabitEthernet
0/0/0
192.168.1.129/32 OSPF 10 1 D 192.168.1.10 GigabitEthernet
0/0/0

OSPF routing table status :
Destinations : 0 Routes : 0

sys
Enter system view, return user view with Ctrl+Z.
[r1]ping -a 192.168.1.65 192.168.1.193
PING 192.168.1.193: 56 data bytes, press CTRL_C to break
Reply from 192.168.1.193: bytes=56 Sequence=1 ttl=253 time=60 ms
Reply from 192.168.1.193: bytes=56 Sequence=2 ttl=253 time=70 ms
Reply from 192.168.1.193: bytes=56 Sequence=3 ttl=253 time=70 ms
Reply from 192.168.1.193: bytes=56 Sequence=4 ttl=253 time=40 ms
Reply from 192.168.1.193: bytes=56 Sequence=5 ttl=253 time=70 ms

— 192.168.1.193 ping statistics —
5 packet(s) transmitted
5 packet(s) received
0.00% packet loss
round-trip min/avg/max = 40/62/70 ms


  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值