ospf综合实验

实验要求:

1、R4为ISP,其上只配置IP地址;R4与其他所直连设备间均使用公有IP;

2、R3-R5、R6、R7为MGRE环境,R3为中心站点;
3、整个OSPF环境IP基于172.16.0.0/16划分;除了R12有两个环回,其他路由器均有一个环回IP
4、所有设备均可访问R4的环回;
5、减少LSA的更新量,加快收敛,保障更新安全;
6、全网可达;

第一步:进行ip划分和配置:(详细接口ip和routerID等见下图)

​​​​​​​

开始配置ip

R1:
 <R1>sy
Enter system view, return user view with Ctrl+Z.
[R1]int g 0/0/0
[R1-GigabitEthernet0/0/0]ip ad    
[R1-GigabitEthernet0/0/0]ip address 172.16.33.1 24
Apr 16 2024 18:40:12-08:00 R1 %%01IFNET/4/LINK_STATE(l)[0]:The line protocol IP 
on the interface GigabitEthernet0/0/0 has entered the UP state. 
[R1-GigabitEthernet0/0/0]q
[R1]int l 0
[R1-LoopBack0]ip ad    
[R1-LoopBack0]ip address 172.16.34.1 24
[R1-LoopBack0]q
[R1]
R2:
<R2>sy
Enter system view, return user view with Ctrl+Z.
[R2]int g 0/0/0
[R2-GigabitEthernet0/0/0]ip ad	
[R2-GigabitEthernet0/0/0]ip address 172.16.33.2 24
Apr 16 2024 18:42:08-08:00 R2 %%01IFNET/4/LINK_STATE(l)[0]:The line protocol IP 
on the interface GigabitEthernet0/0/0 has entered the UP state. 
[R2-GigabitEthernet0/0/0]q
[R2]int l 0
[R2-LoopBack0]ip ad	
[R2-LoopBack0]ip address 172.16.35.1 24
[R2-LoopBack0]q
[R2]
R3:
<R3>sy
Enter system view, return user view with Ctrl+Z.
[R3]int g 0/0/0
[R3-GigabitEthernet0/0/0]ip ad	
[R3-GigabitEthernet0/0/0]ip address 172.16.33.3 24
Apr 16 2024 18:43:12-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 l 0
[R3-LoopBack0]ip ad	
[R3-LoopBack0]ip address 192.16.36.1 24
[R3-LoopBack0]q
[R3]int s	
[R3]int Serial 4/0/0
[R3-Serial4/0/0]ip ad	
[R3-Serial4/0/0]ip address 34.0.0.3 24
[R3-Serial4/0/0]q
[R3]
R4:
<R4>sy
Enter system view, return user view with Ctrl+Z.
[R4]int s 4/0/0
[R4-Serial4/0/0]ip ad	
[R4-Serial4/0/0]ip address 34.0.0.4 24
[R4-Serial4/0/0]
Apr 16 2024 18:45:16-08:00 R4 %%01IFNET/4/LINK_STATE(l)[0]:The line protocol PPP
 IPCP on the interface Serial4/0/0 has entered the UP state. 
[R4-Serial4/0/0]q
[R4]int s 4/0/1
[R4-Serial4/0/1]ip ad	
[R4-Serial4/0/1]ip address 45.0.0.4 24
[R4-Serial4/0/1]q
[R4]int s 3/0/0
[R4-Serial3/0/0]ip ad	
[R4-Serial3/0/0]ip address 46.0.0.4 24
[R4-Serial3/0/0]q
[R4]int g 0/0/0
[R4-GigabitEthernet0/0/0]ip ad	
[R4-GigabitEthernet0/0/0]ip address 47.0.0.4 24
[R4-GigabitEthernet0/0/0]
Apr 16 2024 18:46:27-08:00 R4 %%01IFNET/4/LINK_STATE(l)[1]:The line protocol IP 
on the interface GigabitEthernet0/0/0 has entered the UP state. 
[R4-GigabitEthernet0/0/0]q
[R4]
[R4]int l 0
[R4-LoopBack0]ip ad	
[R4-LoopBack0]ip address 172.16.2.1 24
[R4-LoopBack0]q
[R4]
R5:
<R5>sy
Enter system view, return user view with Ctrl+Z.
[R5]int s 4/0/0
[R5-Serial4/0/0]ip ad	
[R5-Serial4/0/0]ip address 45.0.0.5 24
[R5-Serial4/0/0]
Apr 16 2024 18:47:08-08:00 R5 %%01IFNET/4/LINK_STATE(l)[0]:The line protocol PPP
 IPCP on the interface Serial4/0/0 has entered the UP state. 
[R5-Serial4/0/0]q
[R5]
[R5]int l 0
[R5-LoopBack0]ip ad	
[R5-LoopBack0]ip address 172.16.3.1 24
[R5-LoopBack0]q
[R5]
R6:
<R6>sy
Enter system view, return user view with Ctrl+Z.
[R6]int s 4/0/0
[R6-Serial4/0/0]ip ad	
[R6-Serial4/0/0]ip address 46.0.0.6 24
[R6-Serial4/0/0]
Apr 16 2024 18:47:43-08:00 R6 %%01IFNET/4/LINK_STATE(l)[0]:The line protocol PPP
 IPCP on the interface Serial4/0/0 has entered the UP state. 
[R6-Serial4/0/0]q
[R6]int g 0/0/0
[R6-GigabitEthernet0/0/0]ip ad	
[R6-GigabitEthernet0/0/0]ip address 172.16.65.1 30
Apr 16 2024 18:48:07-08:00 R6 %%01IFNET/4/LINK_STATE(l)[1]:The line protocol IP 
on the interface GigabitEthernet0/0/0 has entered the UP state. 
[R6-GigabitEthernet0/0/0]q
[R6]
[R6]int l 0
[R6-LoopBack0]ip ad	
[R6-LoopBack0]ip address 172.16.4.1 24
[R6-LoopBack0]q
[R6]
R7:
<R7>sy
Enter system view, return user view with Ctrl+Z.
[R7]int g 0/0/0
[R7-GigabitEthernet0/0/0]ip ad	
[R7-GigabitEthernet0/0/0]ip address 47.0.0.7 24
Apr 16 2024 18:48:45-08:00 R7 %%01IFNET/4/LINK_STATE(l)[0]:The line protocol IP 
on the interface GigabitEthernet0/0/0 has entered the UP state. 
[R7-GigabitEthernet0/0/0]q
[R7]int g 0/0/1
[R7-GigabitEthernet0/0/1]ip ad	
[R7-GigabitEthernet0/0/1]ip address 172.16.97.1 30
Apr 16 2024 18:48:58-08:00 R7 %%01IFNET/4/LINK_STATE(l)[1]:The line protocol IP 
on the interface GigabitEthernet0/0/1 has entered the UP state. 
[R7-GigabitEthernet0/0/1]q
[R7]
[R7]int l 0
[R7-LoopBack0]ip ad	
[R7-LoopBack0]ip address 172.16.5.1 24
[R7-LoopBack0]q
[R7]
R8:
<R8>sy
Enter system view, return user view with Ctrl+Z.
[R8]int g 0/0/0
[R8-GigabitEthernet0/0/0]ip ad	
[R8-GigabitEthernet0/0/0]ip address 172.16.97.2 30
Apr 16 2024 18:52:06-08:00 R8 %%01IFNET/4/LINK_STATE(l)[0]:The line protocol IP 
on the interface GigabitEthernet0/0/0 has entered the UP state. 
[R8-GigabitEthernet0/0/0]q
[R8]int g 0/0/1
[R8-GigabitEthernet0/0/1]ip ad	
[R8-GigabitEthernet0/0/1]ip address 172.16.97.5 30
Apr 16 2024 18:52:25-08:00 R8 %%01IFNET/4/LINK_STATE(l)[1]:The line protocol IP 
on the interface GigabitEthernet0/0/1 has entered the UP state. 
[R8-GigabitEthernet0/0/1]q
[R8]int l 0
[R8-LoopBack0]ip ad	
[R8-LoopBack0]ip address 172.16.98.1 24
[R8-LoopBack0]q
[R8]
R9:
<R9>sy
Enter system view, return user view with Ctrl+Z.
[R9]int g 0/0/0
[R9-GigabitEthernet0/0/0]ip ad	
[R9-GigabitEthernet0/0/0]ip address 172.16.97.6 30
Apr 16 2024 18:53:29-08:00 R9 %%01IFNET/4/LINK_STATE(l)[0]:The line protocol IP 
on the interface GigabitEthernet0/0/0 has entered the UP state. 
[R9-GigabitEthernet0/0/0]q
[R9]int g 0/0/1
[R9-GigabitEthernet0/0/1]ip ad	
[R9-GigabitEthernet0/0/1]ip address 172.16.129.9 30
Apr 16 2024 18:53:46-08:00 R9 %%01IFNET/4/LINK_STATE(l)[1]:The line protocol IP 
on the interface GigabitEthernet0/0/1 has entered the UP state. 
[R9-GigabitEthernet0/0/1]q
[R9]int l 0
[R9-LoopBack0]ip ad	
[R9-LoopBack0]ip address 172.16.130.1 24
[R9-LoopBack0]q
[R9]
R10:
<R10>sy
Enter system view, return user view with Ctrl+Z.
[R10]int g 0/0/0
[R10-GigabitEthernet0/0/0]ip ad	
[R10-GigabitEthernet0/0/0]ip address 172.16.129.10 30
[R10-GigabitEthernet0/0/0]
Apr 16 2024 18:54:35-08:00 R10 %%01IFNET/4/LINK_STATE(l)[0]:The line protocol IP
 on the interface GigabitEthernet0/0/0 has entered the UP state. 
[R10-GigabitEthernet0/0/0]q
[R10]int l 0
[R10-LoopBack0]ip ad	
[R10-LoopBack0]ip address 172.16.131.1 24
[R10-LoopBack0]q
[R10]
R11:
<R11>sy
Enter system view, return user view with Ctrl+Z.
[R11]int g 0/0/0
[R11-GigabitEthernet0/0/0]ip ad	
[R11-GigabitEthernet0/0/0]ip address 172.16.65.2 30
Apr 16 2024 18:55:53-08:00 R11 %%01IFNET/4/LINK_STATE(l)[0]:The line protocol IP
 on the interface GigabitEthernet0/0/0 has entered the UP state. 
[R11-GigabitEthernet0/0/0]q
[R11]int g 0/0/1
[R11-GigabitEthernet0/0/1]ip ad	
[R11-GigabitEthernet0/0/1]ip address 172.16.65.5 30
Apr 16 2024 18:56:14-08:00 R11 %%01IFNET/4/LINK_STATE(l)[1]:The line protocol IP
 on the interface GigabitEthernet0/0/1 has entered the UP state. 
[R11-GigabitEthernet0/0/1]q
[R11]int l 0
[R11-LoopBack0]ip ad	
[R11-LoopBack0]ip address 172.16.66.1 24
[R11-LoopBack0]q
[R11]
R12:
<R12>sy
Enter system view, return user view with Ctrl+Z.
[R12]int g 0/0/0
[R12-GigabitEthernet0/0/0]ip ad	
[R12-GigabitEthernet0/0/0]ip address 172.16.65.6 30
Apr 16 2024 18:57:07-08:00 R12 %%01IFNET/4/LINK_STATE(l)[0]:The line protocol IP
 on the interface GigabitEthernet0/0/0 has entered the UP state. 
[R12-GigabitEthernet0/0/0]q
[R12]int l 0
[R12-LoopBack0]ip ad	
[R12-LoopBack0]ip address 172.16.160.1 24
[R12-LoopBack0]q
[R12]int l 1
[R12-LoopBack1]ip ad	
[R12-LoopBack1]ip address 172.16.161.1 24
[R12-LoopBack1]q
[R12]

第二步:(实现公网通,需要在area 0 中将几个路由器配置缺省)

R3:

<R3>sy
Enter system view, return user view with Ctrl+Z.
[R3]ip rou	
[R3]ip route
[R3]ip route-static 0.0.0.0 0 34.0.0.4
[R3]

R5:

<R5>sy
Enter system view, return user view with Ctrl+Z.
[R5]ip rou	
[R5]ip route
[R5]ip route-static 0.0.0.0 0 45.0.0.4
[R5]

R6:

<R6>sy
Enter system view, return user view with Ctrl+Z.
[R6]ip rou	
[R6]ip route
[R6]ip route-static
[R6]ip route
[R6]ip route-static 0.0.0.0 0 46.0.0.4 
[R6]

R7:

<R7>sy
Enter system view, return user view with Ctrl+Z.
[R7]ip rou	
[R7]ip route
[R7]ip route-static 0.0.0.0 0 47.0.0.4
[R7]

第三步:创建OSPF区域

区域1

R1:

<R1>sys
Enter system view, return user view with Ctrl+Z.
[R1]os	
[R1]ospf rou	
[R1]ospf router-id 1.1.1.1
[R1-ospf-1]a	
[R1-ospf-1]area 1
[R1-ospf-1-area-0.0.0.1]ne	
[R1-ospf-1-area-0.0.0.1]network 0.0.0.0 255.255.255.255
[R1-ospf-1-area-0.0.0.1]q
[R1-ospf-1]

R2:

<R2>sys
Enter system view, return user view with Ctrl+Z.
[R2]op	
[R2]os	
[R2]ospf rou	
[R2]ospf router-id 
[R2]ospf router-id 2.2.2.2
[R2-ospf-1]a 1
[R2-ospf-1-area-0.0.0.1]ne	
[R2-ospf-1-area-0.0.0.1]network 0.0.0.0 255.255.255.255
[R2-ospf-1-area-0.0.0.1]q
[R2-ospf-1]

R3:

[R3]os	
[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]ne	
[R3-ospf-1-area-0.0.0.1]network 172.16.33.0 0.0.0.255
[R3-ospf-1-area-0.0.0.1]
Apr 16 2024 19:17:06-08:00 R3 %%01OSPF/4/NBR_CHANGE_E(l)[0]:Neighbor changes eve
nt: neighbor status changed. (ProcessId=256, NeighborAddress=1.33.16.172, Neighb
orEvent=HelloReceived, NeighborPreviousState=Down, NeighborCurrentState=Init) 
[R3-ospf-1-area-0.0.0.1]
Apr 16 2024 19:17:06-08:00 R3 %%01OSPF/4/NBR_CHANGE_E(l)[1]:Neighbor changes eve
nt: neighbor status changed. (ProcessId=256, NeighborAddress=1.33.16.172, Neighb
orEvent=2WayReceived, NeighborPreviousState=Init, NeighborCurrentState=2Way) 
[R3-ospf-1-area-0.0.0.1]ne	
[R3-ospf-1-area-0.0.0.1]network 
Apr 16 2024 19:17:12-08:00 R3 %%01OSPF/4/NBR_CHANGE_E(l)[2]:Neighbor changes eve
nt: neighbor status changed. (ProcessId=256, NeighborAddress=2.33.16.172, Neighb
orEvent=HelloReceived, NeighborPreviousState=Down, NeighborCurrentState=Init) 
[R3-ospf-1-area-0.0.0.1]network 
Apr 16 2024 19:17:12-08:00 R3 %%01OSPF/4/NBR_CHANGE_E(l)[3]:Neighbor changes eve
nt: neighbor status changed. (ProcessId=256, NeighborAddress=2.33.16.172, Neighb
orEvent=2WayReceived, NeighborPreviousState=Init, NeighborCurrentState=2Way) 
[R3-ospf-1-area-0.0.0.1]network 
Apr 16 2024 19:17:12-08:00 R3 %%01OSPF/4/NBR_CHANGE_E(l)[4]:Neighbor changes eve
nt: neighbor status changed. (ProcessId=256, NeighborAddress=1.33.16.172, Neighb
orEvent=AdjOk?, NeighborPreviousState=2Way, NeighborCurrentState=ExStart) 
[R3-ospf-1-area-0.0.0.1]network 
Apr 16 2024 19:17:12-08:00 R3 %%01OSPF/4/NBR_CHANGE_E(l)[5]:Neighbor changes eve
nt: neighbor status changed. (ProcessId=256, NeighborAddress=2.33.16.172, Neighb
orEvent=AdjOk?, NeighborPreviousState=2Way, NeighborCurrentState=ExStart) 
[R3-ospf-1-area-0.0.0.1]network 
Apr 16 2024 19:17:12-08:00 R3 %%01OSPF/4/NBR_CHANGE_E(l)[6]:Neighbor changes eve
nt: neighbor status changed. (ProcessId=256, NeighborAddress=1.33.16.172, Neighb
orEvent=NegotiationDone, NeighborPreviousState=ExStart, NeighborCurrentState=Exc
hange) 
[R3-ospf-1-area-0.0.0.1]network 
Apr 16 2024 19:17:12-08:00 R3 %%01OSPF/4/NBR_CHANGE_E(l)[7]:Neighbor changes eve
nt: neighbor status changed. (ProcessId=256, NeighborAddress=2.33.16.172, Neighb
orEvent=NegotiationDone, NeighborPreviousState=ExStart, NeighborCurrentState=Exc
hange) 
[R3-ospf-1-area-0.0.0.1]network 
Apr 16 2024 19:17:12-08:00 R3 %%01OSPF/4/NBR_CHANGE_E(l)[8]:Neighbor changes eve
nt: neighbor status changed. (ProcessId=256, NeighborAddress=1.33.16.172, Neighb
orEvent=ExchangeDone, NeighborPreviousState=Exchange, NeighborCurrentState=Loadi
ng) 
[R3-ospf-1-area-0.0.0.1]network 
Apr 16 2024 19:17:12-08:00 R3 %%01OSPF/4/NBR_CHANGE_E(l)[9]:Neighbor changes eve
nt: neighbor status changed. (ProcessId=256, NeighborAddress=1.33.16.172, Neighb
orEvent=LoadingDone, NeighborPreviousState=Loading, NeighborCurrentState=Full) 
[R3-ospf-1-area-0.0.0.1]network 
Apr 16 2024 19:17:12-08:00 R3 %%01OSPF/4/NBR_CHANGE_E(l)[10]:Neighbor changes ev
ent: neighbor status changed. (ProcessId=256, NeighborAddress=2.33.16.172, Neigh
borEvent=ExchangeDone, NeighborPreviousState=Exchange, NeighborCurrentState=Load
ing) 
[R3-ospf-1-area-0.0.0.1]network 
Apr 16 2024 19:17:12-08:00 R3 %%01OSPF/4/NBR_CHANGE_E(l)[11]:Neighbor changes ev
ent: neighbor status changed. (ProcessId=256, NeighborAddress=2.33.16.172, Neigh
borEvent=LoadingDone, NeighborPreviousState=Loading, NeighborCurrentState=Full) 
[R3-ospf-1-area-0.0.0.1]network 172.16.36.0 0.0.0.255
[R3-ospf-1-area-0.0.0.1]
区域0

R5:

[R5]os	
[R5]ospf 1 rou	
[R5]ospf 1 router-id 5.5.5.5
[R5-ospf-1]ne	
[R5-ospf-1]a 0
[R5-ospf-1-area-0.0.0.0]ne	
[R5-ospf-1-area-0.0.0.0]network 172.16.3.0 0.0.0.255
[R5-ospf-1-area-0.0.0.0]

R6:

<R6>sy
Enter system view, return user view with Ctrl+Z.
[R6]osp	
[R6]ospf 1 rou	
[R6]ospf 1 router-id 6.6.6.6
[R6-ospf-1]a 0
[R6-ospf-1-area-0.0.0.0]ne	
[R6-ospf-1-area-0.0.0.0]network 172.16.4.0 0.0.0.255
[R6-ospf-1-area-0.0.0.0]

R7:

<R7>sy
Enter system view, return user view with Ctrl+Z.
[R7]osp	
[R7]ospf 1 rou	
[R7]ospf 1 router-id 7.7.7.7
[R7-ospf-1]a 0
[R7-ospf-1-area-0.0.0.0]ne	
[R7-ospf-1-area-0.0.0.0]network 172.16.5.0 0.0.0.255
[R7-ospf-1-area-0.0.0.0]
区域2

R6:

[R6]os	
[R6]ospf 1
[R6-ospf-1]a 2
[R6-ospf-1-area-0.0.0.2]ne	
[R6-ospf-1-area-0.0.0.2]network 172.16.65.1 0.0.0.0
[R6-ospf-1-area-0.0.0.2]

R11:

<R11>sy
Enter system view, return user view with Ctrl+Z.
[R11]os	
[R11]ospf 1 rou	
[R11]ospf 1 router-id 11.11.11.11
[R11-ospf-1]a 2
[R11-ospf-1-area-0.0.0.2]ne	
[R11-ospf-1-area-0.0.0.2]network 0.0.0.0 255.255.255.255
[R11-ospf-1-area-0.0.0.2]
Apr 16 2024 19:23:39-08:00 R11 %%01OSPF/4/NBR_CHANGE_E(l)[0]:Neighbor changes ev
ent: neighbor status changed. (ProcessId=256, NeighborAddress=1.65.16.172, Neigh
borEvent=HelloReceived, NeighborPreviousState=Down, NeighborCurrentState=Init) 
[R11-ospf-1-area-0.0.0.2]
Apr 16 2024 19:23:39-08:00 R11 %%01OSPF/4/NBR_CHANGE_E(l)[1]:Neighbor changes ev
ent: neighbor status changed. (ProcessId=256, NeighborAddress=1.65.16.172, Neigh
borEvent=2WayReceived, NeighborPreviousState=Init, NeighborCurrentState=2Way) 
[R11-ospf-1-area-0.0.0.2]
Apr 16 2024 19:23:39-08:00 R11 %%01OSPF/4/NBR_CHANGE_E(l)[2]:Neighbor changes ev
ent: neighbor status changed. (ProcessId=256, NeighborAddress=1.65.16.172, Neigh
borEvent=AdjOk?, NeighborPreviousState=2Way, NeighborCurrentState=ExStart) 
[R11-ospf-1-area-0.0.0.2]
Apr 16 2024 19:23:39-08:00 R11 %%01OSPF/4/NBR_CHANGE_E(l)[3]:Neighbor changes ev
ent: neighbor status changed. (ProcessId=256, NeighborAddress=1.65.16.172, Neigh
borEvent=NegotiationDone, NeighborPreviousState=ExStart, NeighborCurrentState=Ex
change) 
[R11-ospf-1-area-0.0.0.2]
Apr 16 2024 19:23:39-08:00 R11 %%01OSPF/4/NBR_CHANGE_E(l)[4]:Neighbor changes ev
ent: neighbor status changed. (ProcessId=256, NeighborAddress=1.65.16.172, Neigh
borEvent=ExchangeDone, NeighborPreviousState=Exchange, NeighborCurrentState=Load
ing) 
[R11-ospf-1-area-0.0.0.2]
Apr 16 2024 19:23:39-08:00 R11 %%01OSPF/4/NBR_CHANGE_E(l)[5]:Neighbor changes ev
ent: neighbor status changed. (ProcessId=256, NeighborAddress=1.65.16.172, Neigh
borEvent=LoadingDone, NeighborPreviousState=Loading, NeighborCurrentState=Full) 

[R11-ospf-1-area-0.0.0.2]
Apr 16 2024 19:24:54-08:00 R11 %%01OSPF/4/NBR_CHANGE_E(l)[6]:Neighbor changes ev
ent: neighbor status changed. (ProcessId=256, NeighborAddress=6.65.16.172, Neigh
borEvent=HelloReceived, NeighborPreviousState=Down, NeighborCurrentState=Init) 
[R11-ospf-1-area-0.0.0.2]
Apr 16 2024 19:25:03-08:00 R11 %%01OSPF/4/NBR_CHANGE_E(l)[7]:Neighbor changes ev
ent: neighbor status changed. (ProcessId=256, NeighborAddress=6.65.16.172, Neigh
borEvent=2WayReceived, NeighborPreviousState=Init, NeighborCurrentState=ExStart)
 
[R11-ospf-1-area-0.0.0.2]
Apr 16 2024 19:25:03-08:00 R11 %%01OSPF/4/NBR_CHANGE_E(l)[8]:Neighbor changes ev
ent: neighbor status changed. (ProcessId=256, NeighborAddress=6.65.16.172, Neigh
borEvent=NegotiationDone, NeighborPreviousState=ExStart, NeighborCurrentState=Ex
change) 
[R11-ospf-1-area-0.0.0.2]
Apr 16 2024 19:25:03-08:00 R11 %%01OSPF/4/NBR_CHANGE_E(l)[9]:Neighbor changes ev
ent: neighbor status changed. (ProcessId=256, NeighborAddress=6.65.16.172, Neigh
borEvent=ExchangeDone, NeighborPreviousState=Exchange, NeighborCurrentState=Load
ing) 
[R11-ospf-1-area-0.0.0.2]
Apr 16 2024 19:25:03-08:00 R11 %%01OSPF/4/NBR_CHANGE_E(l)[10]:Neighbor changes e
vent: neighbor status changed. (ProcessId=256, NeighborAddress=6.65.16.172, Neig
hborEvent=LoadingDone, NeighborPreviousState=Loading, NeighborCurrentState=Full)
 
[R11-ospf-1-area-0.0.0.2]

R12:顺便将RIP宣告了

<R12>sy
Enter system view, return user view with Ctrl+Z.
[R12]os	
[R12]ospf 1 rou	
[R12]ospf 1 router-id 12.12.12.12
[R12-ospf-1]a 2
[R12-ospf-1-area-0.0.0.2]ne	
[R12-ospf-1-area-0.0.0.2]network 172.16.65.6 0.0.0.0
[R12-ospf-1-area-0.0.0.2]
Apr 16 2024 19:25:03-08:00 R12 %%01OSPF/4/NBR_CHANGE_E(l)[0]:Neighbor changes ev
ent: neighbor status changed. (ProcessId=256, NeighborAddress=5.65.16.172, Neigh
borEvent=HelloReceived, NeighborPreviousState=Down, NeighborCurrentState=Init) 
[R12-ospf-1-area-0.0.0.2]
Apr 16 2024 19:25:03-08:00 R12 %%01OSPF/4/NBR_CHANGE_E(l)[1]:Neighbor changes ev
ent: neighbor status changed. (ProcessId=256, NeighborAddress=5.65.16.172, Neigh
borEvent=2WayReceived, NeighborPreviousState=Init, NeighborCurrentState=2Way) 
[R12-ospf-1-area-0.0.0.2]
Apr 16 2024 19:25:03-08:00 R12 %%01OSPF/4/NBR_CHANGE_E(l)[2]:Neighbor changes ev
ent: neighbor status changed. (ProcessId=256, NeighborAddress=5.65.16.172, Neigh
borEvent=AdjOk?, NeighborPreviousState=2Way, NeighborCurrentState=ExStart) 
[R12-ospf-1-area-0.0.0.2]
Apr 16 2024 19:25:03-08:00 R12 %%01OSPF/4/NBR_CHANGE_E(l)[3]:Neighbor changes ev
ent: neighbor status changed. (ProcessId=256, NeighborAddress=5.65.16.172, Neigh
borEvent=NegotiationDone, NeighborPreviousState=ExStart, NeighborCurrentState=Ex
change) 
[R12-ospf-1-area-0.0.0.2]
Apr 16 2024 19:25:03-08:00 R12 %%01OSPF/4/NBR_CHANGE_E(l)[4]:Neighbor changes ev
ent: neighbor status changed. (ProcessId=256, NeighborAddress=5.65.16.172, Neigh
borEvent=ExchangeDone, NeighborPreviousState=Exchange, NeighborCurrentState=Load
ing) 
[R12-ospf-1-area-0.0.0.2]
Apr 16 2024 19:25:03-08:00 R12 %%01OSPF/4/NBR_CHANGE_E(l)[5]:Neighbor changes ev
ent: neighbor status changed. (ProcessId=256, NeighborAddress=5.65.16.172, Neigh
borEvent=LoadingDone, NeighborPreviousState=Loading, NeighborCurrentState=Full) 

[R12-ospf-1-area-0.0.0.2]q
[R12-ospf-1]q
[R12]rip 1
[R12-rip-1]v 2
[R12-rip-1]undo s	
[R12-rip-1]undo silent-interface
[R12-rip-1]undo summary
[R12-rip-1]ne	
[R12-rip-1]network 172.16.0.0
[R12-rip-1]osp	
[R12-rip-1]q
[R12]osp	
[R12]ospf 1
[R12-ospf-1]im	
[R12-ospf-1]import-route r	
[R12-ospf-1]import-route rip 
[R12-ospf-1]
区域3

R7:

<R7>sy
Enter system view, return user view with Ctrl+Z.
[R7]os	
[R7]ospf 1 rou	
[R7]ospf 1 router-id 7.7.7.7
[R7-ospf-1]a 3
[R7-ospf-1-area-0.0.0.3]n	
[R7-ospf-1-area-0.0.0.3]network 172.16.97.1 0.0.0.0
[R7-ospf-1-area-0.0.0.3]

R8:

<R8>sy
Enter system view, return user view with Ctrl+Z.
[R8]os	
[R8]ospf 1 r	
[R8]ospf 1 router-id 8.8.8.8
[R8-ospf-1]a 3
[R8-ospf-1-area-0.0.0.3]ne	
[R8-ospf-1-area-0.0.0.3]network 0.0.0.0 255.255.255.255
[R8-ospf-1-area-0.0.0.3]
Apr 16 2024 19:32:31-08:00 R8 %%01OSPF/4/NBR_CHANGE_E(l)[0]:Neighbor changes eve
nt: neighbor status changed. (ProcessId=256, NeighborAddress=1.97.16.172, Neighb
orEvent=HelloReceived, NeighborPreviousState=Down, NeighborCurrentState=Init) 
[R8-ospf-1-area-0.0.0.3]
Apr 16 2024 19:32:31-08:00 R8 %%01OSPF/4/NBR_CHANGE_E(l)[1]:Neighbor changes eve
nt: neighbor status changed. (ProcessId=256, NeighborAddress=1.97.16.172, Neighb
orEvent=2WayReceived, NeighborPreviousState=Init, NeighborCurrentState=2Way) 
[R8-ospf-1-area-0.0.0.3]
Apr 16 2024 19:32:32-08:00 R8 %%01OSPF/4/NBR_CHANGE_E(l)[2]:Neighbor changes eve
nt: neighbor status changed. (ProcessId=256, NeighborAddress=1.97.16.172, Neighb
orEvent=AdjOk?, NeighborPreviousState=2Way, NeighborCurrentState=ExStart) 
[R8-ospf-1-area-0.0.0.3]
Apr 16 2024 19:32:32-08:00 R8 %%01OSPF/4/NBR_CHANGE_E(l)[3]:Neighbor changes eve
nt: neighbor status changed. (ProcessId=256, NeighborAddress=1.97.16.172, Neighb
orEvent=NegotiationDone, NeighborPreviousState=ExStart, NeighborCurrentState=Exc
hange) 
[R8-ospf-1-area-0.0.0.3]
Apr 16 2024 19:32:33-08:00 R8 %%01OSPF/4/NBR_CHANGE_E(l)[4]:Neighbor changes eve
nt: neighbor status changed. (ProcessId=256, NeighborAddress=1.97.16.172, Neighb
orEvent=ExchangeDone, NeighborPreviousState=Exchange, NeighborCurrentState=Loadi
ng) 
[R8-ospf-1-area-0.0.0.3]
Apr 16 2024 19:32:33-08:00 R8 %%01OSPF/4/NBR_CHANGE_E(l)[5]:Neighbor changes eve
nt: neighbor status changed. (ProcessId=256, NeighborAddress=1.97.16.172, Neighb
orEvent=LoadingDone, NeighborPreviousState=Loading, NeighborCurrentState=Full) 
[R8-ospf-1-area-0.0.0.3]

R9:

<R9>sy
Enter system view, return user view with Ctrl+Z.
[R9]osp	
[R9]ospf 1 rou	
[R9]ospf 1 router-id 9.9.9.9
[R9-ospf-1]a 3 
[R9-ospf-1-area-0.0.0.3]ne	
[R9-ospf-1-area-0.0.0.3]network 172.16.97.6 0.0.0.0
[R9-ospf-1-area-0.0.0.3]
Apr 16 2024 19:33:08-08:00 R9 %%01OSPF/4/NBR_CHANGE_E(l)[0]:Neighbor changes eve
nt: neighbor status changed. (ProcessId=256, NeighborAddress=5.97.16.172, Neighb
orEvent=HelloReceived, NeighborPreviousState=Down, NeighborCurrentState=Init) 
[R9-ospf-1-area-0.0.0.3]
Apr 16 2024 19:33:08-08:00 R9 %%01OSPF/4/NBR_CHANGE_E(l)[1]:Neighbor changes eve
nt: neighbor status changed. (ProcessId=256, NeighborAddress=5.97.16.172, Neighb
orEvent=2WayReceived, NeighborPreviousState=Init, NeighborCurrentState=2Way) 
[R9-ospf-1-area-0.0.0.3]
Apr 16 2024 19:33:08-08:00 R9 %%01OSPF/4/NBR_CHANGE_E(l)[2]:Neighbor changes eve
nt: neighbor status changed. (ProcessId=256, NeighborAddress=5.97.16.172, Neighb
orEvent=AdjOk?, NeighborPreviousState=2Way, NeighborCurrentState=ExStart) 
[R9-ospf-1-area-0.0.0.3]
Apr 16 2024 19:33:08-08:00 R9 %%01OSPF/4/NBR_CHANGE_E(l)[3]:Neighbor changes eve
nt: neighbor status changed. (ProcessId=256, NeighborAddress=5.97.16.172, Neighb
orEvent=NegotiationDone, NeighborPreviousState=ExStart, NeighborCurrentState=Exc
hange) 
[R9-ospf-1-area-0.0.0.3]
Apr 16 2024 19:33:09-08:00 R9 %%01OSPF/4/NBR_CHANGE_E(l)[4]:Neighbor changes eve
nt: neighbor status changed. (ProcessId=256, NeighborAddress=5.97.16.172, Neighb
orEvent=ExchangeDone, NeighborPreviousState=Exchange, NeighborCurrentState=Loadi
ng) 
[R9-ospf-1-area-0.0.0.3]
Apr 16 2024 19:33:09-08:00 R9 %%01OSPF/4/NBR_CHANGE_E(l)[5]:Neighbor changes eve
nt: neighbor status changed. (ProcessId=256, NeighborAddress=5.97.16.172, Neighb
orEvent=LoadingDone, NeighborPreviousState=Loading, NeighborCurrentState=Full) 
[R9-ospf-1-area-0.0.0.3]
区域4(不规则区域)

R9:

[R9]os	
[R9]ospf 2 rou	
[R9]ospf 2 router-id 9.9.9.9
[R9-ospf-2]a 4
[R9-ospf-2-area-0.0.0.4]ne	
[R9-ospf-2-area-0.0.0.4]network 172.16.129.9 0.0.0.0
[R9-ospf-2-area-0.0.0.4]ne	
[R9-ospf-2-area-0.0.0.4]network 17
Apr 16 2024 19:39:56-08:00 R9 %%01OSPF/4/NBR_CHANGE_E(l)[13]:Neighbor changes ev
ent: neighbor status changed. (ProcessId=512, NeighborAddress=10.129.16.172, Nei
ghborEvent=HelloReceived, NeighborPreviousState=Down, NeighborCurrentState=Init)
 
[R9-ospf-2-area-0.0.0.4]network 172
Apr 16 2024 19:39:56-08:00 R9 %%01OSPF/4/NBR_CHANGE_E(l)[14]:Neighbor changes ev
ent: neighbor status changed. (ProcessId=512, NeighborAddress=10.129.16.172, Nei
ghborEvent=2WayReceived, NeighborPreviousState=Init, NeighborCurrentState=2Way) 

[R9-ospf-2-area-0.0.0.4]network 172
Apr 16 2024 19:39:56-08:00 R9 %%01OSPF/4/NBR_CHANGE_E(l)[15]:Neighbor changes ev
ent: neighbor status changed. (ProcessId=512, NeighborAddress=10.129.16.172, Nei
ghborEvent=AdjOk?, NeighborPreviousState=2Way, NeighborCurrentState=ExStart) 
[R9-ospf-2-area-0.0.0.4]network 172
Apr 16 2024 19:39:56-08:00 R9 %%01OSPF/4/NBR_CHANGE_E(l)[16]:Neighbor changes ev
ent: neighbor status changed. (ProcessId=512, NeighborAddress=10.129.16.172, Nei
ghborEvent=NegotiationDone, NeighborPreviousState=ExStart, NeighborCurrentState=
Exchange) 
[R9-ospf-2-area-0.0.0.4]network 172
Apr 16 2024 19:39:56-08:00 R9 %%01OSPF/4/NBR_CHANGE_E(l)[17]:Neighbor changes ev
ent: neighbor status changed. (ProcessId=512, NeighborAddress=10.129.16.172, Nei
ghborEvent=ExchangeDone, NeighborPreviousState=Exchange, NeighborCurrentState=Lo
ading) 
[R9-ospf-2-area-0.0.0.4]network 172
Apr 16 2024 19:39:56-08:00 R9 %%01OSPF/4/NBR_CHANGE_E(l)[18]:Neighbor changes ev
ent: neighbor status changed. (ProcessId=512, NeighborAddress=10.129.16.172, Nei
ghborEvent=LoadingDone, NeighborPreviousState=Loading, NeighborCurrentState=Full
) 
[R9-ospf-2-area-0.0.0.4]network 172.16.130.0 0.0.0.255
[R9-ospf-2-area-0.0.0.4]q
[R9-ospf-2]

R10:

[R10]os	
[R10]ospf 2 rou	
[R10]ospf 2 router-id 10.10.10.10
[R10-ospf-2]a 4
[R10-ospf-2-area-0.0.0.4]ne	
[R10-ospf-2-area-0.0.0.4]network 0.0.0.0 255.255.255.255
[R10-ospf-2-area-0.0.0.4]q
[R10-ospf-2]
Apr 16 2024 19:42:20-08:00 R10 %%01OSPF/4/NBR_CHANGE_E(l)[0]:Neighbor changes ev
ent: neighbor status changed. (ProcessId=512, NeighborAddress=9.129.16.172, Neig
hborEvent=HelloReceived, NeighborPreviousState=Down, NeighborCurrentState=Init) 

[R10-ospf-2]
Apr 16 2024 19:42:20-08:00 R10 %%01OSPF/4/NBR_CHANGE_E(l)[1]:Neighbor changes ev
ent: neighbor status changed. (ProcessId=512, NeighborAddress=9.129.16.172, Neig
hborEvent=2WayReceived, NeighborPreviousState=Init, NeighborCurrentState=2Way) 
[R10-ospf-2]
Apr 16 2024 19:42:20-08:00 R10 %%01OSPF/4/NBR_CHANGE_E(l)[2]:Neighbor changes ev
ent: neighbor status changed. (ProcessId=512, NeighborAddress=9.129.16.172, Neig
hborEvent=AdjOk?, NeighborPreviousState=2Way, NeighborCurrentState=ExStart) 
[R10-ospf-2]
Apr 16 2024 19:42:20-08:00 R10 %%01OSPF/4/NBR_CHANGE_E(l)[3]:Neighbor changes ev
ent: neighbor status changed. (ProcessId=512, NeighborAddress=9.129.16.172, Neig
hborEvent=NegotiationDone, NeighborPreviousState=ExStart, NeighborCurrentState=E
xchange) 
[R10-ospf-2]
Apr 16 2024 19:42:20-08:00 R10 %%01OSPF/4/NBR_CHANGE_E(l)[4]:Neighbor changes ev
ent: neighbor status changed. (ProcessId=512, NeighborAddress=9.129.16.172, Neig
hborEvent=ExchangeDone, NeighborPreviousState=Exchange, NeighborCurrentState=Loa
ding) 
[R10-ospf-2]
Apr 16 2024 19:42:20-08:00 R10 %%01OSPF/4/NBR_CHANGE_E(l)[5]:Neighbor changes ev
ent: neighbor status changed. (ProcessId=512, NeighborAddress=9.129.16.172, Neig
hborEvent=LoadingDone, NeighborPreviousState=Loading, NeighborCurrentState=Full)
 
[R10-ospf-2]

第四步:配置MGRE

R3:

[R3]int t	
[R3]int Tunnel 0/0/0
[R3-Tunnel0/0/0]ip ad	
[R3-Tunnel0/0/0]ip address 172.16.6.3 24
[R3-Tunnel0/0/0]tun	
[R3-Tunnel0/0/0]tunnel-protocol 
[R3-Tunnel0/0/0]tunnel-protocol g	
[R3-Tunnel0/0/0]tunnel-protocol gre p	
[R3-Tunnel0/0/0]tunnel-protocol gre p2mp 
[R3-Tunnel0/0/0]sou	
[R3-Tunnel0/0/0]source s 4/0/0
Apr 16 2024 19:51:05-08:00 R3 %%01IFNET/4/LINK_STATE(l)[0]:The line protocol IP 
on the interface Tunnel0/0/0 has entered the UP state. 
[R3-Tunnel0/0/0]
[R3-Tunnel0/0/0]nh	
[R3-Tunnel0/0/0]nhrp n	
[R3-Tunnel0/0/0]nhrp network-id 100
[R3-Tunnel0/0/0]nh	
[R3-Tunnel0/0/0]nhrp e	
[R3-Tunnel0/0/0]nhrp entry m	
[R3-Tunnel0/0/0]nhrp entry multicast d	
[R3-Tunnel0/0/0]nhrp entry multicast dynamic 
[R3-Tunnel0/0/0]q
[R3]

R5:

[R5]int t	
[R5]int Tunnel 0/0/0
[R5-Tunnel0/0/0]ip ad	
[R5-Tunnel0/0/0]ip address 172.16.6.5 24
[R5-Tunnel0/0/0]tu	
[R5-Tunnel0/0/0]tunnel-protocol g	
[R5-Tunnel0/0/0]tunnel-protocol gre p	
[R5-Tunnel0/0/0]tunnel-protocol gre p2mp 
[R5-Tunnel0/0/0]sou	
[R5-Tunnel0/0/0]source s 4/0/0
Apr 16 2024 19:54:44-08:00 R5 %%01IFNET/4/LINK_STATE(l)[0]:The line protocol IP 
on the interface Tunnel0/0/0 has entered the UP state. 
[R5-Tunnel0/0/0]
[R5-Tunnel0/0/0]nh	
[R5-Tunnel0/0/0]nhrp n	
[R5-Tunnel0/0/0]nhrp network-id 100
[R5-Tunnel0/0/0]nh	
[R5-Tunnel0/0/0]nhrp e	
[R5-Tunnel0/0/0]nhrp entry 172.16.6.3 34.0.0.3 r	
[R5-Tunnel0/0/0]nhrp entry 172.16.6.3 34.0.0.3 register 
[R5-Tunnel0/0/0]

R6:

<R6>sy
Enter system view, return user view with Ctrl+Z.
[R6]int t	
[R6]int Tunnel 0/0/0
[R6-Tunnel0/0/0]ip ad	
[R6-Tunnel0/0/0]ip address 172.16.6.6 24
[R6-Tunnel0/0/0]tun	
[R6-Tunnel0/0/0]tunnel-protocol g	
[R6-Tunnel0/0/0]tunnel-protocol gre p	
[R6-Tunnel0/0/0]tunnel-protocol gre p2mp 
[R6-Tunnel0/0/0]s	
[R6-Tunnel0/0/0]set
[R6-Tunnel0/0/0]shutdown
[R6-Tunnel0/0/0]source
[R6-Tunnel0/0/0]sou	
[R6-Tunnel0/0/0]source s4/0/0
Apr 16 2024 19:56:16-08:00 R6 %%01IFNET/4/LINK_STATE(l)[0]:The line protocol IP 
on the interface Tunnel0/0/0 has entered the UP state. 
[R6-Tunnel0/0/0]
[R6-Tunnel0/0/0]ne	
[R6-Tunnel0/0/0]nh	
[R6-Tunnel0/0/0]nhrp n	
[R6-Tunnel0/0/0]nhrp network-id 100
[R6-Tunnel0/0/0]nh	
[R6-Tunnel0/0/0]nhrp en	
[R6-Tunnel0/0/0]nhrp entry 172.16.6.3 34.0.0.3 r	
[R6-Tunnel0/0/0]nhrp entry 172.16.6.3 34.0.0.3 register 
[R6-Tunnel0/0/0]

R7:

<R7>sy
Enter system view, return user view with Ctrl+Z.
[R7]int  t	
[R7]int  Tunnel 0/0/0
[R7-Tunnel0/0/0]ip ad	
[R7-Tunnel0/0/0]ip address 172.16.6.7 24
[R7-Tunnel0/0/0]tu	
[R7-Tunnel0/0/0]tunnel-protocol g	
[R7-Tunnel0/0/0]tunnel-protocol gre p	
[R7-Tunnel0/0/0]tunnel-protocol gre p2mp 
[R7-Tunnel0/0/0]s	
[R7-Tunnel0/0/0]set
[R7-Tunnel0/0/0]shutdown
[R7-Tunnel0/0/0]source g 0/0/0
Apr 16 2024 19:58:23-08:00 R7 %%01IFNET/4/LINK_STATE(l)[0]:The line protocol IP 
on the interface Tunnel0/0/0 has entered the UP state. 
[R7-Tunnel0/0/0]nh	
[R7-Tunnel0/0/0]nhrp n	
[R7-Tunnel0/0/0]nhrp network-id 100
[R7-Tunnel0/0/0]nh	
[R7-Tunnel0/0/0]nhrp e	
[R7-Tunnel0/0/0]nhrp entry 172.16.6.3 34.0.0.3 r	
[R7-Tunnel0/0/0]nhrp entry 172.16.6.3 34.0.0.3 register 
[R7-Tunnel0/0/0]

第五步:将隧道口划分进OSPF区域

R3:

<R3>sy
Enter system view, return user view with Ctrl+Z.
[R3]os	
[R3]ospf 1
[R3-ospf-1]a 1
[R3-ospf-1-area-0.0.0.1]q
[R3-ospf-1]a 0
[R3-ospf-1-area-0.0.0.0]ne	
[R3-ospf-1-area-0.0.0.0]network 172.16.6.0 0.0.0.255
[R3-ospf-1-area-0.0.0.0]
Apr 16 2024 20:05:49-08:00 R3 %%01OSPF/4/NBR_CHANGE_E(l)[0]:Neighbor changes eve
nt: neighbor status changed. (ProcessId=256, NeighborAddress=5.6.16.172, Neighbo
rEvent=HelloReceived, NeighborPreviousState=Down, NeighborCurrentState=Init) 
[R3-ospf-1-area-0.0.0.0]
Apr 16 2024 20:05:53-08:00 R3 %%01OSPF/4/NBR_CHANGE_E(l)[1]:Neighbor changes eve
nt: neighbor status changed. (ProcessId=256, NeighborAddress=5.6.16.172, Neighbo
rEvent=2WayReceived, NeighborPreviousState=Init, NeighborCurrentState=ExStart) 
[R3-ospf-1-area-0.0.0.0]
Apr 16 2024 20:05:53-08:00 R3 %%01OSPF/4/NBR_CHANGE_E(l)[2]:Neighbor changes eve
nt: neighbor status changed. (ProcessId=256, NeighborAddress=5.6.16.172, Neighbo
rEvent=NegotiationDone, NeighborPreviousState=ExStart, NeighborCurrentState=Exch
ange) 
[R3-ospf-1-area-0.0.0.0]
Apr 16 2024 20:05:53-08:00 R3 %%01OSPF/4/NBR_CHANGE_E(l)[3]:Neighbor changes eve
nt: neighbor status changed. (ProcessId=256, NeighborAddress=5.6.16.172, Neighbo
rEvent=ExchangeDone, NeighborPreviousState=Exchange, NeighborCurrentState=Loadin
g) 
[R3-ospf-1-area-0.0.0.0]
Apr 16 2024 20:05:53-08:00 R3 %%01OSPF/4/NBR_CHANGE_E(l)[4]:Neighbor changes eve
nt: neighbor status changed. (ProcessId=256, NeighborAddress=5.6.16.172, Neighbo
rEvent=LoadingDone, NeighborPreviousState=Loading, NeighborCurrentState=Full) 
[R3-ospf-1-area-0.0.0.0]
[R3-ospf-1-area-0.0.0.0]
[R3-ospf-1-area-0.0.0.0]q
[R3-ospf-1]q
[R3]int t	
[R3]int Tunnel 0/0/0
[R3-Tunnel0/0/0]os	
[R3-Tunnel0/0/0]ospf n	
[R3-Tunnel0/0/0]ospf network-type b	
[R3-Tunnel0/0/0]ospf network-type broadcast 
Apr 16 2024 20:09:26-08:00 R3 %%01OSPF/3/NBR_CHG_DOWN(l)[5]:Neighbor event:neigh
bor state changed to Down. (ProcessId=256, NeighborAddress=5.5.5.5, NeighborEven
t=KillNbr, NeighborPreviousState=Full, NeighborCurrentState=Down) 
[R3-Tunnel0/0/0]
[R3-Tunnel0/0/0]
Apr 16 2024 20:09:26-08:00 R3 %%01OSPF/3/NBR_DOWN_REASON(l)[6]:Neighbor state le
aves full or changed to Down. (ProcessId=256, NeighborRouterId=5.5.5.5, Neighbor
AreaId=0, NeighborInterface=Tunnel0/0/0,NeighborDownImmediate reason=Neighbor Do
wn Due to Kill Neighbor, NeighborDownPrimeReason=Interface Parameter Mismatch, N
eighborChangeTime=2024-04-16 20:09:26-08:00) 
[R3-Tunnel0/0/0]
Apr 16 2024 20:09:29-08:00 R3 %%01OSPF/4/NBR_CHANGE_E(l)[7]:Neighbor changes eve
nt: neighbor status changed. (ProcessId=256, NeighborAddress=5.6.16.172, Neighbo
rEvent=HelloReceived, NeighborPreviousState=Down, NeighborCurrentState=Init) 
[R3-Tunnel0/0/0]
Apr 16 2024 20:09:29-08:00 R3 %%01OSPF/4/NBR_CHANGE_E(l)[8]:Neighbor changes eve
nt: neighbor status changed. (ProcessId=256, NeighborAddress=5.6.16.172, Neighbo
rEvent=2WayReceived, NeighborPreviousState=Init, NeighborCurrentState=2Way) 
[R3-Tunnel0/0/0]
Apr 16 2024 20:09:33-08:00 R3 %%01OSPF/4/NBR_CHANGE_E(l)[9]:Neighbor changes eve
nt: neighbor status changed. (ProcessId=256, NeighborAddress=6.6.16.172, Neighbo
rEvent=HelloReceived, NeighborPreviousState=Down, NeighborCurrentState=Init) 
[R3-Tunnel0/0/0]
Apr 16 2024 20:09:33-08:00 R3 %%01OSPF/4/NBR_CHANGE_E(l)[10]:Neighbor changes ev
ent: neighbor status changed. (ProcessId=256, NeighborAddress=6.6.16.172, Neighb
orEvent=2WayReceived, NeighborPreviousState=Init, NeighborCurrentState=2Way) 
[R3-Tunnel0/0/0]
Apr 16 2024 20:09:34-08:00 R3 %%01OSPF/4/NBR_CHANGE_E(l)[11]:Neighbor changes ev
ent: neighbor status changed. (ProcessId=256, NeighborAddress=7.6.16.172, Neighb
orEvent=HelloReceived, NeighborPreviousState=Down, NeighborCurrentState=Init) 
[R3-Tunnel0/0/0]
Apr 16 2024 20:09:34-08:00 R3 %%01OSPF/4/NBR_CHANGE_E(l)[12]:Neighbor changes ev
ent: neighbor status changed. (ProcessId=256, NeighborAddress=7.6.16.172, Neighb
orEvent=2WayReceived, NeighborPreviousState=Init, NeighborCurrentState=2Way) 
[R3-Tunnel0/0/0]

R5:

<R5>sy
Enter system view, return user view with Ctrl+Z.
[R5]os	
[R5]ospf 1
[R5-ospf-1]a 0
[R5-ospf-1-area-0.0.0.0]ne	
[R5-ospf-1-area-0.0.0.0]network 172.16.6.0 0.0.0.255
[R5-ospf-1-area-0.0.0.0]
Apr 16 2024 20:05:54-08:00 R5 %%01OSPF/4/NBR_CHANGE_E(l)[0]:Neighbor changes eve
nt: neighbor status changed. (ProcessId=256, NeighborAddress=3.6.16.172, Neighbo
rEvent=HelloReceived, NeighborPreviousState=Down, NeighborCurrentState=Init) 
[R5-ospf-1-area-0.0.0.0]
Apr 16 2024 20:05:54-08:00 R5 %%01OSPF/4/NBR_CHANGE_E(l)[1]:Neighbor changes eve
nt: neighbor status changed. (ProcessId=256, NeighborAddress=3.6.16.172, Neighbo
rEvent=2WayReceived, NeighborPreviousState=Init, NeighborCurrentState=ExStart) 
[R5-ospf-1-area-0.0.0.0]
Apr 16 2024 20:05:54-08:00 R5 %%01OSPF/4/NBR_CHANGE_E(l)[2]:Neighbor changes eve
nt: neighbor status changed. (ProcessId=256, NeighborAddress=3.6.16.172, Neighbo
rEvent=NegotiationDone, NeighborPreviousState=ExStart, NeighborCurrentState=Exch
ange) 
[R5-ospf-1-area-0.0.0.0]
Apr 16 2024 20:05:54-08:00 R5 %%01OSPF/4/NBR_CHANGE_E(l)[3]:Neighbor changes eve
nt: neighbor status changed. (ProcessId=256, NeighborAddress=3.6.16.172, Neighbo
rEvent=ExchangeDone, NeighborPreviousState=Exchange, NeighborCurrentState=Loadin
g) 
[R5-ospf-1-area-0.0.0.0]
Apr 16 2024 20:05:54-08:00 R5 %%01OSPF/4/NBR_CHANGE_E(l)[4]:Neighbor changes eve
nt: neighbor status changed. (ProcessId=256, NeighborAddress=3.6.16.172, Neighbo
rEvent=LoadingDone, NeighborPreviousState=Loading, NeighborCurrentState=Full) 
[R5-ospf-1-area-0.0.0.0]
[R5-ospf-1-area-0.0.0.0]
[R5-ospf-1-area-0.0.0.0]
[R5-ospf-1-area-0.0.0.0]q
[R5-ospf-1]q
[R5]int t 	
[R5]int Tunnel 0/0/0
[R5-Tunnel0/0/0]os	
[R5-Tunnel0/0/0]ospf n	
[R5-Tunnel0/0/0]ospf network-type b	
[R5-Tunnel0/0/0]ospf network-type broadcast 
Apr 16 2024 20:10:36-08:00 R5 %%01OSPF/3/NBR_CHG_DOWN(l)[8]:Neighbor event:neigh
bor state changed to Down. (ProcessId=256, NeighborAddress=3.3.3.3, NeighborEven
t=KillNbr, NeighborPreviousState=ExStart, NeighborCurrentState=Down) 
[R5-Tunnel0/0/0]
[R5-Tunnel0/0/0]
Apr 16 2024 20:10:36-08:00 R5 %%01OSPF/3/NBR_DOWN_REASON(l)[9]:Neighbor state le
aves full or changed to Down. (ProcessId=256, NeighborRouterId=3.3.3.3, Neighbor
AreaId=0, NeighborInterface=Tunnel0/0/0,NeighborDownImmediate reason=Neighbor Do
wn Due to Kill Neighbor, NeighborDownPrimeReason=Interface Parameter Mismatch, N
eighborChangeTime=2024-04-16 20:10:36-08:00) 
[R5-Tunnel0/0/0]

R6:

<R6>sy
Enter system view, return user view with Ctrl+Z.
[R6]os	
[R6]ospf 1
[R6-ospf-1]a 0
[R6-ospf-1-area-0.0.0.0]ne	
[R6-ospf-1-area-0.0.0.0]network 172.16.6.0 0.0.0.255
[R6-ospf-1-area-0.0.0.0]
Apr 16 2024 20:06:24-08:00 R6 %%01OSPF/4/NBR_CHANGE_E(l)[0]:Neighbor changes eve
nt: neighbor status changed. (ProcessId=256, NeighborAddress=3.6.16.172, Neighbo
rEvent=HelloReceived, NeighborPreviousState=Down, NeighborCurrentState=Init) 
[R6-ospf-1-area-0.0.0.0]
[R6-ospf-1-area-0.0.0.0]
[R6-ospf-1-area-0.0.0.0]
[R6-ospf-1-area-0.0.0.0]q
[R6-ospf-1]q
[R6]int t 	
[R6]int Tunnel 0/0/0
[R6-Tunnel0/0/0]os	
[R6-Tunnel0/0/0]ospf n	
[R6-Tunnel0/0/0]ospf network-type b	
[R6-Tunnel0/0/0]ospf network-type broadcast 
Apr 16 2024 20:11:05-08:00 R6 %%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=ExStart, NeighborCurrentState=Down) 
[R6-Tunnel0/0/0]
[R6-Tunnel0/0/0]
Apr 16 2024 20:11:05-08:00 R6 %%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=Tunnel0/0/0,NeighborDownImmediate reason=Neighbor Do
wn Due to Kill Neighbor, NeighborDownPrimeReason=Interface Parameter Mismatch, N
eighborChangeTime=2024-04-16 20:11:05-08:00) 
[R6-Tunnel0/0/0]
Apr 16 2024 20:11:13-08:00 R6 %%01OSPF/4/NBR_CHANGE_E(l)[4]:Neighbor changes eve
nt: neighbor status changed. (ProcessId=256, NeighborAddress=3.6.16.172, Neighbo
rEvent=HelloReceived, NeighborPreviousState=Down, NeighborCurrentState=Init) 
[R6-Tunnel0/0/0]
Apr 16 2024 20:11:13-08:00 R6 %%01OSPF/4/NBR_CHANGE_E(l)[5]:Neighbor changes eve
nt: neighbor status changed. (ProcessId=256, NeighborAddress=3.6.16.172, Neighbo
rEvent=2WayReceived, NeighborPreviousState=Init, NeighborCurrentState=2Way) 
[R6-Tunnel0/0/0]

R7:

<R7>sy
Enter system view, return user view with Ctrl+Z.
[R7]os	
[R7]ospf 1
[R7-ospf-1]a 0
[R7-ospf-1-area-0.0.0.0]ne	
[R7-ospf-1-area-0.0.0.0]network 172.16.6.0 0.0.0.255
[R7-ospf-1-area-0.0.0.0]
Apr 16 2024 20:06:55-08:00 R7 %%01OSPF/4/NBR_CHANGE_E(l)[0]:Neighbor changes eve
nt: neighbor status changed. (ProcessId=256, NeighborAddress=3.6.16.172, Neighbo
rEvent=HelloReceived, NeighborPreviousState=Down, NeighborCurrentState=Init) 
[R7-ospf-1-area-0.0.0.0]
[R7-ospf-1-area-0.0.0.0]
[R7-ospf-1-area-0.0.0.0]
[R7-ospf-1-area-0.0.0.0]
[R7-ospf-1-area-0.0.0.0]q
[R7-ospf-1]q
[R7]int t	
[R7]int Tunnel 0/0/0
[R7-Tunnel0/0/0]os	
[R7-Tunnel0/0/0]ospf n	
[R7-Tunnel0/0/0]ospf network-type b	
[R7-Tunnel0/0/0]ospf network-type broadcast 
Apr 16 2024 20:11:41-08:00 R7 %%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) 
[R7-Tunnel0/0/0]
[R7-Tunnel0/0/0]
Apr 16 2024 20:11:41-08:00 R7 %%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=0, NeighborInterface=Tunnel0/0/0,NeighborDownImmediate reason=Neighbor Do
wn Due to Kill Neighbor, NeighborDownPrimeReason=Interface Parameter Mismatch, N
eighborChangeTime=2024-04-16 20:11:41-08:00) 
[R7-Tunnel0/0/0]
Apr 16 2024 20:11:42-08:00 R7 %%01OSPF/4/NBR_CHANGE_E(l)[7]:Neighbor changes eve
nt: neighbor status changed. (ProcessId=256, NeighborAddress=3.6.16.172, Neighbo
rEvent=HelloReceived, NeighborPreviousState=Down, NeighborCurrentState=Init) 
[R7-Tunnel0/0/0]
Apr 16 2024 20:11:42-08:00 R7 %%01OSPF/4/NBR_CHANGE_E(l)[8]:Neighbor changes eve
nt: neighbor status changed. (ProcessId=256, NeighborAddress=3.6.16.172, Neighbo
rEvent=2WayReceived, NeighborPreviousState=Init, NeighborCurrentState=2Way) 
[R7-Tunnel0/0/0]

第六步:取消选举权

R5:

<R5>sy
Enter system view, return user view with Ctrl+Z.
[R5]int	
[R5]interface t	
[R5]interface Tunnel 0/0/0
[R5-Tunnel0/0/0]os	
[R5-Tunnel0/0/0]ospf d	
[R5-Tunnel0/0/0]ospf dr-priority 0
Apr 16 2024 20:27:15-08:00 R5 %%01OSPF/3/NBR_CHG_DOWN(l)[0]:Neighbor event:neigh
bor state changed to Down. (ProcessId=256, NeighborAddress=3.3.3.3, NeighborEven
t=KillNbr, NeighborPreviousState=Full, NeighborCurrentState=Down) 
[R5-Tunnel0/0/0]
[R5-Tunnel0/0/0]
Apr 16 2024 20:27:15-08:00 R5 %%01OSPF/3/NBR_DOWN_REASON(l)[1]:Neighbor state le
aves full or changed to Down. (ProcessId=256, NeighborRouterId=3.3.3.3, Neighbor
AreaId=0, NeighborInterface=Tunnel0/0/0,NeighborDownImmediate reason=Neighbor Do
wn Due to Kill Neighbor, NeighborDownPrimeReason=Interface Parameter Mismatch, N
eighborChangeTime=2024-04-16 20:27:15-08:00) 
[R5-Tunnel0/0/0]
Apr 16 2024 20:27:21-08:00 R5 %%01OSPF/4/NBR_CHANGE_E(l)[2]:Neighbor changes eve
nt: neighbor status changed. (ProcessId=256, NeighborAddress=3.6.16.172, Neighbo
rEvent=HelloReceived, NeighborPreviousState=Down, NeighborCurrentState=Init) 
[R5-Tunnel0/0/0]
Apr 16 2024 20:27:21-08:00 R5 %%01OSPF/4/NBR_CHANGE_E(l)[3]:Neighbor changes eve
nt: neighbor status changed. (ProcessId=256, NeighborAddress=3.6.16.172, Neighbo
rEvent=2WayReceived, NeighborPreviousState=Init, NeighborCurrentState=2Way) 
[R5-Tunnel0/0/0]
Apr 16 2024 20:27:21-08:00 R5 %%01OSPF/4/NBR_CHANGE_E(l)[4]:Neighbor changes eve
nt: neighbor status changed. (ProcessId=256, NeighborAddress=3.6.16.172, Neighbo
rEvent=AdjOk?, NeighborPreviousState=2Way, NeighborCurrentState=ExStart) 
[R5-Tunnel0/0/0]
Apr 16 2024 20:27:21-08:00 R5 %%01OSPF/4/NBR_CHANGE_E(l)[5]:Neighbor changes eve
nt: neighbor status changed. (ProcessId=256, NeighborAddress=3.6.16.172, Neighbo
rEvent=NegotiationDone, NeighborPreviousState=ExStart, NeighborCurrentState=Exch
ange) 
[R5-Tunnel0/0/0]
Apr 16 2024 20:27:21-08:00 R5 %%01OSPF/4/NBR_CHANGE_E(l)[6]:Neighbor changes eve
nt: neighbor status changed. (ProcessId=256, NeighborAddress=3.6.16.172, Neighbo
rEvent=ExchangeDone, NeighborPreviousState=Exchange, NeighborCurrentState=Loadin
g) 
[R5-Tunnel0/0/0]
Apr 16 2024 20:27:21-08:00 R5 %%01OSPF/4/NBR_CHANGE_E(l)[7]:Neighbor changes eve
nt: neighbor status changed. (ProcessId=256, NeighborAddress=3.6.16.172, Neighbo
rEvent=LoadingDone, NeighborPreviousState=Loading, NeighborCurrentState=Full) 
[R5-Tunnel0/0/0]

R6:

<R6>sy
Enter system view, return user view with Ctrl+Z.
[R6]int t	
[R6]int Tunnel 0/0/0
[R6-Tunnel0/0/0]os	
[R6-Tunnel0/0/0]ospf b	
[R6-Tunnel0/0/0]ospf d	
[R6-Tunnel0/0/0]ospf dr-priority 0
Apr 16 2024 20:28:54-08:00 R6 %%01OSPF/3/NBR_CHG_DOWN(l)[0]:Neighbor event:neigh
bor state changed to Down. (ProcessId=256, NeighborAddress=3.3.3.3, NeighborEven
t=KillNbr, NeighborPreviousState=Full, NeighborCurrentState=Down) 
[R6-Tunnel0/0/0]
[R6-Tunnel0/0/0]
Apr 16 2024 20:28:54-08:00 R6 %%01OSPF/3/NBR_DOWN_REASON(l)[1]:Neighbor state le
aves full or changed to Down. (ProcessId=256, NeighborRouterId=3.3.3.3, Neighbor
AreaId=0, NeighborInterface=Tunnel0/0/0,NeighborDownImmediate reason=Neighbor Do
wn Due to Kill Neighbor, NeighborDownPrimeReason=Interface Parameter Mismatch, N
eighborChangeTime=2024-04-16 20:28:54-08:00) 
[R6-Tunnel0/0/0]
Apr 16 2024 20:28:55-08:00 R6 %%01OSPF/4/NBR_CHANGE_E(l)[2]:Neighbor changes eve
nt: neighbor status changed. (ProcessId=256, NeighborAddress=3.6.16.172, Neighbo
rEvent=HelloReceived, NeighborPreviousState=Down, NeighborCurrentState=Init) 
[R6-Tunnel0/0/0]
Apr 16 2024 20:28:55-08:00 R6 %%01OSPF/4/NBR_CHANGE_E(l)[3]:Neighbor changes eve
nt: neighbor status changed. (ProcessId=256, NeighborAddress=3.6.16.172, Neighbo
rEvent=2WayReceived, NeighborPreviousState=Init, NeighborCurrentState=2Way) 
[R6-Tunnel0/0/0]
Apr 16 2024 20:28:55-08:00 R6 %%01OSPF/4/NBR_CHANGE_E(l)[4]:Neighbor changes eve
nt: neighbor status changed. (ProcessId=256, NeighborAddress=3.6.16.172, Neighbo
rEvent=AdjOk?, NeighborPreviousState=2Way, NeighborCurrentState=ExStart) 
[R6-Tunnel0/0/0]
Apr 16 2024 20:28:55-08:00 R6 %%01OSPF/4/NBR_CHANGE_E(l)[5]:Neighbor changes eve
nt: neighbor status changed. (ProcessId=256, NeighborAddress=3.6.16.172, Neighbo
rEvent=NegotiationDone, NeighborPreviousState=ExStart, NeighborCurrentState=Exch
ange) 
[R6-Tunnel0/0/0]
Apr 16 2024 20:28:55-08:00 R6 %%01OSPF/4/NBR_CHANGE_E(l)[6]:Neighbor changes eve
nt: neighbor status changed. (ProcessId=256, NeighborAddress=3.6.16.172, Neighbo
rEvent=ExchangeDone, NeighborPreviousState=Exchange, NeighborCurrentState=Loadin
g) 
[R6-Tunnel0/0/0]
Apr 16 2024 20:28:55-08:00 R6 %%01OSPF/4/NBR_CHANGE_E(l)[7]:Neighbor changes eve
nt: neighbor status changed. (ProcessId=256, NeighborAddress=3.6.16.172, Neighbo
rEvent=LoadingDone, NeighborPreviousState=Loading, NeighborCurrentState=Full) 
[R6-Tunnel0/0/0]

R7:

<R7>sy
Enter system view, return user view with Ctrl+Z.
[R7]int t 	
[R7]int Tunnel 0/0/0
[R7-Tunnel0/0/0]os	
[R7-Tunnel0/0/0]ospf d	
[R7-Tunnel0/0/0]ospf dr-priority 0
Apr 16 2024 20:29:31-08:00 R7 %%01OSPF/3/NBR_CHG_DOWN(l)[0]:Neighbor event:neigh
bor state changed to Down. (ProcessId=256, NeighborAddress=3.3.3.3, NeighborEven
t=KillNbr, NeighborPreviousState=Full, NeighborCurrentState=Down) 
[R7-Tunnel0/0/0]
[R7-Tunnel0/0/0]
Apr 16 2024 20:29:31-08:00 R7 %%01OSPF/3/NBR_DOWN_REASON(l)[1]:Neighbor state le
aves full or changed to Down. (ProcessId=256, NeighborRouterId=3.3.3.3, Neighbor
AreaId=0, NeighborInterface=Tunnel0/0/0,NeighborDownImmediate reason=Neighbor Do
wn Due to Kill Neighbor, NeighborDownPrimeReason=Interface Parameter Mismatch, N
eighborChangeTime=2024-04-16 20:29:31-08:00) 
[R7-Tunnel0/0/0]
Apr 16 2024 20:29:33-08:00 R7 %%01OSPF/4/NBR_CHANGE_E(l)[2]:Neighbor changes eve
nt: neighbor status changed. (ProcessId=256, NeighborAddress=3.6.16.172, Neighbo
rEvent=HelloReceived, NeighborPreviousState=Down, NeighborCurrentState=Init) 
[R7-Tunnel0/0/0]
Apr 16 2024 20:29:33-08:00 R7 %%01OSPF/4/NBR_CHANGE_E(l)[3]:Neighbor changes eve
nt: neighbor status changed. (ProcessId=256, NeighborAddress=3.6.16.172, Neighbo
rEvent=2WayReceived, NeighborPreviousState=Init, NeighborCurrentState=2Way) 
[R7-Tunnel0/0/0]
Apr 16 2024 20:29:33-08:00 R7 %%01OSPF/4/NBR_CHANGE_E(l)[4]:Neighbor changes eve
nt: neighbor status changed. (ProcessId=256, NeighborAddress=3.6.16.172, Neighbo
rEvent=AdjOk?, NeighborPreviousState=2Way, NeighborCurrentState=ExStart) 
[R7-Tunnel0/0/0]
Apr 16 2024 20:29:33-08:00 R7 %%01OSPF/4/NBR_CHANGE_E(l)[5]:Neighbor changes eve
nt: neighbor status changed. (ProcessId=256, NeighborAddress=3.6.16.172, Neighbo
rEvent=NegotiationDone, NeighborPreviousState=ExStart, NeighborCurrentState=Exch
ange) 
[R7-Tunnel0/0/0]
Apr 16 2024 20:29:33-08:00 R7 %%01OSPF/4/NBR_CHANGE_E(l)[6]:Neighbor changes eve
nt: neighbor status changed. (ProcessId=256, NeighborAddress=3.6.16.172, Neighbo
rEvent=ExchangeDone, NeighborPreviousState=Exchange, NeighborCurrentState=Loadin
g) 
[R7-Tunnel0/0/0]
Apr 16 2024 20:29:33-08:00 R7 %%01OSPF/4/NBR_CHANGE_E(l)[7]:Neighbor changes eve
nt: neighbor status changed. (ProcessId=256, NeighborAddress=3.6.16.172, Neighbo
rEvent=LoadingDone, NeighborPreviousState=Loading, NeighborCurrentState=Full) 
[R7-Tunnel0/0/0]

第七步:路由引入

R9:

<R9>sy
Enter system view, return user view with Ctrl+Z.
[R9]os	
[R9]ospf 1
[R9-ospf-1]im	
[R9-ospf-1]import-route os	
[R9-ospf-1]import-route ospf 2
[R9-ospf-1]q
[R9]os	
[R9]ospf 2
[R9-ospf-2]im	
[R9-ospf-2]import-route os	
[R9-ospf-2]import-route ospf 1
[R9-ospf-2]q
[R9]

第八步:实现所有设备可以访问R4的环回(EZIP)

R3:

<R3>sy
Enter system view, return user view with Ctrl+Z.
[R3]ac	
[R3]acl 2000
[R3-acl-basic-2000]ru	
[R3-acl-basic-2000]rule pr	
[R3-acl-basic-2000]rule pe	
[R3-acl-basic-2000]rule permit s	
[R3-acl-basic-2000]rule permit source 172.16.0.0 0.0.255.255
[R3-acl-basic-2000]q
[R3]int s	
[R3]int Serial 4/0/0
[R3-Serial4/0/0]na	
[R3-Serial4/0/0]nat ou	
[R3-Serial4/0/0]nat outbound 2000
[R3-Serial4/0/0]q
[R3]

R5:

[R5]acl 2000
[R5-acl-basic-2000]ru	
[R5-acl-basic-2000]rule p	
[R5-acl-basic-2000]rule permit s	
[R5-acl-basic-2000]rule permit source 172.16.0.0 0.0.255.25 5
                                                            ^
Error:Too many parameters found at '^' position.
[R5-acl-basic-2000]rule permit source 172.16.0.0 0.0.255.255
[R5-acl-basic-2000]q
[R5]int s 4/0/0
[R5-Serial4/0/0]na	
[R5-Serial4/0/0]nat ou	
[R5-Serial4/0/0]nat outbound 2000
[R5-Serial4/0/0]q
[R5]

R6:

[R6-acl-basic-2000]rule permit source 172.16.0.0 0.0.255.255
[R6-acl-basic-2000]q
[R6]int s 4/0/0
[R6-Serial4/0/0]na	
[R6-Serial4/0/0]nat o	
[R6-Serial4/0/0]nat outbound 2000
[R6-Serial4/0/0]

R7:

[R7-acl-basic-2000]ru	
[R7-acl-basic-2000]rule p	
[R7-acl-basic-2000]rule permit s	
[R7-acl-basic-2000]rule permit source 172.16.0.0 0.0.255.255
[R7-acl-basic-2000]q
[R7]int g0/0/0
[R7-GigabitEthernet0/0/0]na	
[R7-GigabitEthernet0/0/0]nat ou	
[R7-GigabitEthernet0/0/0]nat outbound 2000
[R7-GigabitEthernet0/0/0]q
[R7]

第九步:路由聚合(ABR聚合)

R3:(在需要聚合的区域做)

[R3]os	
[R3]ospf 1
[R3-ospf-1]a 1
[R3-ospf-1-area-0.0.0.1]ab	
[R3-ospf-1-area-0.0.0.1]abr-summary 172.16.32.0 255.255.224.0
[R3-ospf-1-area-0.0.0.1]

R5只有一个网段所以不用做聚合

R6:

<R6>sy
Enter system view, return user view with Ctrl+Z.
[R6]os	
[R6]ospf
[R6-ospf-1]a 2
[R6-ospf-1-area-0.0.0.2]ab	
[R6-ospf-1-area-0.0.0.2]abr-summary 172.16.64.0 255.255.224.0
[R6-ospf-1-area-0.0.0.2]q
[R6-ospf-1]

R7:

<R7>sy
Enter system view, return user view with Ctrl+Z.
[R7]os	
[R7]ospf 1
[R7-ospf-1]a 3
[R7-ospf-1-area-0.0.0.3]ab	
[R7-ospf-1-area-0.0.0.3]abr-summary 172.16.96.0 255.255.224.0
[R7-ospf-1-area-0.0.0.3]

第十步:ASBR聚合

R12:

<R12>sy
Enter system view, return user view with Ctrl+Z.
[R12]os	
[R12]ospf 1
[R12-ospf-1]ab	
[R12-ospf-1]as	
[R12-ospf-1]asbr-summary 172.16.160.0 255.255.224.0
[R12-ospf-1]

R9:

<R9>sy
Enter system view, return user view with Ctrl+Z.
[R9]os	
[R9]ospf 1
[R9-ospf-1]as	
[R9-ospf-1]asbr-summary 172.16.128.0 255.255.224.0
[R9-ospf-1]q
[R9]

第十一步:最大精简路由表(特殊区域)

区域1为完全末梢区域

R3:

<R3>sy
Enter system view, return user view with Ctrl+Z.
[R3]os	
[R3]ospf 1
[R3-ospf-1]a 1
[R3-ospf-1-area-0.0.0.1]at	
[R3-ospf-1-area-0.0.0.1]astu	
[R3-ospf-1-area-0.0.0.1]stu	
[R3-ospf-1-area-0.0.0.1]stub no_s	
[R3-ospf-1-area-0.0.0.1]stub no-s	
[R3-ospf-1-area-0.0.0.1]stub no-summary 
Apr 19 2024 22:53:07-08:00 R3 %%01OSPF/3/NBR_CHG_DOWN(l)[0]:Neighbor event:neigh
bor state changed to Down. (ProcessId=256, NeighborAddress=1.1.1.1, NeighborEven
t=KillNbr, NeighborPreviousState=Full, NeighborCurrentState=Down) 
[R3-ospf-1-area-0.0.0.1]
[R3-ospf-1-area-0.0.0.1]
Apr 19 2024 22:53:07-08:00 R3 %%01OSPF/3/NBR_DOWN_REASON(l)[1]:Neighbor state le
aves full or changed to Down. (ProcessId=256, NeighborRouterId=1.1.1.1, Neighbor
AreaId=16777216, NeighborInterface=GigabitEthernet0/0/0,NeighborDownImmediate re
ason=Neighbor Down Due to Kill Neighbor, NeighborDownPrimeReason=Area reset, Nei
ghborChangeTime=2024-04-19 22:53:07-08:00) 
[R3-ospf-1-area-0.0.0.1]
Apr 19 2024 22:53:07-08:00 R3 %%01OSPF/3/NBR_CHG_DOWN(l)[2]:Neighbor event:neigh
bor state changed to Down. (ProcessId=256, NeighborAddress=2.2.2.2, NeighborEven
t=KillNbr, NeighborPreviousState=Full, NeighborCurrentState=Down) 
[R3-ospf-1-area-0.0.0.1]
Apr 19 2024 22:53:07-08:00 R3 %%01OSPF/3/NBR_DOWN_REASON(l)[3]:Neighbor state le
aves full or changed to Down. (ProcessId=256, NeighborRouterId=2.2.2.2, Neighbor
AreaId=16777216, NeighborInterface=GigabitEthernet0/0/0,NeighborDownImmediate re
ason=Neighbor Down Due to Kill Neighbor, NeighborDownPrimeReason=Area reset, Nei
ghborChangeTime=2024-04-19 22:53:07-08:00) 
[R3-ospf-1-area-0.0.0.1]q
[R3-ospf-1]

R2:

<R2>sy
Enter system view, return user view with Ctrl+Z.
[R2]os	
[R2]ospf 1
[R2-ospf-1]a 1
[R2-ospf-1-area-0.0.0.1]st	
[R2-ospf-1-area-0.0.0.1]stub no	
[R2-ospf-1-area-0.0.0.1]stub no-summary 
Apr 19 2024 22:54:25-08:00 R2 %%01OSPF/3/NBR_CHG_DOWN(l)[0]:Neighbor event:neigh
bor state changed to Down. (ProcessId=256, NeighborAddress=1.1.1.1, NeighborEven
t=KillNbr, NeighborPreviousState=Full, NeighborCurrentState=Down) 
[R2-ospf-1-area-0.0.0.1]
[R2-ospf-1-area-0.0.0.1]
Apr 19 2024 22:54:25-08:00 R2 %%01OSPF/3/NBR_DOWN_REASON(l)[1]:Neighbor state le
aves full or changed to Down. (ProcessId=256, NeighborRouterId=1.1.1.1, Neighbor
AreaId=16777216, NeighborInterface=GigabitEthernet0/0/0,NeighborDownImmediate re
ason=Neighbor Down Due to Kill Neighbor, NeighborDownPrimeReason=Area reset, Nei
ghborChangeTime=2024-04-19 22:54:25-08:00) 
[R2-ospf-1-area-0.0.0.1]q
[R2-ospf-1]
Apr 19 2024 22:54:27-08:00 R2 %%01OSPF/4/NBR_CHANGE_E(l)[2]:Neighbor changes eve
nt: neighbor status changed. (ProcessId=256, NeighborAddress=3.33.16.172, Neighb
orEvent=HelloReceived, NeighborPreviousState=Down, NeighborCurrentState=Init) 
[R2-ospf-1]
Apr 19 2024 22:54:27-08:00 R2 %%01OSPF/4/NBR_CHANGE_E(l)[3]:Neighbor changes eve
nt: neighbor status changed. (ProcessId=256, NeighborAddress=3.33.16.172, Neighb
orEvent=2WayReceived, NeighborPreviousState=Init, NeighborCurrentState=2Way) 
[R2-ospf-1]
Apr 19 2024 22:54:27-08:00 R2 %%01OSPF/4/NBR_CHANGE_E(l)[4]:Neighbor changes eve
nt: neighbor status changed. (ProcessId=256, NeighborAddress=3.33.16.172, Neighb
orEvent=AdjOk?, NeighborPreviousState=2Way, NeighborCurrentState=ExStart) 
[R2-ospf-1]
Apr 19 2024 22:54:27-08:00 R2 %%01OSPF/4/NBR_CHANGE_E(l)[5]:Neighbor changes eve
nt: neighbor status changed. (ProcessId=256, NeighborAddress=3.33.16.172, Neighb
orEvent=NegotiationDone, NeighborPreviousState=ExStart, NeighborCurrentState=Exc
hange) 
[R2-ospf-1]
Apr 19 2024 22:54:27-08:00 R2 %%01OSPF/4/NBR_CHANGE_E(l)[6]:Neighbor changes eve
nt: neighbor status changed. (ProcessId=256, NeighborAddress=3.33.16.172, Neighb
orEvent=ExchangeDone, NeighborPreviousState=Exchange, NeighborCurrentState=Loadi
ng) 
[R2-ospf-1]
Apr 19 2024 22:54:27-08:00 R2 %%01OSPF/4/NBR_CHANGE_E(l)[7]:Neighbor changes eve
nt: neighbor status changed. (ProcessId=256, NeighborAddress=3.33.16.172, Neighb
orEvent=LoadingDone, NeighborPreviousState=Loading, NeighborCurrentState=Full) 
[R2-ospf-1]

R1:

<R1>sy
Enter system view, return user view with Ctrl+Z.
[R1]os	
[R1]ospf 1
[R1-ospf-1]a 1
[R1-ospf-1-area-0.0.0.1]st	
[R1-ospf-1-area-0.0.0.1]stub nm	
[R1-ospf-1-area-0.0.0.1]stub n
Apr 19 2024 22:55:06-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=InactivityTimer, NeighborPreviousState=Full, NeighborCurrentState=Down) 
[R1-ospf-1-area-0.0.0.1]stub n
Apr 19 2024 22:55:06-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=16777216, NeighborInterface=GigabitEthernet0/0/0,NeighborDownImmediate re
ason=Neighbor Down Due to Inactivity, NeighborDownPrimeReason=Area Option Mis-ma
tch, NeighborChangeTime=2024-04-19 22:55:06-08:00) 
[R1-ospf-1-area-0.0.0.1]stub no	
[R1-ospf-1-area-0.0.0.1]stub no-summary 
[R1-ospf-1-area-0.0.0.1]
Apr 19 2024 22:55:11-08:00 R1 %%01OSPF/4/NBR_CHANGE_E(l)[2]:Neighbor changes eve
nt: neighbor status changed. (ProcessId=256, NeighborAddress=2.33.16.172, Neighb
orEvent=HelloReceived, NeighborPreviousState=Down, NeighborCurrentState=Init) 
[R1-ospf-1-area-0.0.0.1]
Apr 19 2024 22:55:11-08:00 R1 %%01OSPF/4/NBR_CHANGE_E(l)[3]:Neighbor changes eve
nt: neighbor status changed. (ProcessId=256, NeighborAddress=2.33.16.172, Neighb
orEvent=2WayReceived, NeighborPreviousState=Init, NeighborCurrentState=2Way) 
[R1-ospf-1-area-0.0.0.1]
Apr 19 2024 22:55:11-08:00 R1 %%01OSPF/4/NBR_CHANGE_E(l)[4]:Neighbor changes eve
nt: neighbor status changed. (ProcessId=256, NeighborAddress=2.33.16.172, Neighb
orEvent=AdjOk?, NeighborPreviousState=2Way, NeighborCurrentState=ExStart) 
[R1-ospf-1-area-0.0.0.1]
Apr 19 2024 22:55:11-08:00 R1 %%01OSPF/4/NBR_CHANGE_E(l)[5]:Neighbor changes eve
nt: neighbor status changed. (ProcessId=256, NeighborAddress=2.33.16.172, Neighb
orEvent=NegotiationDone, NeighborPreviousState=ExStart, NeighborCurrentState=Exc
hange) 
[R1-ospf-1-area-0.0.0.1]
Apr 19 2024 22:55:11-08:00 R1 %%01OSPF/4/NBR_CHANGE_E(l)[6]:Neighbor changes eve
nt: neighbor status changed. (ProcessId=256, NeighborAddress=2.33.16.172, Neighb
orEvent=ExchangeDone, NeighborPreviousState=Exchange, NeighborCurrentState=Loadi
ng) 
[R1-ospf-1-area-0.0.0.1]
Apr 19 2024 22:55:11-08:00 R1 %%01OSPF/4/NBR_CHANGE_E(l)[7]:Neighbor changes eve
nt: neighbor status changed. (ProcessId=256, NeighborAddress=2.33.16.172, Neighb
orEvent=LoadingDone, NeighborPreviousState=Loading, NeighborCurrentState=Full) 
[R1-ospf-1-area-0.0.0.1]q
[R1-ospf-1]
Apr 19 2024 22:55:15-08:00 R1 %%01OSPF/4/NBR_CHANGE_E(l)[8]:Neighbor changes eve
nt: neighbor status changed. (ProcessId=256, NeighborAddress=3.33.16.172, Neighb
orEvent=HelloReceived, NeighborPreviousState=Down, NeighborCurrentState=Init) 
[R1-ospf-1]
Apr 19 2024 22:55:15-08:00 R1 %%01OSPF/4/NBR_CHANGE_E(l)[9]:Neighbor changes eve
nt: neighbor status changed. (ProcessId=256, NeighborAddress=3.33.16.172, Neighb
orEvent=2WayReceived, NeighborPreviousState=Init, NeighborCurrentState=2Way) 
[R1-ospf-1]
Apr 19 2024 22:55:15-08:00 R1 %%01OSPF/4/NBR_CHANGE_E(l)[10]:Neighbor changes ev
ent: neighbor status changed. (ProcessId=256, NeighborAddress=3.33.16.172, Neigh
borEvent=AdjOk?, NeighborPreviousState=2Way, NeighborCurrentState=ExStart) 
[R1-ospf-1]
Apr 19 2024 22:55:15-08:00 R1 %%01OSPF/4/NBR_CHANGE_E(l)[11]:Neighbor changes ev
ent: neighbor status changed. (ProcessId=256, NeighborAddress=3.33.16.172, Neigh
borEvent=NegotiationDone, NeighborPreviousState=ExStart, NeighborCurrentState=Ex
change) 
[R1-ospf-1]
Apr 19 2024 22:55:15-08:00 R1 %%01OSPF/4/NBR_CHANGE_E(l)[12]:Neighbor changes ev
ent: neighbor status changed. (ProcessId=256, NeighborAddress=3.33.16.172, Neigh
borEvent=ExchangeDone, NeighborPreviousState=Exchange, NeighborCurrentState=Load
ing) 
[R1-ospf-1]
Apr 19 2024 22:55:15-08:00 R1 %%01OSPF/4/NBR_CHANGE_E(l)[13]:Neighbor changes ev
ent: neighbor status changed. (ProcessId=256, NeighborAddress=3.33.16.172, Neigh
borEvent=LoadingDone, NeighborPreviousState=Loading, NeighborCurrentState=Full) 

[R1-ospf-1]
区域2为完全NSSA区域

R6:

<R6>sy
Enter system view, return user view with Ctrl+Z.
[R6]os	
[R6]ospf 1
[R6-ospf-1]a 2
[R6-ospf-1-area-0.0.0.2]ns	
[R6-ospf-1-area-0.0.0.2]nssa no	
[R6-ospf-1-area-0.0.0.2]nssa no-import-route
[R6-ospf-1-area-0.0.0.2]nssa no-summary
Apr 19 2024 22:56:34-08:00 R6 %%01OSPF/3/NBR_CHG_DOWN(l)[0]:Neighbor event:neigh
bor state changed to Down. (ProcessId=256, NeighborAddress=11.11.11.11, Neighbor
Event=KillNbr, NeighborPreviousState=Full, NeighborCurrentState=Down) 
[R6-ospf-1-area-0.0.0.2]
Apr 19 2024 22:56:34-08:00 R6 %%01OSPF/3/NBR_DOWN_REASON(l)[1]:Neighbor state le
aves full or changed to Down. (ProcessId=256, NeighborRouterId=11.11.11.11, Neig
hborAreaId=33554432, NeighborInterface=GigabitEthernet0/0/0,NeighborDownImmediat
e reason=Neighbor Down Due to Kill Neighbor, NeighborDownPrimeReason=Hello Not S
een, NeighborChangeTime=2024-04-19 22:56:34-08:00) 
[R6-ospf-1-area-0.0.0.2]q
[R6-ospf-1]

R11:

[R11]os	
[R11]ospf 1
[R11-ospf-1]a 2
[R11-ospf-1-area-0.0.0.2]n
Apr 19 2024 22:57:10-08:00 R11 %%01OSPF/3/NBR_CHG_DOWN(l)[0]:Neighbor event:neig
hbor state changed to Down. (ProcessId=256, NeighborAddress=6.6.6.6, NeighborEve
nt=InactivityTimer, NeighborPreviousState=Full, NeighborCurrentState=Down) 
[R11-ospf-1-area-0.0.0.2]n
Apr 19 2024 22:57:10-08:00 R11 %%01OSPF/3/NBR_DOWN_REASON(l)[1]:Neighbor state l
eaves full or changed to Down. (ProcessId=256, NeighborRouterId=6.6.6.6, Neighbo
rAreaId=33554432, NeighborInterface=GigabitEthernet0/0/0,NeighborDownImmediate r
eason=Neighbor Down Due to Inactivity, NeighborDownPrimeReason=Area Option Mis-m
atch, NeighborChangeTime=2024-04-19 22:57:10-08:00) 
[R11-ospf-1-area-0.0.0.2]naas	
[R11-ospf-1-area-0.0.0.2]ns	
[R11-ospf-1-area-0.0.0.2]nssa no-	
[R11-ospf-1-area-0.0.0.2]nssa no-import-route
[R11-ospf-1-area-0.0.0.2]nssa no-summary
Apr 19 2024 22:57:16-08:00 R11 %%01OSPF/3/NBR_CHG_DOWN(l)[2]:Neighbor event:neig
hbor state changed to Down. (ProcessId=256, NeighborAddress=12.12.12.12, Neighbo
rEvent=KillNbr, NeighborPreviousState=Full, NeighborCurrentState=Down) 
[R11-ospf-1-area-0.0.0.2]
[R11-ospf-1-area-0.0.0.2]
Apr 19 2024 22:57:16-08:00 R11 %%01OSPF/3/NBR_DOWN_REASON(l)[3]:Neighbor state l
eaves full or changed to Down. (ProcessId=256, NeighborRouterId=12.12.12.12, Nei
ghborAreaId=33554432, NeighborInterface=GigabitEthernet0/0/1,NeighborDownImmedia
te reason=Neighbor Down Due to Kill Neighbor, NeighborDownPrimeReason=Area reset
, NeighborChangeTime=2024-04-19 22:57:16-08:00) 
[R11-ospf-1-area-0.0.0.2]q

R12:

<R12>sy
Enter system view, return user view with Ctrl+Z.
[R12]os	
[R12]ospf 1
Apr 19 2024 22:57:52-08:00 R12 %%01OSPF/3/NBR_CHG_DOWN(l)[0]:Neighbor event:neig
hbor state changed to Down. (ProcessId=256, NeighborAddress=11.11.11.11, Neighbo
rEvent=InactivityTimer, NeighborPreviousState=Full, NeighborCurrentState=Down) 
[R12]ospf 1
Apr 19 2024 22:57:52-08:00 R12 %%01OSPF/3/NBR_DOWN_REASON(l)[1]:Neighbor state l
eaves full or changed to Down. (ProcessId=256, NeighborRouterId=11.11.11.11, Nei
ghborAreaId=33554432, NeighborInterface=GigabitEthernet0/0/0,NeighborDownImmedia
te reason=Neighbor Down Due to Inactivity, NeighborDownPrimeReason=Area Option M
is-match, NeighborChangeTime=2024-04-19 22:57:52-08:00) 
[R12-ospf-1]a 2
[R12-ospf-1-area-0.0.0.2]ns	
[R12-ospf-1-area-0.0.0.2]nssa no-s	
[R12-ospf-1-area-0.0.0.2]nssa no-summary 
[R12-ospf-1-area-0.0.0.2]q
[R12-ospf-1]
区域3为完全NSSA区域

R7:

[R7]ops	
[R7]os	
[R7]ospf 1
[R7-ospf-1]a 34
[R7-ospf-1-area-0.0.0.34]q
[R7-ospf-1]a 3
[R7-ospf-1-area-0.0.0.3]nas	
[R7-ospf-1-area-0.0.0.3]ns	
[R7-ospf-1-area-0.0.0.3]nssa no-s	
[R7-ospf-1-area-0.0.0.3]nssa no-summary 
Apr 19 2024 22:59:28-08:00 R7 %%01OSPF/3/NBR_CHG_DOWN(l)[0]:Neighbor event:neigh
bor state changed to Down. (ProcessId=256, NeighborAddress=8.8.8.8, NeighborEven
t=KillNbr, NeighborPreviousState=Full, NeighborCurrentState=Down) 
[R7-ospf-1-area-0.0.0.3]
Apr 19 2024 22:59:28-08:00 R7 %%01OSPF/3/NBR_DOWN_REASON(l)[1]:Neighbor state le
aves full or changed to Down. (ProcessId=256, NeighborRouterId=8.8.8.8, Neighbor
AreaId=50331648, NeighborInterface=GigabitEthernet0/0/1,NeighborDownImmediate re
ason=Neighbor Down Due to Kill Neighbor, NeighborDownPrimeReason=Hello Not Seen,
 NeighborChangeTime=2024-04-19 22:59:28-08:00) 
[R7-ospf-1-area-0.0.0.3]

R8:

[R8]os	
[R8]ospf
Apr 19 2024 23:00:05-08:00 R8 %%01OSPF/3/NBR_CHG_DOWN(l)[0]:Neighbor event:neigh
bor state changed to Down. (ProcessId=256, NeighborAddress=7.7.7.7, NeighborEven
t=InactivityTimer, NeighborPreviousState=Full, NeighborCurrentState=Down) 
[R8]ospf 1
Apr 19 2024 23:00:05-08:00 R8 %%01OSPF/3/NBR_DOWN_REASON(l)[1]:Neighbor state le
aves full or changed to Down. (ProcessId=256, NeighborRouterId=7.7.7.7, Neighbor
AreaId=50331648, NeighborInterface=GigabitEthernet0/0/0,NeighborDownImmediate re
ason=Neighbor Down Due to Inactivity, NeighborDownPrimeReason=Area Option Mis-ma
tch, NeighborChangeTime=2024-04-19 23:00:05-08:00) 
[R8]ospf 1
[R8-ospf-1]a 3
[R8-ospf-1-area-0.0.0.3]nas	
[R8-ospf-1-area-0.0.0.3]ns	
[R8-ospf-1-area-0.0.0.3]nssa no-s	
[R8-ospf-1-area-0.0.0.3]nssa no-summary 
Apr 19 2024 23:00:12-08:00 R8 %%01OSPF/3/NBR_CHG_DOWN(l)[2]:Neighbor event:neigh
bor state changed to Down. (ProcessId=256, NeighborAddress=9.9.9.9, NeighborEven
t=KillNbr, NeighborPreviousState=Full, NeighborCurrentState=Down) 
[R8-ospf-1-area-0.0.0.3]
[R8-ospf-1-area-0.0.0.3]
Apr 19 2024 23:00:12-08:00 R8 %%01OSPF/3/NBR_DOWN_REASON(l)[3]:Neighbor state le
aves full or changed to Down. (ProcessId=256, NeighborRouterId=9.9.9.9, Neighbor
AreaId=50331648, NeighborInterface=GigabitEthernet0/0/1,NeighborDownImmediate re
ason=Neighbor Down Due to Kill Neighbor, NeighborDownPrimeReason=Area reset, Nei
ghborChangeTime=2024-04-19 23:00:12-08:00) 
[R8-ospf-1-area-0.0.0.3]q
[R8-ospf-1]

R9:

<R9>sy
Enter system view, return user view with Ctrl+Z.
[R9]os	
[R9]ospf 1
[R9-ospf-1]a 3e
             ^
Error: Wrong parameter found at '^' position.
[R9-ospf-1]a 3
[R9-ospf-1-area-0.0.0.3]ns	
[R9-ospf-1-area-0.0.0.3]nssa no-s	
[R9-ospf-1-area-0.0.0.3]nssa no-summary 
Apr 19 2024 23:00:43-08:00 R9 %%01OSPF/3/NBR_CHG_DOWN(l)[0]:Neighbor event:neigh
bor state changed to Down. (ProcessId=256, NeighborAddress=8.8.8.8, NeighborEven
t=KillNbr, NeighborPreviousState=Full, NeighborCurrentState=Down) 
[R9-ospf-1-area-0.0.0.3]
[R9-ospf-1-area-0.0.0.3]
Apr 19 2024 23:00:43-08:00 R9 %%01OSPF/3/NBR_DOWN_REASON(l)[1]:Neighbor state le
aves full or changed to Down. (ProcessId=256, NeighborRouterId=8.8.8.8, Neighbor
AreaId=50331648, NeighborInterface=GigabitEthernet0/0/0,NeighborDownImmediate re
ason=Neighbor Down Due to Kill Neighbor, NeighborDownPrimeReason=Area reset, Nei
ghborChangeTime=2024-04-19 23:00:43-08:00) 
[R9-ospf-1-area-0.0.0.3]q
[R9-ospf-1]

第十二步:在R9上给R10下发一条缺省

R9:不加always,因为R9上有缺省,若无则加

[R9]so	
[R9]os	
[R9]ospf 2
[R9-ospf-2]de	
[R9-ospf-2]default-route-advertise
[R9-ospf-2]

第十三步:加快收敛(更改hello时间)

区域1

R1:

<R1>sy
Enter system view, return user view with Ctrl+Z.
[R1]int g0/0/0
[R1-GigabitEthernet0/0/0]os	
[R1-GigabitEthernet0/0/0]ospf t	
[R1-GigabitEthernet0/0/0]ospf time	
[R1-GigabitEthernet0/0/0]ospf timer h	
[R1-GigabitEthernet0/0/0]ospf timer hello 5
[R1-GigabitEthernet0/0/0]

R2:

<R2>sy
Enter system view, return user view with Ctrl+Z.
[R2]int g0/0/0
[R2-GigabitEthernet0/0/0]os	
[R2-GigabitEthernet0/0/0]ospf ti	
[R2-GigabitEthernet0/0/0]ospf timer h	
[R2-GigabitEthernet0/0/0]ospf timer hello 5
[R2-GigabitEthernet0/0/0]

R3:

<R3>sy
Enter system view, return user view with Ctrl+Z.
[R3]os	
[R3]ospf tim	
[R3]int g 0/0/0
[R3-GigabitEthernet0/0/0]os	
[R3-GigabitEthernet0/0/0]ospfv3 tim	
[R3-GigabitEthernet0/0/0]ospfv3 timer h	
[R3-GigabitEthernet0/0/0]ospfv3 timer hello 5
Error: Interface is not enabled with IPv6.
[R3-GigabitEthernet0/0/0]ospf timer hello 
[R3-GigabitEthernet0/0/0]
区域0

R3:

[R3-GigabitEthernet0/0/0]q
[R3]int s 4/0/0
[R3-Serial4/0/0]os	
[R3-Serial4/0/0]ospf tiu	
[R3-Serial4/0/0]ospf ti	
[R3-Serial4/0/0]ospf timer h	
[R3-Serial4/0/0]ospf timer hello 5
[R3-Serial4/0/0]
[R3-Serial4/0/0]q
[R3]

R5:

<R5>sy
Enter system view, return user view with Ctrl+Z.
[R5]int s 4/0/0
[R5-Serial4/0/0]os	
[R5-Serial4/0/0]ospf ti	
[R5-Serial4/0/0]ospf timer h	
[R5-Serial4/0/0]ospf timer hello 5
[R5-Serial4/0/0]
[R5-Serial4/0/0]
[R5-Serial4/0/0]

R6:

<R6>sy
Enter system view, return user view with Ctrl+Z.
[R6]int s 4/0/0
[R6-Serial4/0/0]os	
[R6-Serial4/0/0]ospf ti	
[R6-Serial4/0/0]ospf timer h	
[R6-Serial4/0/0]ospf timer hello 5
[R6-Serial4/0/0]
[R6-Serial4/0/0]
[R6-Serial4/0/0]

R7:

<R7>sy
Enter system view, return user view with Ctrl+Z.
[R7]int g 0/0/0
[R7-GigabitEthernet0/0/0]os	
[R7-GigabitEthernet0/0/0]ospf ti	
[R7-GigabitEthernet0/0/0]ospf timer h	
[R7-GigabitEthernet0/0/0]ospf timer hello 5
[R7-GigabitEthernet0/0/0]
[R7-GigabitEthernet0/0/0]
[R7-GigabitEthernet0/0/0]
区域2

R6:

[R6]int g0/0/0
[R6-GigabitEthernet0/0/0]os	
[R6-GigabitEthernet0/0/0]ospf tim	
[R6-GigabitEthernet0/0/0]ospf timer h	
[R6-GigabitEthernet0/0/0]ospf timer hello 5
[R6-GigabitEthernet0/0/0]

R11:

<R11>sy
Enter system view, return user view with Ctrl+Z.
[R11]int g 0/0/0
[R11-GigabitEthernet0/0/0]os	
[R11-GigabitEthernet0/0/0]ospf tim	
[R11-GigabitEthernet0/0/0]ospf timer h	
[R11-GigabitEthernet0/0/0]ospf timer hello 5
[R11-GigabitEthernet0/0/0]q
[R11]int g 0/0/1
[R11-GigabitEthernet0/0/1]
[R11-GigabitEthernet0/0/1]os	
[R11-GigabitEthernet0/0/1]ospf tim	
[R11-GigabitEthernet0/0/1]ospf timer  h	
[R11-GigabitEthernet0/0/1]ospf timer  hello 5
[R11-GigabitEthernet0/0/1]

R12:

<R12>sy
Enter system view, return user view with Ctrl+Z.
[R12]int g0/0/0
[R12-GigabitEthernet0/0/0]os	
[R12-GigabitEthernet0/0/0]ospf tim	
[R12-GigabitEthernet0/0/0]ospf timer h	
[R12-GigabitEthernet0/0/0]ospf timer hello 5
[R12-GigabitEthernet0/0/0]
区域3:

R7:

[R7]int g 0/0/1
[R7-GigabitEthernet0/0/1]os	
[R7-GigabitEthernet0/0/1]ospf tio	
[R7-GigabitEthernet0/0/1]ospf ti	
[R7-GigabitEthernet0/0/1]ospf timer h	
[R7-GigabitEthernet0/0/1]ospf timer hello 5
[R7-GigabitEthernet0/0/1]

R8:

<R8>sy
Enter system view, return user view with Ctrl+Z.
[R8]int g 0/0/0
[R8-GigabitEthernet0/0/0]os	
[R8-GigabitEthernet0/0/0]ospf he	
[R8-GigabitEthernet0/0/0]ospf hti	
[R8-GigabitEthernet0/0/0]ospf ti	
[R8-GigabitEthernet0/0/0]ospf timer he	
[R8-GigabitEthernet0/0/0]ospf timer hello 5
[R8-GigabitEthernet0/0/0]q
[R8]int g 0/0/0
[R8-GigabitEthernet0/0/0]q
[R8]int g 0/0/1
[R8-GigabitEthernet0/0/1]os	
[R8-GigabitEthernet0/0/1]ospf he	
[R8-GigabitEthernet0/0/1]ospf ti	
[R8-GigabitEthernet0/0/1]ospf timer he	
[R8-GigabitEthernet0/0/1]ospf timer hello 5
[R8-GigabitEthernet0/0/1]

R9:

<R9>sy
Enter system view, return user view with Ctrl+Z.
[R9]int g 0/0/0
[R9-GigabitEthernet0/0/0]os	
[R9-GigabitEthernet0/0/0]ospf ti	
[R9-GigabitEthernet0/0/0]ospf timer h	
[R9-GigabitEthernet0/0/0]ospf timer hello 5
[R9-GigabitEthernet0/0/0]
区域4:

R9:

[R9]int g 0/0/1
[R9-GigabitEthernet0/0/1]os	
[R9-GigabitEthernet0/0/1]ospf tim	
[R9-GigabitEthernet0/0/1]ospf timer he	
[R9-GigabitEthernet0/0/1]ospf timer hello 5
[R9-GigabitEthernet0/0/1]

R10:

<R10>sy
Enter system view, return user view with Ctrl+Z.
[R10]int g 0/0/0
[R10-GigabitEthernet0/0/0]os	
[R10-GigabitEthernet0/0/0]ospf tim	
[R10-GigabitEthernet0/0/0]ospf timer h	
[R10-GigabitEthernet0/0/0]ospf timer hello 5
[R10-GigabitEthernet0/0/0]q
[R10]

第十四步:增强安全性(区域认证)

区域1

R1:

<R1>sy
Enter system view, return user view with Ctrl+Z.
[R1]os	
[R1]ospf 1
[R1-ospf-1]a 1
[R1-ospf-1-area-0.0.0.1]au	
[R1-ospf-1-area-0.0.0.1]authentication-mode md	
[R1-ospf-1-area-0.0.0.1]authentication-mode md5 1 ci	
[R1-ospf-1-area-0.0.0.1]authentication-mode md5 1 cipher  12345
[R1-ospf-1-area-0.0.0.1]q
[R1-ospf-1]

R2:

<R2>sy
Enter system view, return user view with Ctrl+Z.
[R2]os	
[R2]ospf 1
[R2-ospf-1]a 1
[R2-ospf-1-area-0.0.0.1]authentication-mode md5 1 cipher  12345
[R2-ospf-1-area-0.0.0.1]q
[R2-ospf-1]

R3:

<R3>sy
Enter system view, return user view with Ctrl+Z.
[R3]os	
[R3]ospf 1
[R3-ospf-1]a 1
[R3-ospf-1-area-0.0.0.1]authentication-mode md5 1 cipher  12345
[R3-ospf-1-area-0.0.0.1]
区域0

R3:

[R3-ospf-1]os	
[R3-ospf-1]a 0
[R3-ospf-1-area-0.0.0.0]authentication-mode md5 1 cipher  12345
[R3-ospf-1-area-0.0.0.0]q
[R3-ospf-1]

R5:

<R5>sy
Enter system view, return user view with Ctrl+Z.
[R5]os	
[R5]ospf 1
[R5-ospf-1]a 0
[R5-ospf-1-area-0.0.0.0]authentication-mode md5 1 cipher  12345
[R5-ospf-1-area-0.0.0.0]q

R6:

<R6>sy
Enter system view, return user view with Ctrl+Z.
[R6]os	
[R6]ospf 1
[R6-ospf-1]a 0
[R6-ospf-1-area-0.0.0.0]authentication-mode md5 1 cipher  12345
[R6-ospf-1-area-0.0.0.0]q
[R6-ospf-1]q

R7:

<R7>sy
Enter system view, return user view with Ctrl+Z.
[R7]os 	
[R7]ospf 1
[R7-ospf-1]are	
[R7-ospf-1]area 0
[R7-ospf-1-area-0.0.0.0]authentication-mode md5 1 cipher  12345
Apr 19 2024 23:36:39-08:00 R7 %%01OSPF/3/NBR_CHG_DOWN(l)[0]:Neighbor event:neigh
bor state changed to Down. (ProcessId=256, NeighborAddress=3.3.3.3, NeighborEven
t=InactivityTimer, NeighborPreviousState=Full, NeighborCurrentState=Down) 
[R7-ospf-1-area-0.0.0.0]authentication-mode md5 1 cipher  12345
Apr 19 2024 23:36:39-08:00 R7 %%01OSPF/3/NBR_DOWN_REASON(l)[1]:Neighbor state le
aves full or changed to Down. (ProcessId=256, NeighborRouterId=3.3.3.3, Neighbor
AreaId=0, NeighborInterface=Tunnel0/0/0,NeighborDownImmediate reason=Neighbor Do
wn Due to Inactivity, NeighborDownPrimeReason=Hello Not Seen, NeighborChangeTime
=2024-04-19 23:36:39-08:00) 
[R7-ospf-1-area-0.0.0.0]authentication-mode md5 1 cipher  12345
[R7-ospf-1-area-0.0.0.0]q
[R7-ospf-1]
区域2

R6:

[R6]os	
[R6]ospf 1
[R6-ospf-1]a 2
[R6-ospf-1-area-0.0.0.2]authentication-mode md5 1 cipher  12345
[R6-ospf-1-area-0.0.0.2]q
[R6-ospf-1]

R11:

<R11>sy
Enter system view, return user view with Ctrl+Z.
[R11]os	
[R11]ospf 1
[R11-ospf-1]a 2
[R11-ospf-1-area-0.0.0.2]authentication-mode md5 1 cipher  12345
[R11-ospf-1-area-0.0.0.2]q

R12:

<R12>sy
Enter system view, return user view with Ctrl+Z.
[R12]os	
[R12]ospf 1
[R12-ospf-1]a 2
[R12-ospf-1-area-0.0.0.2]authentication-mode md5 1 cipher  12345
[R12-ospf-1-area-0.0.0.2]q
[R12-ospf-1]
区域3

R7:

[R7]os	
[R7]ospf 1
[R7-ospf-1]a 3
[R7-ospf-1-area-0.0.0.3]authentication-mode md5 1 cipher  12345
[R7-ospf-1-area-0.0.0.3]q

R8:

<R8>sy
Enter system view, return user view with Ctrl+Z.
[R8] os	
[R8]ospf 1
[R8-ospf-1]a 3
[R8-ospf-1-area-0.0.0.3]authentication-mode md5 1 cipher  12345
[R8-ospf-1-area-0.0.0.3]q
[R8-ospf-1]

R9:

<R9>sy
Enter system view, return user view with Ctrl+Z.
[R9]os	
[R9]ospf 1
[R9-ospf-1]a 3
[R9-ospf-1-area-0.0.0.3]authentication-mode md5 1 cipher  12345
[R9-ospf-1-area-0.0.0.3]q
[R9-ospf-1]q
区域4

R9:

[R9]os	
[R9]ospf 2
[R9-ospf-2]a 4
[R9-ospf-2-area-0.0.0.4]authentication-mode md5 1 cipher  12345

R10:

<R10>sy
Enter system view, return user view with Ctrl+Z.
[R10]os	
[R10]ospf 2
[R10-ospf-2]a 4
[R10-ospf-2-area-0.0.0.4]authentication-mode md5 1 cipher  12345
[R10-ospf-2-area-0.0.0.4]q

实验结束

相关推荐
小林熬夜学编程2 分钟前
【Linux网络编程】第十四弹---构建功能丰富的HTTP服务器:从状态码处理到服务函数扩展
linux·运维·服务器·c语言·网络·c++·http
Hacker_Fuchen4 分钟前
天融信网络架构安全实践
网络·安全·架构
上海运维Q先生7 分钟前
面试题整理15----K8s常见的网络插件有哪些
运维·网络·kubernetes
ProtonBase17 分钟前
如何从 0 到 1 ,打造全新一代分布式数据架构
java·网络·数据库·数据仓库·分布式·云原生·架构
fantasy_arch10 小时前
CPU性能优化-磁盘空间和解析时间
网络·性能优化
是Dream呀12 小时前
Python从0到100(七十八):神经网络--从0开始搭建全连接网络和CNN网络
网络·python·神经网络
kaixin_learn_qt_ing12 小时前
了解RPC
网络·网络协议·rpc
安全小王子13 小时前
Kali操作系统简单介绍
网络·web安全
Hacker_LaoYi14 小时前
【漏洞分析】DDOS攻防分析(四)——TCP篇
网络·tcp/ip·ddos
爱吃水果蝙蝠汤14 小时前
DATACOM-IP单播路由(BGP)-复习-实验
网络·网络协议·tcp/ip