实验三:MGRE环境下的OSPF综合实验

 要求:

1.R6为ISP只能配置IP地址,R1-R5的环回为私有网段。

2.R1/R4/R5为全连的MGRE结构,R1/R2/R3为星型的拓扑结构,R1为中心站点。

3.所有私网网段可以相互通讯,私有网段使用OSPF完成。

第一步:配置IP地址

R1
[r1]int g 0/0/0
[r1-GigabitEthernet0/0/0]ip add 116.0.0.1 24
Oct  9 2021 10:03:26-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]int g 0/0/1
[r1-GigabitEthernet0/0/1]ip add 16.0.0.1 24
Oct  9 2021 10:03:45-08:00 r1 %%01IFNET/4/LINK_STATE(l)[1]:The line protocol IP 
on the interface GigabitEthernet0/0/1 has entered the UP state. 
[r1-GigabitEthernet0/0/1]int l0
[r1-LoopBack0]ip add 192.168.1.1 24
[r1-LoopBack0]q
[r1]display ip interface brief 
*down: administratively down
^down: standby
(l): loopback
(s): spoofing
The number of interface that is UP in Physical is 4
The number of interface that is DOWN in Physical is 2
The number of interface that is UP in Protocol is 4
The number of interface that is DOWN in Protocol is 2

Interface                         IP Address/Mask      Physical   Protocol  
GigabitEthernet0/0/0              116.0.0.1/24         up         up        
GigabitEthernet0/0/1              16.0.0.1/24          up         up        
GigabitEthernet0/0/2              unassigned           down       down      
GigabitEthernet4/0/0              unassigned           down       down      
LoopBack0                         192.168.1.1/24       up         up(s)     
NULL0                             unassigned           up         up(s)  

R2
[r2]int g 0/0/0
[r2-GigabitEthernet0/0/0]ip add 26.0.0.1 24
Oct  9 2021 10:04:30-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]int l0
[r2-LoopBack0]ip add 192.168.2.1 24
[r2-LoopBack0]q
[r2]display ip interface brief 
*down: administratively down
^down: standby
(l): loopback
(s): spoofing
The number of interface that is UP in Physical is 3
The number of interface that is DOWN in Physical is 2
The number of interface that is UP in Protocol is 3
The number of interface that is DOWN in Protocol is 2

Interface                         IP Address/Mask      Physical   Protocol  
GigabitEthernet0/0/0              26.0.0.1/24          up         up        
GigabitEthernet0/0/1              unassigned           down       down      
GigabitEthernet0/0/2              unassigned           down       down      
LoopBack0                         192.168.2.1/24       up         up(s)     
NULL0                             unassigned           up         up(s)   

R3
[r3]int g 0/0/0
[r3-GigabitEthernet0/0/0]ip add 36.0.0.1 24
[r3-GigabitEthernet0/0/0]
Oct  9 2021 10:05:07-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]int l0
[r3-LoopBack0]ip add 192.168.3.1 24
[r3-LoopBack0]q
[r3]display ip interface brief 
*down: administratively down
^down: standby
(l): loopback
(s): spoofing
The number of interface that is UP in Physical is 3
The number of interface that is DOWN in Physical is 2
The number of interface that is UP in Protocol is 3
The number of interface that is DOWN in Protocol is 2

Interface                         IP Address/Mask      Physical   Protocol  
GigabitEthernet0/0/0              36.0.0.1/24          up         up        
GigabitEthernet0/0/1              unassigned           down       down      
GigabitEthernet0/0/2              unassigned           down       down      
LoopBack0                         192.168.3.1/24       up         up(s)     
NULL0                             unassigned           up         up(s)

R4
[r4]int g 0/0/0
[r4-GigabitEthernet0/0/0]ip add 46.0.0.1 24
[r4-GigabitEthernet0/0/0]
Oct  9 2021 10:05: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]int l0
[r4-LoopBack0]ip add 192.168.4.1 24
[r4-LoopBack0]q
[r4]display ip interface brief 
*down: administratively down
^down: standby
(l): loopback
(s): spoofing
The number of interface that is UP in Physical is 3
The number of interface that is DOWN in Physical is 2
The number of interface that is UP in Protocol is 3
The number of interface that is DOWN in Protocol is 2

Interface                         IP Address/Mask      Physical   Protocol  
GigabitEthernet0/0/0              46.0.0.1/24          up         up        
GigabitEthernet0/0/1              unassigned           down       down      
GigabitEthernet0/0/2              unassigned           down       down      
LoopBack0                         192.168.4.1/24       up         up(s)     
NULL0                             unassigned           up         up(s)     
[r4]


R5
[r5]int g 0/0/0
[r5-GigabitEthernet0/0/0]ip add 56.0.0.1 24
Oct  9 2021 10:06:30-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]int l0
[r5-LoopBack0]ip add 192.168.5.1 24
[r5-LoopBack0]q
[r5]display ip interface brief 
*down: administratively down
^down: standby
(l): loopback
(s): spoofing
The number of interface that is UP in Physical is 3
The number of interface that is DOWN in Physical is 2
The number of interface that is UP in Protocol is 3
The number of interface that is DOWN in Protocol is 2

Interface                         IP Address/Mask      Physical   Protocol  
GigabitEthernet0/0/0              56.0.0.1/24          up         up        
GigabitEthernet0/0/1              unassigned           down       down      
GigabitEthernet0/0/2              unassigned           down       down      
LoopBack0                         192.168.5.1/24       up         up(s)     
NULL0                             unassigned           up         up(s)     
[r5]

R6为ISP
[Huawei]sys isp
[isp]int g 0/0/0
[isp-GigabitEthernet0/0/0]ip add 116.0.0.2 14
Oct  9 2021 10:07:17-08:00 isp %%01IFNET/4/LINK_STATE(l)[0]:The line protocol IP
 on the interface GigabitEthernet0/0/0 has entered the UP state. 
[isp-GigabitEthernet0/0/0]int g 0/0/1
[isp-GigabitEthernet0/0/1]ip add 16.0.0.2 24
Oct  9 2021 10:07:32-08:00 isp %%01IFNET/4/LINK_STATE(l)[1]:The line protocol IP
 on the interface GigabitEthernet0/0/1 has entered the UP state. 
[isp-GigabitEthernet0/0/1]int g 0/0/2
[isp-GigabitEthernet0/0/2]ip add 26.0.0.2 24
Oct  9 2021 10:07:47-08:00 isp %%01IFNET/4/LINK_STATE(l)[2]:The line protocol IP
 on the interface GigabitEthernet0/0/2 has entered the UP state. 
[isp-GigabitEthernet0/0/2]int g 4/0/0
[isp-GigabitEthernet4/0/0]ip add 36.0.0.2 24
Oct  9 2021 10:08:02-08:00 isp %%01IFNET/4/LINK_STATE(l)[3]:The line protocol IP
 on the interface GigabitEthernet4/0/0 has entered the UP state. 
[isp-GigabitEthernet4/0/0]int g 1/0/0
[isp-GigabitEthernet1/0/0]ip add 46.0.0.2 24
Oct  9 2021 10:08:17-08:00 isp %%01IFNET/4/LINK_STATE(l)[4]:The line protocol IP
 on the interface GigabitEthernet1/0/0 has entered the UP state. 
[isp-GigabitEthernet1/0/0]int g 2/0/0
[isp-GigabitEthernet2/0/0]ip add 56.0.0.2 24
[isp-GigabitEthernet2/0/0]
Oct  9 2021 10:08:32-08:00 isp %%01IFNET/4/LINK_STATE(l)[5]:The line protocol IP
 on the interface GigabitEthernet2/0/0 has entered the UP state. 
[isp-GigabitEthernet2/0/0]q
[isp]display ip interface brief 
*down: administratively down
^down: standby
(l): loopback
(s): spoofing
The number of interface that is UP in Physical is 7
The number of interface that is DOWN in Physical is 2
The number of interface that is UP in Protocol is 7
The number of interface that is DOWN in Protocol is 2

Interface                         IP Address/Mask      Physical   Protocol  
Ethernet3/0/0                     unassigned           down       down      
Ethernet3/0/1                     unassigned           down       down      
GigabitEthernet0/0/0              116.0.0.2/14         up         up        
GigabitEthernet0/0/1              16.0.0.2/24          up         up        
GigabitEthernet0/0/2              26.0.0.2/24          up         up        
GigabitEthernet1/0/0              46.0.0.2/24          up         up        
GigabitEthernet2/0/0              56.0.0.2/24          up         up        
GigabitEthernet4/0/0              36.0.0.2/24          up         up        
NULL0                             unassigned           up         up(s)     
[isp]
        

第二步:配置缺省

[r1]ip route-static 0.0.0.0 0 16.0.0.2
[r1]ip route-static 0.0.0.0 0 116.0.0.2

[r2]ip route-static 0.0.0.0 0 26.0.0.2

[r3]ip route-static 0.0.0.0 0 36.0.0.2

[r4]ip route-static 0.0.0.0 0 46.0.0.2

[r5]ip route-static 0.0.0.0 0 56.0.0.2

第三步:R1/R2/R3为星型的拓扑结构,R1为中心站点

逻辑链路配置 ---- 10.0.0.0/24
[r1]int t 0/0/0
[r1-Tunnel0/0/0]ip add 10.0.0.1 24 
[r1-Tunnel0/0/0]tunnel-protocol gre p2mp 	
[r1-Tunnel0/0/0]source 16.0.0.1        ---出口ip
Oct  9 2021 10:27:01-08:00 r1 %%01IFNET/4/LINK_STATE(l)[0]:The line protocol IP 
on the interface Tunnel0/0/0 has entered the UP state. 
[r1-Tunnel0/0/0]nhrp network-id 100 
[r1-Tunnel0/0/0]nhrp entry multicast dynamic 

[r2]int t 0/0/0
[r2-Tunnel0/0/0]ip add 10.0.0.2 24
[r2-Tunnel0/0/0]tunnel-protocol gre p2mp 
[r2-Tunnel0/0/0]source GigabitEthernet 0/0/0
Oct  9 2021 10:33:47-08:00 r2 %%01IFNET/4/LINK_STATE(l)[0]:The line protocol IP 
on the interface Tunnel0/0/0 has entered the UP state. 
[r2-Tunnel0/0/0]nhrp network-id 100
[r2-Tunnel0/0/0]nhrp entry 10.0.0.1 16.0.0.1 register 

[r3]int t 0/0/0
[r3-Tunnel0/0/0]ip add 10.0.0.3 24	
[r3-Tunnel0/0/0]tunnel-protocol gre p2mp 
[r3-Tunnel0/0/0]source GigabitEthernet 0/0/0
Oct  9 2021 10:35:50-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]nhrp network-id 100
[r3-Tunnel0/0/0]nhrp entry 10.0.0.1 16.0.0.1 register 




[r1]display nhrp peer all  --- 在R1上查看路由信息
------------------------------------------------------------------------------- 
Protocol-addr   Mask  NBMA-addr       NextHop-addr    Type         Flag         
------------------------------------------------------------------------------- 
10.0.0.2        32    26.0.0.1        10.0.0.2        dynamic      route tunnel 
------------------------------------------------------------------------------- 
Tunnel interface: Tunnel0/0/0
Created time    : 00:02:54
Expire time     : 01:57:06
------------------------------------------------------------------------------- 
Protocol-addr   Mask  NBMA-addr       NextHop-addr    Type         Flag         
------------------------------------------------------------------------------- 
10.0.0.3        32    36.0.0.1        10.0.0.3        dynamic      route tunnel 
------------------------------------------------------------------------------- 
Tunnel interface: Tunnel0/0/0
Created time    : 00:00:40
Expire time     : 01:59:20

Number of nhrp peers: 2
[r1]

R1/R4/R5为全连的MGRE结构 ---- 11.0.0.0/24

[r1]int t 0/0/1
[r1-Tunnel0/0/1]ip add 11.0.0.1 24  ---重新创建接口	
[r1-Tunnel0/0/1]tunnel-protocol gre p2mp 
[r1-Tunnel0/0/1]source 116.0.0.1
Oct  9 2021 10:42:41-08:00 r1 %%01IFNET/4/LINK_STATE(l)[0]:The line protocol IP 
on the interface Tunnel0/0/1 has entered the UP state. 
[r1-Tunnel0/0/1]nhrp network-id 110	
[r1-Tunnel0/0/1]nhrp entry  multicast dynamic 
[r1-Tunnel0/0/1]nhrp entry 11.0.0.2 46.0.0.1 register 
[r1-Tunnel0/0/1]nhrp entry 11.0.0.3 56.0.0.1 register
[r1-Tunnel0/0/1]q

[r4]int t 0/0/0
[r4-Tunnel0/0/0]ip add 11.0.0.2 24
[r4-Tunnel0/0/0]tunnel-protocol gre p2mp 
[r4-Tunnel0/0/0]source 46.0.0.1
Oct  9 2021 10:44:16-08:00 r4 %%01IFNET/4/LINK_STATE(l)[0]:The line protocol IP 
on the interface Tunnel0/0/0 has entered the UP state. 
[r4-Tunnel0/0/0]nhrp network-id 110
[r4-Tunnel0/0/0]nhrp entry multicast dynamic 
[r4-Tunnel0/0/0]nhrp entry 11.0.0.1 116.0.0.1 register
Info: This peer protocol address conflicts with hub register peer protocol addre
ss. 
[r4-Tunnel0/0/0]nhrp entry 11.0.0.3 56.0.0.1 register
[r4-Tunnel0/0/0]q


[r5]int t 0/0/0
[r5-Tunnel0/0/0]ip add 11.0.0.3 24	
[r5-Tunnel0/0/0]tunnel-protocol gre p2mp 
[r5-Tunnel0/0/0]source 56.0.0.1
Oct  9 2021 10:45:20-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]nhrp network-id 110
[r5-Tunnel0/0/0]nhrp entry multicast dynamic 	
[r5-Tunnel0/0/0]nhrp entry 11.0.0.1 116.0.0.1 register
Info: This peer protocol address conflicts with hub register peer protocol addre
ss. 
[r5-Tunnel0/0/0]nhrp entry 11.0.0.2 46.0.0.1 register
[r5-Tunnel0/0/0]q

	
[r1]display nhrp peer all 
------------------------------------------------------------------------------- 
Protocol-addr   Mask  NBMA-addr       NextHop-addr    Type         Flag         
------------------------------------------------------------------------------- 
10.0.0.2        32    26.0.0.1        10.0.0.2        dynamic      route tunnel 
------------------------------------------------------------------------------- 
Tunnel interface: Tunnel0/0/0
Created time    : 00:16:06
Expire time     : 01:43:54
------------------------------------------------------------------------------- 
Protocol-addr   Mask  NBMA-addr       NextHop-addr    Type         Flag         
------------------------------------------------------------------------------- 
10.0.0.3        32    36.0.0.1        10.0.0.3        dynamic      route tunnel 
------------------------------------------------------------------------------- 
Tunnel interface: Tunnel0/0/0
Created time    : 00:13:52
Expire time     : 01:46:08
------------------------------------------------------------------------------- 
Protocol-addr   Mask  NBMA-addr       NextHop-addr    Type         Flag         
------------------------------------------------------------------------------- 
11.0.0.2        32    46.0.0.1        11.0.0.2        static       hub          
------------------------------------------------------------------------------- 
Tunnel interface: Tunnel0/0/1
Created time    : 00:03:47
Expire time     : --

第四步:在私网上运行OSPF---(单区域)

R1

[r1]ospf 1 router-id 1.1.1.1
[r1-ospf-1]a 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]network 10.0.0.0 0.0.0.255
[r1-ospf-1-area-0.0.0.0]network 11.0.0.0 0.0.0.255


R2

[r2]ospf 1 router-id 2.2.2.2
[r2-ospf-1]a 0
[r2-ospf-1-area-0.0.0.0]network 10.0.0.0 0.0.0.255
[r2-ospf-1-area-0.0.0.0]network 1
Oct  9 2021 10:59:08-08:00 r2 %%01OSPF/4/NBR_CHANGE_E(l)[0]:Neighbor changes eve
nt: neighbor status changed. (ProcessId=256, NeighborAddress=1.0.0.10, NeighborE
vent=HelloReceived, NeighborPreviousState=Down, NeighborCurrentState=Init) 

[r2-ospf-1-area-0.0.0.0]network 1 0.0.0.255
Oct  9 2021 10:59:08-08:00 r2 %%01OSPF/4/NBR_CHANGE_E(l)[1]:Neighbor changes eve
nt: neighbor status changed. (ProcessId=256, NeighborAddress=1.0.0.10, NeighborE
vent=2WayReceived, NeighborPreviousState=Init, NeighborCurrentState=ExStart) 

[r2-ospf-1-area-0.0.0.0]network 1 0.0.0.25
Oct  9 2021 10:59:08-08:00 r2 %%01OSPF/4/NBR_CHANGE_E(l)[2]:Neighbor changes eve
nt: neighbor status changed. (ProcessId=256, NeighborAddress=1.0.0.10, NeighborE
vent=NegotiationDone, NeighborPreviousState=ExStart, NeighborCurrentState=Exchan
ge) 
[r2-ospf-1-area-0.0.0.0]network  0.0.0.255
Oct  9 2021 10:59:08-08:00 r2 %%01OSPF/4/NBR_CHANGE_E(l)[3]:Neighbor changes eve
nt: neighbor status changed. (ProcessId=256, NeighborAddress=1.0.0.10, NeighborE
vent=ExchangeDone, NeighborPreviousState=Exchange, NeighborCurrentState=Loading)
 
[r2-ospf-1-area-0.0.0.0]network  0.0.0.255
Oct  9 2021 10:59:08-08:00 r2 %%01OSPF/4/NBR_CHANGE_E(l)[4]:Neighbor changes eve
nt: neighbor status changed. (ProcessId=256, NeighborAddress=1.0.0.10, NeighborE
vent=LoadingDone, NeighborPreviousState=Loading, NeighborCurrentState=Full) 

[r2-ospf-1-area-0.0.0.0]network 192.168.2.0 0.0.0.255
[r2-ospf-1-area-0.0.0.0]q

R3

[r3]ospf 1 router-id 3.3.3.3
[r3-ospf-1]a 0
[r3-ospf-1-area-0.0.0.0]net	
[r3-ospf-1-area-0.0.0.0]network 10.0.0.0 0.0.0.255
[r3-ospf-1-area-0.0.0.0]ne
Oct  9 2021 11:00:48-08:00 r3 %%01OSPF/4/NBR_CHANGE_E(l)[0]:Neighbor changes eve
nt: neighbor status changed. (ProcessId=256, NeighborAddress=1.0.0.10, NeighborE
vent=HelloReceived, NeighborPreviousState=Down, NeighborCurrentState=Init) 
[r3-ospf-1-area-0.0.0.0]net	
[r3-ospf-1-area-0.0.0.0]network 192.168.3.0  0.0.0.255
[r3-ospf-1-area-0.0.0.0]q

R4

[r4]ospf 1 router-id 4.4.4.4
[r4-ospf-1]a 0
[r4-ospf-1-area-0.0.0.0]net	
[r4-ospf-1-area-0.0.0.0]network 11.0.0.0 0.0.0.255
[r4-ospf-1-area-0.0.0.0]b
Oct  9 2021 11:01:59-08:00 r4 %%01OSPF/4/NBR_CHANGE_E(l)[0]:Neighbor changes eve
nt: neighbor status changed. (ProcessId=256, NeighborAddress=1.0.0.11, NeighborE
vent=HelloReceived, NeighborPreviousState=Down, NeighborCurrentState=Init) 
[r4-ospf-1-area-0.0.0.0]be
Oct  9 2021 11:01:59-08:00 r4 %%01OSPF/4/NBR_CHANGE_E(l)[1]:Neighbor changes eve
nt: neighbor status changed. (ProcessId=256, NeighborAddress=1.0.0.11, NeighborE
vent=2WayReceived, NeighborPreviousState=Init, NeighborCurrentState=ExStart) 
[r4-ospf-1-area-0.0.0.0]be
Oct  9 2021 11:01:59-08:00 r4 %%01OSPF/4/NBR_CHANGE_E(l)[2]:Neighbor changes eve
nt: neighbor status changed. (ProcessId=256, NeighborAddress=1.0.0.11, NeighborE
vent=NegotiationDone, NeighborPreviousState=ExStart, NeighborCurrentState=Exchan
ge) 
[r4-ospf-1-area-0.0.0.0]be
Oct  9 2021 11:01:59-08:00 r4 %%01OSPF/4/NBR_CHANGE_E(l)[3]:Neighbor changes eve
nt: neighbor status changed. (ProcessId=256, NeighborAddress=1.0.0.11, NeighborE
vent=ExchangeDone, NeighborPreviousState=Exchange, NeighborCurrentState=Loading)
 
[r4-ospf-1-area-0.0.0.0]be
Oct  9 2021 11:01:59-08:00 r4 %%01OSPF/4/NBR_CHANGE_E(l)[4]:Neighbor changes eve
nt: neighbor status changed. (ProcessId=256, NeighborAddress=1.0.0.11, NeighborE
vent=LoadingDone, NeighborPreviousState=Loading, NeighborCurrentState=Full) 
[r4-ospf-1-area-0.0.0.0]bet	
[r4-ospf-1-area-0.0.0.0]net	
[r4-ospf-1-area-0.0.0.0]network 192.168.4.0 0.0.0.255
[r4-ospf-1-area-0.0.0.0]q
[r4-ospf-1]


R5

[r5]ospf 1 router-id 5.5.5.5
[r5-ospf-1]a 0
[r5-ospf-1-area-0.0.0.0]net	
[r5-ospf-1-area-0.0.0.0]network 11.0.0.0 0.0.0.255
[r5-ospf-1-area-0.0.0.0]n
Oct  9 2021 11:02:47-08:00 r5 %%01OSPF/4/NBR_CHANGE_E(l)[0]:Neighbor changes eve
nt: neighbor status changed. (ProcessId=256, NeighborAddress=1.0.0.11, NeighborE
vent=HelloReceived, NeighborPreviousState=Down, NeighborCurrentState=Init) 
[r5-ospf-1-area-0.0.0.0]net	
[r5-ospf-1-area-0.0.0.0]network 192.168.5.0 0.0.0.255
[r5-ospf-1-area-0.0.0.0]q

第五步:R1/R2/R3 --- P2MP


[r1]interface Tunnel 0/0/0	
[r1-Tunnel0/0/0]ospf network-type p2mp
[r1]display ip routing-table protocol ospf
Route Flags: R - relay, D - download to fib
------------------------------------------------------------------------------
Public routing table : OSPF
         Destinations : 5        Routes : 5        

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

Destination/Mask    Proto   Pre  Cost      Flags NextHop         Interface

       10.0.0.2/32  OSPF    10   1562        D   10.0.0.2        Tunnel0/0/0
       10.0.0.3/32  OSPF    10   1562        D   10.0.0.3        Tunnel0/0/0
    192.168.2.1/32  OSPF    10   1562        D   10.0.0.2        Tunnel0/0/0
    192.168.3.1/32  OSPF    10   1562        D   10.0.0.3        Tunnel0/0/0
    192.168.4.1/32  OSPF    10   1562        D   11.0.0.2        Tunnel0/0/1

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



[r2]int t 0/0/0
[r2-Tunnel0/0/0]ospf network-type p2mp
[r2-Tunnel0/0/0]
Oct  9 2021 11:22:13-08:00 r2 %%01OSPF/4/NBR_CHANGE_E(l)[13]:Neighbor changes ev
ent: neighbor status changed. (ProcessId=256, NeighborAddress=1.0.0.10, Neighbor
Event=HelloReceived, NeighborPreviousState=Down, NeighborCurrentState=Init) 
[r2-Tunnel0/0/0]
Oct  9 2021 11:22:13-08:00 r2 %%01OSPF/4/NBR_CHANGE_E(l)[14]:Neighbor changes ev
ent: neighbor status changed. (ProcessId=256, NeighborAddress=1.0.0.10, Neighbor
Event=2WayReceived, NeighborPreviousState=Init, NeighborCurrentState=ExStart) 
[r2-Tunnel0/0/0]
Oct  9 2021 11:22:13-08:00 r2 %%01OSPF/4/NBR_CHANGE_E(l)[15]:Neighbor changes ev
ent: neighbor status changed. (ProcessId=256, NeighborAddress=1.0.0.10, Neighbor
Event=NegotiationDone, NeighborPreviousState=ExStart, NeighborCurrentState=Excha
nge) 
[r2-Tunnel0/0/0]
Oct  9 2021 11:22:13-08:00 r2 %%01OSPF/4/NBR_CHANGE_E(l)[16]:Neighbor changes ev
ent: neighbor status changed. (ProcessId=256, NeighborAddress=1.0.0.10, Neighbor
Event=ExchangeDone, NeighborPreviousState=Exchange, NeighborCurrentState=Loading
) 
[r2-Tunnel0/0/0]
Oct  9 2021 11:22:13-08:00 r2 %%01OSPF/4/NBR_CHANGE_E(l)[17]:Neighbor changes ev
ent: neighbor status changed. (ProcessId=256, NeighborAddress=1.0.0.10, Neighbor
Event=LoadingDone, NeighborPreviousState=Loading, NeighborCurrentState=Full) 
[r2-Tunnel0/0/0]q
[r2]display ip routing-table protocol ospf
Route Flags: R - relay, D - download to fib
------------------------------------------------------------------------------
Public routing table : OSPF
         Destinations : 6        Routes : 6        

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

Destination/Mask    Proto   Pre  Cost      Flags NextHop         Interface

       10.0.0.1/32  OSPF    10   1562        D   10.0.0.1        Tunnel0/0/0
       10.0.0.3/32  OSPF    10   3124        D   10.0.0.1        Tunnel0/0/0
       11.0.0.0/24  OSPF    10   3124        D   10.0.0.1        Tunnel0/0/0
    192.168.1.1/32  OSPF    10   1562        D   10.0.0.1        Tunnel0/0/0
    192.168.3.1/32  OSPF    10   3124        D   10.0.0.1        Tunnel0/0/0
    192.168.4.1/32  OSPF    10   3124        D   10.0.0.1        Tunnel0/0/0

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




[r3]int t 0/0/0
[r3-Tunnel0/0/0]ospf network-type p2mp
[r3-Tunnel0/0/0]
[r3-Tunnel0/0/0]
[r3-Tunnel0/0/0]
[r3-Tunnel0/0/0]
Oct  9 2021 11:22:40-08:00 r3 %%01OSPF/4/NBR_CHANGE_E(l)[14]:Neighbor changes ev
ent: neighbor status changed. (ProcessId=256, NeighborAddress=1.0.0.10, Neighbor
Event=HelloReceived, NeighborPreviousState=Down, NeighborCurrentState=Init) 
[r3-Tunnel0/0/0]
Oct  9 2021 11:22:40-08:00 r3 %%01OSPF/4/NBR_CHANGE_E(l)[15]:Neighbor changes ev
ent: neighbor status changed. (ProcessId=256, NeighborAddress=1.0.0.10, Neighbor
Event=2WayReceived, NeighborPreviousState=Init, NeighborCurrentState=ExStart) 
[r3-Tunnel0/0/0]
Oct  9 2021 11:22:40-08:00 r3 %%01OSPF/4/NBR_CHANGE_E(l)[16]:Neighbor changes ev
ent: neighbor status changed. (ProcessId=256, NeighborAddress=1.0.0.10, Neighbor
Event=NegotiationDone, NeighborPreviousState=ExStart, NeighborCurrentState=Excha
nge) 
[r3-Tunnel0/0/0]
Oct  9 2021 11:22:40-08:00 r3 %%01OSPF/4/NBR_CHANGE_E(l)[17]:Neighbor changes ev
ent: neighbor status changed. (ProcessId=256, NeighborAddress=1.0.0.10, Neighbor
Event=ExchangeDone, NeighborPreviousState=Exchange, NeighborCurrentState=Loading
) 
[r3-Tunnel0/0/0]
Oct  9 2021 11:22:40-08:00 r3 %%01OSPF/4/NBR_CHANGE_E(l)[18]:Neighbor changes ev
ent: neighbor status changed. (ProcessId=256, NeighborAddress=1.0.0.10, Neighbor
Event=LoadingDone, NeighborPreviousState=Loading, NeighborCurrentState=Full) 
[r3-Tunnel0/0/0]q
[r3]display ip routing-table protocol ospf
Route Flags: R - relay, D - download to fib
------------------------------------------------------------------------------
Public routing table : OSPF
         Destinations : 6        Routes : 6        

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

Destination/Mask    Proto   Pre  Cost      Flags NextHop         Interface

       10.0.0.1/32  OSPF    10   1562        D   10.0.0.1        Tunnel0/0/0
       10.0.0.2/32  OSPF    10   3124        D   10.0.0.1        Tunnel0/0/0
       11.0.0.0/24  OSPF    10   3124        D   10.0.0.1        Tunnel0/0/0
    192.168.1.1/32  OSPF    10   1562        D   10.0.0.1        Tunnel0/0/0
    192.168.2.1/32  OSPF    10   3124        D   10.0.0.1        Tunnel0/0/0
    192.168.4.1/32  OSPF    10   3124        D   10.0.0.1        Tunnel0/0/0

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



第六步:R1/R4/R5Q全连的MGRE

[r1]int t 0/0/1
[r1-Tunnel0/0/1]ospf network-type broadcast 

[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

       10.0.0.2/32  OSPF    10   1562        D   10.0.0.2        Tunnel0/0/0
       10.0.0.3/32  OSPF    10   1562        D   10.0.0.3        Tunnel0/0/0
    192.168.2.1/32  OSPF    10   1562        D   10.0.0.2        Tunnel0/0/0
    192.168.3.1/32  OSPF    10   1562        D   10.0.0.3        Tunnel0/0/0

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



[r4]int t 0/0/0
[r4-Tunnel0/0/0]ospf network-type broadcast 

[r4]display ip routing-table protocol ospf
Route Flags: R - relay, D - download to fib
------------------------------------------------------------------------------
Public routing table : OSPF
         Destinations : 7        Routes : 7        

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

Destination/Mask    Proto   Pre  Cost      Flags NextHop         Interface

       10.0.0.1/32  OSPF    10   1562        D   11.0.0.1        Tunnel0/0/0
       10.0.0.2/32  OSPF    10   3124        D   11.0.0.1        Tunnel0/0/0
       10.0.0.3/32  OSPF    10   3124        D   11.0.0.1        Tunnel0/0/0
    192.168.1.1/32  OSPF    10   1562        D   11.0.0.1        Tunnel0/0/0
    192.168.2.1/32  OSPF    10   3124        D   11.0.0.1        Tunnel0/0/0
    192.168.3.1/32  OSPF    10   3124        D   11.0.0.1        Tunnel0/0/0
    192.168.5.1/32  OSPF    10   1562        D   11.0.0.3        Tunnel0/0/0

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



[r5]int t 0/0/0
[r5-Tunnel0/0/0]ospf network-type broadcast 
[r5]display ip routing-table protocol ospf
Route Flags: R - relay, D - download to fib
------------------------------------------------------------------------------
Public routing table : OSPF
         Destinations : 7        Routes : 7        

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

Destination/Mask    Proto   Pre  Cost      Flags NextHop         Interface

       10.0.0.1/32  OSPF    10   1562        D   11.0.0.1        Tunnel0/0/0
       10.0.0.2/32  OSPF    10   3124        D   11.0.0.1        Tunnel0/0/0
       10.0.0.3/32  OSPF    10   3124        D   11.0.0.1        Tunnel0/0/0
    192.168.1.1/32  OSPF    10   1562        D   11.0.0.1        Tunnel0/0/0
    192.168.2.1/32  OSPF    10   3124        D   11.0.0.1        Tunnel0/0/0
    192.168.3.1/32  OSPF    10   3124        D   11.0.0.1        Tunnel0/0/0
    192.168.4.1/32  OSPF    10   1562        D   11.0.0.2        Tunnel0/0/0

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

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

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值