一、实验拓扑
二、实验需求
1、R6为ISP只能配置ip地址,R1-5的环回为私有网段
2、R1/4/5为全连的MGRE结构,R1/2/3为星型的拓扑结构,R1为中心站点
3、所有私有网段可以互相通讯,私有网段使用OSPF协议完成
三、实验思路
MGRE私网简图
1.先实现左边123星型结构
2.再实现右边145的直连
3.构建GMRE与OSPF的部署思路
公网底层——配置IP
公网路由——写缺省路由实现公网全通
MGRE——MAP 私网地址
MGRE伪广播 私网路由——OSPF 邻居关系 OSPF接口网络类型
数据库表——路由表 DR位置
四、实验步骤
一、实现左边的星型GMRE
1.配置各个路由器的接口IP与环回IP
R1
<Huawei>sys
Enter system view, return user view with Ctrl+Z.
[Huawei]sysname R1
[R1]int
[R1]interface G0/0/0
[R1-GigabitEthernet0/0/0]ip address 192.168.16.1 24
Aug 5 2023 13:37:50-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 g0/0/1
[R1-GigabitEthernet0/0/1]ip address 192.168.61.1 24
[R1-GigabitEthernet0/0/1]
Aug 5 2023 13:38:07-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 lo0
[R1-LoopBack0]ip address 192.168.1.1 24
[R1-LoopBack0]
R2
<Huawei>
<Huawei>sys
Enter system view, return user view with Ctrl+Z.
[Huawei]sysname R2
[R2]int g0/0/0
[R2-GigabitEthernet0/0/0]ip address 192.168.26.1 24
Aug 5 2023 13:39: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 lo0
[R2-LoopBack0]ip address 192.168.2.1 24
[R2-LoopBack0]
R3
<Huawei>
<Huawei>sys
Enter system view, return user view with Ctrl+Z.
[Huawei]sys
[Huawei]sysname R3
[R3]int G0/0/0
[R3-GigabitEthernet0/0/0]ip add
[R3-GigabitEthernet0/0/0]ip address 192.168.36.1 24
Aug 5 2023 13:40:56-08:00 R2 %%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 lo0
[R3-LoopBack0]ip address 192.168.3.1 24
[R3-LoopBack0]
R4
<Huawei>sys
Enter system view, return user view with Ctrl+Z.
[Huawei]int g0/0/0
[Huawei-GigabitEthernet0/0/0]ip address 192.168.46.1 24
Aug 5 2023 13:42:19-08:00 Huawei %%01IFNET/4/LINK_STATE(l)[0]:The line protocol
IP on the interface GigabitEthernet0/0/0 has entered the UP state.
[Huawei-GigabitEthernet0/0/0]int lo0
[Huawei-LoopBack0]ip address 192.168.4.1 24
[Huawei-LoopBack0]
R5
The device is running!
<Huawei>sys
Enter system view, return user view with Ctrl+Z.
[Huawei]sysname R5
[R5]int g0/0/0
[R5-GigabitEthernet0/0/0]ip address 192.168.56.1 24
Aug 5 2023 13:43:12-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 lo0
[R5-LoopBack0]ip address 192.168.5.1 24
[R5-LoopBack0]
R6
<Huawei>sys
Enter system view, return user view with Ctrl+Z.
[Huawei]sysname R6
[R6]int G0/0/0
[R6-GigabitEthernet0/0/0]ip address 192.168.16.2 24
Aug 5 2023 13:44:58-08:00 R6 %%01IFNET/4/LINK_STATE(l)[0]:The line protocol IP
on the interface GigabitEthernet0/0/0 has entered the UP state.
[R6-GigabitEthernet0/0/0]int g4/0/2
[R6-GigabitEthernet4/0/2]ip address 192.168.61.2 24
Aug 5 2023 13:45:26-08:00 R6 %%01IFNET/4/LINK_STATE(l)[1]:The line protocol IP
on the interface GigabitEthernet4/0/2 has entered the UP state.
[R6-GigabitEthernet4/0/2]int g0/0/1
[R6-GigabitEthernet0/0/1]ip address 192.168.26.2 24
[R6-GigabitEthernet0/0/1]
Aug 5 2023 13:45:49-08:00 R6 %%01IFNET/4/LINK_STATE(l)[2]:The line protocol IP
on the interface GigabitEthernet0/0/1 has entered the UP state.
[R6-GigabitEthernet0/0/1]int g0/0/2
[R6-GigabitEthernet0/0/2]ip address 192.168.36.2 24
[R6-GigabitEthernet0/0/2]
Aug 5 2023 13:46:07-08:00 R6 %%01IFNET/4/LINK_STATE(l)[3]:The line protocol IP
on the interface GigabitEthernet0/0/2 has entered the UP state.
[R6-GigabitEthernet0/0/2]int g4/0/0
[R6-GigabitEthernet4/0/0]ip address 192.168.46.2 24
[R6-GigabitEthernet4/0/0]
Aug 5 2023 13:46:34-08:00 R6 %%01IFNET/4/LINK_STATE(l)[4]:The line protocol IP
on the interface GigabitEthernet4/0/0 has entered the UP state.
[R6-GigabitEthernet4/0/0]int g4/0/1
[R6-GigabitEthernet4/0/1]ip address 192.168.56.2 24
[R6-GigabitEthernet4/0/1]
Aug 5 2023 13:46:53-08:00 R6 %%01IFNET/4/LINK_STATE(l)[5]:The line protocol IP
on the interface GigabitEthernet4/0/1 has entered the UP state.
[R6-GigabitEthernet4/0/1]int lo0
[R6-LoopBack0]ip address 4.4.4.4 24
[R6-LoopBack0]
2.写缺省路由实现公网全通
R1
[R1]ip route-static 0.0.0.0 0 192.168.16.2
R2
[R2]ip route-static 0.0.0.0 0 192.168.26.2
R3
[R3]ip route-static 0.0.0.0 0 192.168.36.2
R4
[R4]ip route-static 0.0.0.0 0 192.168.46.2
R5
[R5]ip route-static 0.0.0.0 0 192.168.56.2
R6测试
[R6]ping 192.168.61.1
PING 192.168.61.1: 56 data bytes, press CTRL_C to break
Reply from 192.168.61.1: bytes=56 Sequence=1 ttl=255 time=70 ms
Reply from 192.168.61.1: bytes=56 Sequence=2 ttl=255 time=10 ms
Reply from 192.168.61.1: bytes=56 Sequence=3 ttl=255 time=20 ms
Reply from 192.168.61.1: bytes=56 Sequence=4 ttl=255 time=20 ms
Reply from 192.168.61.1: bytes=56 Sequence=5 ttl=255 time=20 ms--- 192.168.61.1 ping statistics ---
5 packet(s) transmitted
5 packet(s) received
0.00% packet loss
round-trip min/avg/max = 10/28/70 ms[R6]ping 192.168.16
Error: Unknown host 192.168.16.
[R6]ping 192.168.16.1
PING 192.168.16.1: 56 data bytes, press CTRL_C to break
Reply from 192.168.16.1: bytes=56 Sequence=1 ttl=255 time=20 ms
Reply from 192.168.16.1: bytes=56 Sequence=2 ttl=255 time=20 ms
Reply from 192.168.16.1: bytes=56 Sequence=3 ttl=255 time=20 ms
Reply from 192.168.16.1: bytes=56 Sequence=4 ttl=255 time=20 ms
Reply from 192.168.16.1: bytes=56 Sequence=5 ttl=255 time=20 ms--- 192.168.16.1 ping statistics ---
5 packet(s) transmitted
5 packet(s) received
0.00% packet loss
round-trip min/avg/max = 20/20/20 ms[R6]ping 192.168.26.1
PING 192.168.26.1: 56 data bytes, press CTRL_C to break
Reply from 192.168.26.1: bytes=56 Sequence=1 ttl=255 time=50 ms
Reply from 192.168.26.1: bytes=56 Sequence=2 ttl=255 time=20 ms
Reply from 192.168.26.1: bytes=56 Sequence=3 ttl=255 time=30 ms
Reply from 192.168.26.1: bytes=56 Sequence=4 ttl=255 time=30 ms
Reply from 192.168.26.1: bytes=56 Sequence=5 ttl=255 time=20 ms--- 192.168.26.1 ping statistics ---
5 packet(s) transmitted
5 packet(s) received
0.00% packet loss
round-trip min/avg/max = 20/30/50 ms[R6]
3.创建Tunnel接口,构建MGRE
R1
[R1]int
[R1]interface Tunnel 0/0/0
[R1-Tunnel0/0/0]ip address 10.1.1.1 24
[R1-Tunnel0/0/0]tunnel-protocol gre p2mp
[R1-Tunnel0/0/0]source 192.168.16.1
Aug 5 2023 17:50:27-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]
[R1-Tunnel0/0/0]
R2
[R2]
[R2]interface Tunnel 0/0/0
[R2-Tunnel0/0/0]ip address 10.1.1.2 24
[R2-Tunnel0/0/0]tunnel-protocol gre p2mp
[R2-Tunnel0/0/0]source GigabitEthernet 0/0/0
Aug 5 2023 17:52:19-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]
[R2-Tunnel0/0/0]nhrp entry 10.1.1.1 192.168.16.1 register
R3
[R3]
[R3]interface Tunnel 0/0/0
[R3-Tunnel0/0/0]ip address 10.1.1.3 24
[R3-Tunnel0/0/0]tunnel-protocol gre p2mp
[R3-Tunnel0/0/0]source GigabitEthernet 0/0/0
Aug 6 2023 00:27:38-08:00 R3 %%01IFNET/4/LINK_STATE(l)[2]:The line protocol IP
on the interface Tunnel0/0/0 has entered the UP state.
[R3-Tunnel0/0/0]
[R3-Tunnel0/0/0]nhrp entry 10.1.1.1 192.168.16.1 register
R2测试是否构建成功
[R2-Tunnel0/0/0]ping 10.1.1.3
PING 10.1.1.3: 56 data bytes, press CTRL_C to break
Reply from 10.1.1.3: bytes=56 Sequence=1 ttl=254 time=60 ms
Reply from 10.1.1.3: bytes=56 Sequence=2 ttl=255 time=30 ms
Reply from 10.1.1.3: bytes=56 Sequence=3 ttl=255 time=10 ms
Reply from 10.1.1.3: bytes=56 Sequence=4 ttl=255 time=40 ms
Reply from 10.1.1.3: bytes=56 Sequence=5 ttl=255 time=30 ms--- 10.1.1.3 ping statistics ---
5 packet(s) transmitted
5 packet(s) received
0.00% packet loss
round-trip min/avg/max = 10/34/60 ms[R2-Tunnel0/0/0]display nhrp peer all
-------------------------------------------------------------------------------
Protocol-addr Mask NBMA-addr NextHop-addr Type Flag
-------------------------------------------------------------------------------
10.1.1.1 32 192.168.16.1 10.1.1.1 static hub
-------------------------------------------------------------------------------
Tunnel interface: Tunnel0/0/0
Created time : 00:02:03
Expire time : --
-------------------------------------------------------------------------------
Protocol-addr Mask NBMA-addr NextHop-addr Type Flag
-------------------------------------------------------------------------------
10.1.1.3 32 192.168.36.1 10.1.1.3 dynamic route tunnel
-------------------------------------------------------------------------------
Tunnel interface: Tunnel0/0/0
Created time : 00:00:05
Expire time : 01:59:55
-------------------------------------------------------------------------------
Protocol-addr Mask NBMA-addr NextHop-addr Type Flag
-------------------------------------------------------------------------------
10.1.1.2 32 192.168.26.1 10.1.1.2 dynamic local
-------------------------------------------------------------------------------
Tunnel interface: Tunnel0/0/0
Created time : 00:00:05
Expire time : 01:59:55[R2-Tunnel0/0/0]
4.使用OSPF协议宣告路由器上的环回网段
R1
[R1]interface Tunnel 0/0/0
[R1-Tunnel0/0/0]os
[R1-Tunnel0/0/0]ospf net
[R1-Tunnel0/0/0]ospf network-type b
[R1-Tunnel0/0/0]ospf network-type broadcast
Aug 5 2023 18:23:49-08:00 R1 %%01OSPF/3/NBR_CHG_DOWN(l)[0]:Neighbor event:neigh
bor state changed to Down. (ProcessId=256, NeighborAddress=2.2.2.2, NeighborEven
t=KillNbr, NeighborPreviousState=Init, NeighborCurrentState=Down)
[R1-Tunnel0/0/0]
[R1-Tunnel0/0/0]
Aug 5 2023 18:23:49-08:00 R1 %%01OSPF/3/NBR_DOWN_REASON(l)[1]:Neighbor state le
aves full or changed to Down. (ProcessId=256, NeighborRouterId=2.2.2.2, Neighbor
AreaId=0, NeighborInterface=Tunnel0/0/0,NeighborDownImmediate reason=Neighbor Do
wn Due to Kill Neighbor, NeighborDownPrimeReason=Interface Parameter Mismatch, N
eighborChangeTime=2023-08-05 18:23:49-08:00)
[R1-Tunnel0/0/0]
Aug 5 2023 18:23:53-08:00 R1 %%01OSPF/4/NBR_CHANGE_E(l)[2]:Neighbor changes eve
nt: neighbor status changed. (ProcessId=256, NeighborAddress=3.1.1.10, NeighborE
vent=HelloReceived, NeighborPreviousState=Down, NeighborCurrentState=Init)
[R1-Tunnel0/0/0]
Aug 5 2023 18:23:55-08:00 R1 %%01OSPF/4/NBR_CHANGE_E(l)[3]:Neighbor changes eve
nt: neighbor status changed. (ProcessId=256, NeighborAddress=2.1.1.10, NeighborE
vent=HelloReceived, NeighborPreviousState=Down, NeighborCurrentState=Init)
[R1-Tunnel0/0/0]
[R1-Tunnel0/0/0]q
[R1]fis
[R1]dis
[R1]display os
[R1]display ospf pee
[R1]display ospf peerOSPF Process 1 with Router ID 1.1.1.1
NeighborsArea 0.0.0.0 interface 10.1.1.1(Tunnel0/0/0)'s neighbors
Router ID: 2.2.2.2 Address: 10.1.1.2
State: Init Mode:Nbr is Master Priority: 0
DR: None BDR: None MTU: 0
Dead timer due in 40 sec
Retrans timer interval: 0
Neighbor is up for 00:00:00
Authentication Sequence: [ 0 ]Router ID: 3.3.3.3 Address: 10.1.1.3
State: Init Mode:Nbr is Master Priority: 0
DR: None BDR: None MTU: 0
Dead timer due in 29 sec
Retrans timer interval: 0
Neighbor is up for 00:00:00
Authentication Sequence: [ 0 ][R1]display ospf peer
OSPF Process 1 with Router ID 1.1.1.1
NeighborsArea 0.0.0.0 interface 10.1.1.1(Tunnel0/0/0)'s neighbors
Router ID: 2.2.2.2 Address: 10.1.1.2
State: Init Mode:Nbr is Master Priority: 0
DR: None BDR: None MTU: 0
Dead timer due in 33 sec
Retrans timer interval: 0
Neighbor is up for 00:00:00
Authentication Sequence: [ 0 ]Router ID: 3.3.3.3 Address: 10.1.1.3
State: Init Mode:Nbr is Master Priority: 0
DR: None BDR: None MTU: 0
Dead timer due in 33 sec
Retrans timer interval: 0
Neighbor is up for 00:00:00
Authentication Sequence: [ 0 ][R1]int
[R1]interface t
[R1]interface Tunnel 0/0/0
[R1-Tunnel0/0/0]dis
[R1-Tunnel0/0/0]disp
[R1-Tunnel0/0/0]display this
[V200R003C00]
#
interface Tunnel0/0/0
ip address 10.1.1.1 255.255.255.0
tunnel-protocol gre p2mp
source 192.168.16.1
ospf network-type broadcast
#
return
[R1-Tunnel0/0/0]q
[R1]dis
[R1]display ospf peer all
^
Error: Wrong parameter found at '^' position.
[R1]display ospf all
^
Error: Wrong parameter found at '^' position.
[R1]di
[R1]dis
[R1]display nhrp pr
[R1]display nhrp pe
[R1]display nhrp peer all
-------------------------------------------------------------------------------
Protocol-addr Mask NBMA-addr NextHop-addr Type Flag
-------------------------------------------------------------------------------
10.1.1.2 32 192.168.26.1 10.1.1.2 dynamic route tunnel
-------------------------------------------------------------------------------
Tunnel interface: Tunnel0/0/0
Created time : 00:36:27
Expire time : 01:53:33
-------------------------------------------------------------------------------
Protocol-addr Mask NBMA-addr NextHop-addr Type Flag
-------------------------------------------------------------------------------
10.1.1.3 32 192.168.36.1 10.1.1.3 dynamic route tunnel
-------------------------------------------------------------------------------
Tunnel interface: Tunnel0/0/0
Created time : 00:35:15
Expire time : 01:54:45Number of nhrp peers: 2
[R1]nhrp en
[R1]int
[R1]interface t
[R1]interface Tunnel 0/0/0
[R1-Tunnel0/0/0]nh
[R1-Tunnel0/0/0]nhrp en
[R1-Tunnel0/0/0]nhrp entry mu
[R1-Tunnel0/0/0]nhrp entry multicast d
[R1-Tunnel0/0/0]nhrp entry multicast dynamic
[R1-Tunnel0/0/0]
Aug 5 2023 18:37:25-08:00 R1 %%01OSPF/4/NBR_CHANGE_E(l)[4]:Neighbor changes eve
nt: neighbor status changed. (ProcessId=256, NeighborAddress=2.1.1.10, NeighborE
vent=2WayReceived, NeighborPreviousState=Init, NeighborCurrentState=ExStart)
[R1-Tunnel0/0/0]
Aug 5 2023 18:37:25-08:00 R1 %%01OSPF/4/NBR_CHANGE_E(l)[5]:Neighbor changes eve
nt: neighbor status changed. (ProcessId=256, NeighborAddress=2.1.1.10, NeighborE
vent=NegotiationDone, NeighborPreviousState=ExStart, NeighborCurrentState=Exchan
ge)
[R1-Tunnel0/0/0]
Aug 5 2023 18:37:25-08:00 R1 %%01OSPF/4/NBR_CHANGE_E(l)[6]:Neighbor changes eve
nt: neighbor status changed. (ProcessId=256, NeighborAddress=3.1.1.10, NeighborE
vent=2WayReceived, NeighborPreviousState=Init, NeighborCurrentState=ExStart)
[R1-Tunnel0/0/0]
Aug 5 2023 18:37:25-08:00 R1 %%01OSPF/4/NBR_CHANGE_E(l)[7]:Neighbor changes eve
nt: neighbor status changed. (ProcessId=256, NeighborAddress=3.1.1.10, NeighborE
vent=NegotiationDone, NeighborPreviousState=ExStart, NeighborCurrentState=Exchan
ge)
[R1-Tunnel0/0/0]
Aug 5 2023 18:37:25-08:00 R1 %%01OSPF/4/NBR_CHANGE_E(l)[8]:Neighbor changes eve
nt: neighbor status changed. (ProcessId=256, NeighborAddress=2.1.1.10, NeighborE
vent=ExchangeDone, NeighborPreviousState=Exchange, NeighborCurrentState=Loading)
[R1-Tunnel0/0/0]
Aug 5 2023 18:37:25-08:00 R1 %%01OSPF/4/NBR_CHANGE_E(l)[9]:Neighbor changes eve
nt: neighbor status changed. (ProcessId=256, NeighborAddress=3.1.1.10, NeighborE
vent=ExchangeDone, NeighborPreviousState=Exchange, NeighborCurrentState=Loading)
[R1-Tunnel0/0/0]
Aug 5 2023 18:37:25-08:00 R1 %%01OSPF/4/NBR_CHANGE_E(l)[10]:Neighbor changes ev
ent: neighbor status changed. (ProcessId=256, NeighborAddress=2.1.1.10, Neighbor
Event=LoadingDone, NeighborPreviousState=Loading, NeighborCurrentState=Full)
[R1-Tunnel0/0/0]
Aug 5 2023 18:37:25-08:00 R1 %%01OSPF/4/NBR_CHANGE_E(l)[11]:Neighbor changes ev
ent: neighbor status changed. (ProcessId=256, NeighborAddress=3.1.1.10, Neighbor
Event=LoadingDone, NeighborPreviousState=Loading, NeighborCurrentState=Full)
[R1-Tunnel0/0/0]dis
[R1-Tunnel0/0/0]disp
[R1-Tunnel0/0/0]display ospf p
[R1-Tunnel0/0/0]display ospf peer br
[R1-Tunnel0/0/0]display ospf peer briefOSPF Process 1 with Router ID 1.1.1.1
Peer Statistic Information
----------------------------------------------------------------------------
Area Id Interface Neighbor id State
0.0.0.0 Tunnel0/0/0 2.2.2.2 Full
0.0.0.0 Tunnel0/0/0 3.3.3.3 Full
----------------------------------------------------------------------------
[R1-Tunnel0/0/0]display ospf peerOSPF Process 1 with Router ID 1.1.1.1
NeighborsArea 0.0.0.0 interface 10.1.1.1(Tunnel0/0/0)'s neighbors
Router ID: 2.2.2.2 Address: 10.1.1.2
State: Full Mode:Nbr is Master Priority: 0
DR: 10.1.1.1 BDR: None MTU: 0
Dead timer due in 30 sec
Retrans timer interval: 5
Neighbor is up for 00:02:11
Authentication Sequence: [ 0 ]Router ID: 3.3.3.3 Address: 10.1.1.3
State: Full Mode:Nbr is Master Priority: 0
DR: 10.1.1.1 BDR: None MTU: 0
Dead timer due in 30 sec
Retrans timer interval: 5
Neighbor is up for 00:02:11
Authentication Sequence: [ 0 ][R1-Tunnel0/0/0]
R2
<R2>sys
Enter system view, return user view with Ctrl+Z.
[R2]os
[R2]ospf 1 rou
[R2]ospf 1 router-id r
[R2]ospf 1 router-id ro
[R2]ospf 1 router-id 2.2.2.2
[R2-ospf-1]are
[R2-ospf-1]area 0
[R2-ospf-1-area-0.0.0.0]net
[R2-ospf-1-area-0.0.0.0]network 10.1.1.2 0.0.0.0
[R2-ospf-1-area-0.0.0.0]net
[R2-ospf-1-area-0.0.0.0]network 192.168.2.1 0.0.0.0
[R2-ospf-1-area-0.0.0.0]
[R2-ospf-1-area-0.0.0.0]q
[R2-ospf-1]q
[R2]
[R2]int
[R2]interface t
[R2]interface Tunnel 0/0/0
[R2-Tunnel0/0/0]
[R2-Tunnel0/0/0]ospf
[R2-Tunnel0/0/0]ospf net
[R2-Tunnel0/0/0]ospf network-type br
[R2-Tunnel0/0/0]ospf network-type broadcast
[R2-Tunnel0/0/0]
[R2-Tunnel0/0/0]os
[R2-Tunnel0/0/0]ospf dr
[R2-Tunnel0/0/0]ospf dr-priority 0
[R2-Tunnel0/0/0]dis
[R2-Tunnel0/0/0]disp
[R2-Tunnel0/0/0]display this
[V200R003C00]
#
interface Tunnel0/0/0
ip address 10.1.1.2 255.255.255.0
tunnel-protocol gre p2mp
source GigabitEthernet0/0/0
ospf network-type broadcast
ospf dr-priority 0
nhrp entry 10.1.1.1 192.168.16.1 register
#
return
[R2-Tunnel0/0/0]Please check whether system data has been changed, and save data in time
Configuration console time out, please press any key to log on
R3
<R3>sys
Enter system view, return user view with Ctrl+Z.
[R3]int
[R3]interface t
[R3]interface Tunnel 0/0/0
[R3-Tunnel0/0/0]os
[R3-Tunnel0/0/0]ospfnet
[R3-Tunnel0/0/0]ospf net
[R3-Tunnel0/0/0]ospf network-type br
[R3-Tunnel0/0/0]ospf network-type broadcast
[R3-Tunnel0/0/0]os
[R3-Tunnel0/0/0]ospf dr
[R3-Tunnel0/0/0]ospf dr-priority 0
[R3-Tunnel0/0/0]q
[R3]dis
[R3]display os
[R3]display ospf pee
[R3]display ospf peer br
[R3]display ospf peer briefOSPF Process 1 with Router ID 3.3.3.3
Peer Statistic Information
----------------------------------------------------------------------------
Area Id Interface Neighbor id State
----------------------------------------------------------------------------
[R3]int
[R3]interface t
[R3]interface Tunnel 0/0/0
[R3-Tunnel0/0/0]disp
[R3-Tunnel0/0/0]display this
[V200R003C00]
#
interface Tunnel0/0/0
ip address 10.1.1.3 255.255.255.0
tunnel-protocol gre p2mp
source GigabitEthernet0/0/0
ospf network-type broadcast
ospf dr-priority 0
nhrp entry 10.1.1.1 192.168.16.1 register
#
return
[R3-Tunnel0/0/0]
Aug 6 2023 01:07:34-08:00 R3 %%01OSPF/4/NBR_CHANGE_E(l)[0]:Neighbor changes eve
nt: neighbor status changed. (ProcessId=256, NeighborAddress=1.1.1.10, NeighborE
vent=HelloReceived, NeighborPreviousState=Down, NeighborCurrentState=Init)
[R3-Tunnel0/0/0]
Aug 6 2023 01:07:34-08:00 R3 %%01OSPF/4/NBR_CHANGE_E(l)[1]:Neighbor changes eve
nt: neighbor status changed. (ProcessId=256, NeighborAddress=1.1.1.10, NeighborE
vent=2WayReceived, NeighborPreviousState=Init, NeighborCurrentState=2Way)
[R3-Tunnel0/0/0]
Aug 6 2023 01:07:34-08:00 R3 %%01OSPF/4/NBR_CHANGE_E(l)[2]:Neighbor changes eve
nt: neighbor status changed. (ProcessId=256, NeighborAddress=1.1.1.10, NeighborE
vent=AdjOk?, NeighborPreviousState=2Way, NeighborCurrentState=ExStart)
[R3-Tunnel0/0/0]
Aug 6 2023 01:07:35-08:00 R3 %%01OSPF/4/NBR_CHANGE_E(l)[3]:Neighbor changes eve
nt: neighbor status changed. (ProcessId=256, NeighborAddress=1.1.1.10, NeighborE
vent=NegotiationDone, NeighborPreviousState=ExStart, NeighborCurrentState=Exchan
ge)
[R3-Tunnel0/0/0]
Aug 6 2023 01:07:35-08:00 R3 %%01OSPF/4/NBR_CHANGE_E(l)[4]:Neighbor changes eve
nt: neighbor status changed. (ProcessId=256, NeighborAddress=1.1.1.10, NeighborE
vent=ExchangeDone, NeighborPreviousState=Exchange, NeighborCurrentState=Loading)
[R3-Tunnel0/0/0]
Aug 6 2023 01:07:35-08:00 R3 %%01OSPF/4/NBR_CHANGE_E(l)[5]:Neighbor changes eve
nt: neighbor status changed. (ProcessId=256, NeighborAddress=1.1.1.10, NeighborE
vent=LoadingDone, NeighborPreviousState=Loading, NeighborCurrentState=Full)
[R3-Tunnel0/0/0]Please check whether system data has been changed, and save data in time
Configuration console time out, please press any key to log on
<R3>sys
Enter system view, return user view with Ctrl+Z.
[R3]display ospf peer briefOSPF Process 1 with Router ID 3.3.3.3
Peer Statistic Information
----------------------------------------------------------------------------
Area Id Interface Neighbor id State
0.0.0.0 Tunnel0/0/0 1.1.1.1 Full
----------------------------------------------------------------------------
[R3]
二、实现右边145的GMRE的构建
R1
[R1-Tunnel0/0/1]nhrp entry multicast d
[R1-Tunnel0/0/1]nhrp entry multicast dynamic
[R1-Tunnel0/0/1]q
[R1]ping 10.1.2.3
PING 10.1.2.3: 56 data bytes, press CTRL_C to break
Reply from 10.1.2.3: bytes=56 Sequence=1 ttl=255 time=30 ms
Reply from 10.1.2.3: bytes=56 Sequence=2 ttl=255 time=30 ms
Reply from 10.1.2.3: bytes=56 Sequence=3 ttl=255 time=40 ms
Reply from 10.1.2.3: bytes=56 Sequence=4 ttl=255 time=30 ms
Reply from 10.1.2.3: bytes=56 Sequence=5 ttl=255 time=30 ms--- 10.1.2.3 ping statistics ---
5 packet(s) transmitted
5 packet(s) received
0.00% packet loss
round-trip min/avg/max = 30/32/40 ms[R1]os
[R1]ospf 1
[R1-ospf-1]sr
[R1-ospf-1]ar
[R1-ospf-1]area 0
[R1-ospf-1-area-0.0.0.0]net
[R1-ospf-1-area-0.0.0.0]network 10.1.2.1 0.0.0.0
[R1-ospf-1-area-0.0.0.0]
Aug 5 2023 19:01:57-08:00 R1 %%01OSPF/4/NBR_CHANGE_E(l)[0]:Neighbor changes eve
nt: neighbor status changed. (ProcessId=256, NeighborAddress=2.2.1.10, NeighborE
vent=HelloReceived, NeighborPreviousState=Down, NeighborCurrentState=Init)
[R1-ospf-1-area-0.0.0.0]
Aug 5 2023 19:01:57-08:00 R1 %%01OSPF/4/NBR_CHANGE_E(l)[1]:Neighbor changes eve
nt: neighbor status changed. (ProcessId=256, NeighborAddress=2.2.1.10, NeighborE
vent=2WayReceived, NeighborPreviousState=Init, NeighborCurrentState=ExStart)
[R1-ospf-1-area-0.0.0.0]
Aug 5 2023 19:01:57-08:00 R1 %%01OSPF/4/NBR_CHANGE_E(l)[2]:Neighbor changes eve
nt: neighbor status changed. (ProcessId=256, NeighborAddress=2.2.1.10, NeighborE
vent=NegotiationDone, NeighborPreviousState=ExStart, NeighborCurrentState=Exchan
ge)
[R1-ospf-1-area-0.0.0.0]
Aug 5 2023 19:01:58-08:00 R1 %%01OSPF/4/NBR_CHANGE_E(l)[3]:Neighbor changes eve
nt: neighbor status changed. (ProcessId=256, NeighborAddress=2.2.1.10, NeighborE
vent=ExchangeDone, NeighborPreviousState=Exchange, NeighborCurrentState=Loading)
[R1-ospf-1-area-0.0.0.0]
Aug 5 2023 19:01:58-08:00 R1 %%01OSPF/4/NBR_CHANGE_E(l)[4]:Neighbor changes eve
nt: neighbor status changed. (ProcessId=256, NeighborAddress=2.2.1.10, NeighborE
vent=LoadingDone, NeighborPreviousState=Loading, NeighborCurrentState=Full)
[R1-ospf-1-area-0.0.0.0]q
[R1-ospf-1]dis
[R1-ospf-1]display os
[R1-ospf-1]display ospf pe
[R1-ospf-1]display ospf peer nr
[R1-ospf-1]display ospf peer br
[R1-ospf-1]display ospf peer briefOSPF Process 1 with Router ID 1.1.1.1
Peer Statistic Information
----------------------------------------------------------------------------
Area Id Interface Neighbor id State
0.0.0.0 Tunnel0/0/0 2.2.2.2 Full
0.0.0.0 Tunnel0/0/0 3.3.3.3 Full
0.0.0.0 Tunnel0/0/1 4.4.4.4 Full
----------------------------------------------------------------------------
[R1-ospf-1]os
[R1-ospf-1]q
[R1]int
[R1]interface t
[R1]interface Tunnel 0/0/1
[R1-Tunnel0/0/1]os
[R1-Tunnel0/0/1]ospfnet
[R1-Tunnel0/0/1]ospf ne
[R1-Tunnel0/0/1]ospf network-type br
[R1-Tunnel0/0/1]ospf network-type broadcast
Aug 5 2023 19:07:42-08:00 R1 %%01OSPF/3/NBR_CHG_DOWN(l)[5]:Neighbor event:neigh
bor state changed to Down. (ProcessId=256, NeighborAddress=4.4.4.4, NeighborEven
t=KillNbr, NeighborPreviousState=Full, NeighborCurrentState=Down)
[R1-Tunnel0/0/1]
[R1-Tunnel0/0/1]
Aug 5 2023 19:07:42-08:00 R1 %%01OSPF/3/NBR_DOWN_REASON(l)[6]:Neighbor state le
aves full or changed to Down. (ProcessId=256, NeighborRouterId=4.4.4.4, Neighbor
AreaId=0, NeighborInterface=Tunnel0/0/1,NeighborDownImmediate reason=Neighbor Do
wn Due to Kill Neighbor, NeighborDownPrimeReason=Interface Parameter Mismatch, N
eighborChangeTime=2023-08-05 19:07:42-08:00)
[R1-Tunnel0/0/1]
Aug 5 2023 19:07:45-08:00 R1 %%01OSPF/4/NBR_CHANGE_E(l)[7]:Neighbor changes eve
nt: neighbor status changed. (ProcessId=256, NeighborAddress=2.2.1.10, NeighborE
vent=HelloReceived, NeighborPreviousState=Down, NeighborCurrentState=Init)
[R1-Tunnel0/0/1]
Aug 5 2023 19:07:45-08:00 R1 %%01OSPF/4/NBR_CHANGE_E(l)[8]:Neighbor changes eve
nt: neighbor status changed. (ProcessId=256, NeighborAddress=2.2.1.10, NeighborE
vent=2WayReceived, NeighborPreviousState=Init, NeighborCurrentState=2Way)
[R1-Tunnel0/0/1]
Aug 5 2023 19:07:45-08:00 R1 %%01OSPF/4/NBR_CHANGE_E(l)[9]:Neighbor changes eve
nt: neighbor status changed. (ProcessId=256, NeighborAddress=2.2.1.10, NeighborE
vent=1-Way, NeighborPreviousState=2Way, NeighborCurrentState=Init)
[R1-Tunnel0/0/1]
Aug 5 2023 19:07:48-08:00 R1 %%01OSPF/4/NBR_CHANGE_E(l)[10]:Neighbor changes ev
ent: neighbor status changed. (ProcessId=256, NeighborAddress=3.2.1.10, Neighbor
Event=HelloReceived, NeighborPreviousState=Down, NeighborCurrentState=Init)
[R1-Tunnel0/0/1]
Aug 5 2023 19:07:56-08:00 R1 %%01OSPF/4/NBR_CHANGE_E(l)[11]:Neighbor changes ev
ent: neighbor status changed. (ProcessId=256, NeighborAddress=2.2.1.10, Neighbor
Event=2WayReceived, NeighborPreviousState=Init, NeighborCurrentState=2Way)
[R1-Tunnel0/0/1]
Aug 5 2023 19:07:58-08:00 R1 %%01OSPF/4/NBR_CHANGE_E(l)[12]:Neighbor changes ev
ent: neighbor status changed. (ProcessId=256, NeighborAddress=3.2.1.10, Neighbor
Event=2WayReceived, NeighborPreviousState=Init, NeighborCurrentState=2Way)
[R1-Tunnel0/0/1]dis
[R1-Tunnel0/0/1]disp
[R1-Tunnel0/0/1]display os
[R1-Tunnel0/0/1]display ospf pe
Aug 5 2023 19:08:25-08:00 R1 %%01OSPF/4/NBR_CHANGE_E(l)[13]:Neighbor changes ev
ent: neighbor status changed. (ProcessId=256, NeighborAddress=2.2.1.10, Neighbor
Event=AdjOk?, NeighborPreviousState=2Way, NeighborCurrentState=2Way)
[R1-Tunnel0/0/1]display ospf pe
Aug 5 2023 19:08:25-08:00 R1 %%01OSPF/4/NBR_CHANGE_E(l)[14]:Neighbor changes ev
ent: neighbor status changed. (ProcessId=256, NeighborAddress=3.2.1.10, Neighbor
Event=AdjOk?, NeighborPreviousState=2Way, NeighborCurrentState=ExStart)
[R1-Tunnel0/0/1]display ospf pe
[R1-Tunnel0/0/1]display ospf peer br
[R1-Tunnel0/0/1]display ospf peer brief
Aug 5 2023 19:08:30-08:00 R1 %%01OSPF/4/NBR_CHANGE_E(l)[15]:Neighbor changes ev
ent: neighbor status changed. (ProcessId=256, NeighborAddress=3.2.1.10, Neighbor
Event=NegotiationDone, NeighborPreviousState=ExStart, NeighborCurrentState=Excha
nge)
[R1-Tunnel0/0/1]display ospf peer brief
Aug 5 2023 19:08:30-08:00 R1 %%01OSPF/4/NBR_CHANGE_E(l)[16]:Neighbor changes ev
ent: neighbor status changed. (ProcessId=256, NeighborAddress=2.2.1.10, Neighbor
Event=AdjOk?, NeighborPreviousState=2Way, NeighborCurrentState=ExStart)
[R1-Tunnel0/0/1]display ospf peer brief
Aug 5 2023 19:08:30-08:00 R1 %%01OSPF/4/NBR_CHANGE_E(l)[17]:Neighbor changes ev
ent: neighbor status changed. (ProcessId=256, NeighborAddress=2.2.1.10, Neighbor
Event=NegotiationDone, NeighborPreviousState=ExStart, NeighborCurrentState=Excha
nge)
[R1-Tunnel0/0/1]display ospf peer brief
Aug 5 2023 19:08:30-08:00 R1 %%01OSPF/4/NBR_CHANGE_E(l)[18]:Neighbor changes ev
ent: neighbor status changed. (ProcessId=256, NeighborAddress=3.2.1.10, Neighbor
Event=ExchangeDone, NeighborPreviousState=Exchange, NeighborCurrentState=Loading
)
[R1-Tunnel0/0/1]display ospf peer brief
Aug 5 2023 19:08:30-08:00 R1 %%01OSPF/4/NBR_CHANGE_E(l)[19]:Neighbor changes ev
ent: neighbor status changed. (ProcessId=256, NeighborAddress=2.2.1.10, Neighbor
Event=ExchangeDone, NeighborPreviousState=Exchange, NeighborCurrentState=Loading
)
[R1-Tunnel0/0/1]display ospf peer brief
Aug 5 2023 19:08:30-08:00 R1 %%01OSPF/4/NBR_CHANGE_E(l)[20]:Neighbor changes ev
ent: neighbor status changed. (ProcessId=256, NeighborAddress=2.2.1.10, Neighbor
Event=LoadingDone, NeighborPreviousState=Loading, NeighborCurrentState=Full)
[R1-Tunnel0/0/1]display ospf peer brief
Aug 5 2023 19:08:30-08:00 R1 %%01OSPF/4/NBR_CHANGE_E(l)[21]:Neighbor changes ev
ent: neighbor status changed. (ProcessId=256, NeighborAddress=3.2.1.10, Neighbor
Event=LoadingDone, NeighborPreviousState=Loading, NeighborCurrentState=Full)
[R1-Tunnel0/0/1]display ospf peer briefOSPF Process 1 with Router ID 1.1.1.1
Peer Statistic Information
----------------------------------------------------------------------------
Area Id Interface Neighbor id State
0.0.0.0 Tunnel0/0/0 2.2.2.2 Full
0.0.0.0 Tunnel0/0/0 3.3.3.3 Full
0.0.0.0 Tunnel0/0/1 4.4.4.4 Full
0.0.0.0 Tunnel0/0/1 5.5.5.5 Full
----------------------------------------------------------------------------
[R1-Tunnel0/0/1]q
[R1]dis
[R1]display osp
[R1]display ospf pe
[R1]display ospf peerOSPF Process 1 with Router ID 1.1.1.1
NeighborsArea 0.0.0.0 interface 10.1.1.1(Tunnel0/0/0)'s neighbors
Router ID: 2.2.2.2 Address: 10.1.1.2
State: Full Mode:Nbr is Master Priority: 0
DR: 10.1.1.1 BDR: None MTU: 0
Dead timer due in 39 sec
Retrans timer interval: 5
Neighbor is up for 00:31:31
Authentication Sequence: [ 0 ]Router ID: 3.3.3.3 Address: 10.1.1.3
State: Full Mode:Nbr is Master Priority: 0
DR: 10.1.1.1 BDR: None MTU: 0
Dead timer due in 29 sec
Retrans timer interval: 5
Neighbor is up for 00:31:31
Authentication Sequence: [ 0 ]Neighbors
Area 0.0.0.0 interface 10.1.2.1(Tunnel0/0/1)'s neighbors
Router ID: 4.4.4.4 Address: 10.1.2.2
State: Full Mode:Nbr is Master Priority: 1
DR: 10.1.2.3 BDR: 10.1.2.2 MTU: 0
Dead timer due in 31 sec
Retrans timer interval: 5
Neighbor is up for 00:00:25
Authentication Sequence: [ 0 ]---- More ----
R4
[R4]int
[R4]interface t
[R4]interface Tunnel 0/0/0
[R4-Tunnel0/0/0]ip
[R4-Tunnel0/0/0]ip add
[R4-Tunnel0/0/0]ip address 10.1.2.2 24
[R4-Tunnel0/0/0]tu
[R4-Tunnel0/0/0]tunnel-protocol g
[R4-Tunnel0/0/0]tunnel-protocol gre p
[R4-Tunnel0/0/0]tunnel-protocol gre p2mp
[R4-Tunnel0/0/0]sou
[R4-Tunnel0/0/0]source 192.168.46.1
Aug 5 2023 18:49:00-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]
[R4-Tunnel0/0/0]nhr
[R4-Tunnel0/0/0]nhrp e
[R4-Tunnel0/0/0]nhrp entry 10.1.2.1 192.168.61.1 r
[R4-Tunnel0/0/0]nhrp entry 10.1.2.1 192.168.61.1 register
[R4-Tunnel0/0/0]nhrp entry 10.1.2.3 192.168.56.1 register
[R4-Tunnel0/0/0]Please check whether system data has been changed, and save data in time
Configuration console time out, please press any key to log on
<R4>sys
Enter system view, return user view with Ctrl+Z.
[R4]int
[R4]interface t
[R4]interface Tunnel 0/0/0
[R4-Tunnel0/0/0]disp
[R4-Tunnel0/0/0]display this
[V200R003C00]
#
interface Tunnel0/0/0
ip address 10.1.2.2 255.255.255.0
tunnel-protocol gre p2mp
source 192.168.46.1
nhrp entry 10.1.2.1 192.168.61.1 register
nhrp entry 10.1.2.3 192.168.56.1 register
#
return
[R4-Tunnel0/0/0]ops
[R4-Tunnel0/0/0]ospf 1 ro
[R4-Tunnel0/0/0]ospf 1 rou
[R4-Tunnel0/0/0]
[R4-Tunnel0/0/0]q
[R4]ospf 1 ro
[R4]ospf 1 router-id 4.4.4.4
[R4-ospf-1]area 0
[R4-ospf-1-area-0.0.0.0]net
[R4-ospf-1-area-0.0.0.0]network 10.1.2.2 0.0.0.0
[R4-ospf-1-area-0.0.0.0]
Aug 5 2023 19:01:57-08:00 R4 %%01OSPF/4/NBR_CHANGE_E(l)[0]:Neighbor changes eve
nt: neighbor status changed. (ProcessId=256, NeighborAddress=1.2.1.10, NeighborE
vent=HelloReceived, NeighborPreviousState=Down, NeighborCurrentState=Init)
[R4-ospf-1-area-0.0.0.0]
Aug 5 2023 19:01:57-08:00 R4 %%01OSPF/4/NBR_CHANGE_E(l)[1]:Neighbor changes eve
nt: neighbor status changed. (ProcessId=256, NeighborAddress=1.2.1.10, NeighborE
vent=2WayReceived, NeighborPreviousState=Init, NeighborCurrentState=ExStart)
[R4-ospf-1-area-0.0.0.0]
Aug 5 2023 19:01:57-08:00 R4 %%01OSPF/4/NBR_CHANGE_E(l)[2]:Neighbor changes eve
nt: neighbor status changed. (ProcessId=256, NeighborAddress=1.2.1.10, NeighborE
vent=NegotiationDone, NeighborPreviousState=ExStart, NeighborCurrentState=Exchan
ge)
[R4-ospf-1-area-0.0.0.0]
Aug 5 2023 19:01:57-08:00 R4 %%01OSPF/4/NBR_CHANGE_E(l)[3]:Neighbor changes eve
nt: neighbor status changed. (ProcessId=256, NeighborAddress=1.2.1.10, NeighborE
vent=ExchangeDone, NeighborPreviousState=Exchange, NeighborCurrentState=Loading)
[R4-ospf-1-area-0.0.0.0]
Aug 5 2023 19:01:57-08:00 R4 %%01OSPF/4/NBR_CHANGE_E(l)[4]:Neighbor changes eve
nt: neighbor status changed. (ProcessId=256, NeighborAddress=1.2.1.10, NeighborE
vent=LoadingDone, NeighborPreviousState=Loading, NeighborCurrentState=Full)
[R4-ospf-1-area-0.0.0.0]net
[R4-ospf-1-area-0.0.0.0]network 192.168.4.1 0.0.0.0
[R4-ospf-1-area-0.0.0.0]q
[R4-ospf-1]dis
[R4-ospf-1]display os
[R4-ospf-1]display ospf pe
[R4-ospf-1]display ospf peer br
[R4-ospf-1]display ospf peer briefOSPF Process 1 with Router ID 4.4.4.4
Peer Statistic Information
----------------------------------------------------------------------------
Area Id Interface Neighbor id State
0.0.0.0 Tunnel0/0/0 1.1.1.1 Full
----------------------------------------------------------------------------
[R4-ospf-1]q
[R4]int
[R4]interface t
[R4]interface Tunnel 0/0/0
[R4-Tunnel0/0/0]ospf net
[R4-Tunnel0/0/0]ospf network-type br
[R4-Tunnel0/0/0]ospf network-type broadcast
Aug 5 2023 19:07:42-08:00 R4 %%01OSPF/3/NBR_DOWN_REASON(l)[5]:Neighbor state le
aves full or changed to Down. (ProcessId=256, NeighborRouterId=1.1.1.1, Neighbor
AreaId=0, NeighborInterface=Tunnel0/0/0,NeighborDownImmediate reason=Neighbor Do
wn Due to 1-Wayhello Received, NeighborDownPrimeReason=1-Wayhello Received, Neig
hborChangeTime=2023-08-05 19:07:42-08:00)
[R4-Tunnel0/0/0]ospf network-type broadcast
Aug 5 2023 19:07:42-08:00 R4 %%01OSPF/4/NBR_CHANGE_E(l)[6]:Neighbor changes eve
nt: neighbor status changed. (ProcessId=256, NeighborAddress=1.2.1.10, NeighborE
vent=1-Way, NeighborPreviousState=Full, NeighborCurrentState=Init)
[R4-Tunnel0/0/0]ospf network-type broadcast
Aug 5 2023 19:07:45-08:00 R4 %%01OSPF/3/NBR_CHG_DOWN(l)[7]:Neighbor event:neigh
bor state changed to Down. (ProcessId=256, NeighborAddress=1.1.1.1, NeighborEven
t=KillNbr, NeighborPreviousState=Init, NeighborCurrentState=Down)
[R4-Tunnel0/0/0]
[R4-Tunnel0/0/0]
Aug 5 2023 19:07:45-08:00 R4 %%01OSPF/3/NBR_DOWN_REASON(l)[8]:Neighbor state le
aves full or changed to Down. (ProcessId=256, NeighborRouterId=1.1.1.1, Neighbor
AreaId=0, NeighborInterface=Tunnel0/0/0,NeighborDownImmediate reason=Neighbor Do
wn Due to Kill Neighbor, NeighborDownPrimeReason=Interface Parameter Mismatch, N
eighborChangeTime=2023-08-05 19:07:45-08:00)
[R4-Tunnel0/0/0]
Aug 5 2023 19:07:48-08:00 R4 %%01OSPF/4/NBR_CHANGE_E(l)[9]:Neighbor changes eve
nt: neighbor status changed. (ProcessId=256, NeighborAddress=3.2.1.10, NeighborE
vent=HelloReceived, NeighborPreviousState=Down, NeighborCurrentState=Init)
[R4-Tunnel0/0/0]
Aug 5 2023 19:07:52-08:00 R4 %%01OSPF/4/NBR_CHANGE_E(l)[10]:Neighbor changes ev
ent: neighbor status changed. (ProcessId=256, NeighborAddress=1.2.1.10, Neighbor
Event=HelloReceived, NeighborPreviousState=Down, NeighborCurrentState=Init)
[R4-Tunnel0/0/0]
Aug 5 2023 19:07:52-08:00 R4 %%01OSPF/4/NBR_CHANGE_E(l)[11]:Neighbor changes ev
ent: neighbor status changed. (ProcessId=256, NeighborAddress=1.2.1.10, Neighbor
Event=2WayReceived, NeighborPreviousState=Init, NeighborCurrentState=2Way)
[R4-Tunnel0/0/0]
Aug 5 2023 19:07:58-08:00 R4 %%01OSPF/4/NBR_CHANGE_E(l)[12]:Neighbor changes ev
ent: neighbor status changed. (ProcessId=256, NeighborAddress=3.2.1.10, Neighbor
Event=2WayReceived, NeighborPreviousState=Init, NeighborCurrentState=2Way)
[R4-Tunnel0/0/0]
Aug 5 2023 19:08:29-08:00 R4 %%01OSPF/4/NBR_CHANGE_E(l)[13]:Neighbor changes ev
ent: neighbor status changed. (ProcessId=256, NeighborAddress=1.2.1.10, Neighbor
Event=AdjOk?, NeighborPreviousState=2Way, NeighborCurrentState=2Way)
[R4-Tunnel0/0/0]
Aug 5 2023 19:08:29-08:00 R4 %%01OSPF/4/NBR_CHANGE_E(l)[14]:Neighbor changes ev
ent: neighbor status changed. (ProcessId=256, NeighborAddress=3.2.1.10, Neighbor
Event=AdjOk?, NeighborPreviousState=2Way, NeighborCurrentState=ExStart)
[R4-Tunnel0/0/0]
Aug 5 2023 19:08:30-08:00 R4 %%01OSPF/4/NBR_CHANGE_E(l)[15]:Neighbor changes ev
ent: neighbor status changed. (ProcessId=256, NeighborAddress=3.2.1.10, Neighbor
Event=NegotiationDone, NeighborPreviousState=ExStart, NeighborCurrentState=Excha
nge)
[R4-Tunnel0/0/0]
Aug 5 2023 19:08:30-08:00 R4 %%01OSPF/4/NBR_CHANGE_E(l)[16]:Neighbor changes ev
ent: neighbor status changed. (ProcessId=256, NeighborAddress=1.2.1.10, Neighbor
Event=AdjOk?, NeighborPreviousState=2Way, NeighborCurrentState=ExStart)
[R4-Tunnel0/0/0]
Aug 5 2023 19:08:30-08:00 R4 %%01OSPF/4/NBR_CHANGE_E(l)[17]:Neighbor changes ev
ent: neighbor status changed. (ProcessId=256, NeighborAddress=3.2.1.10, Neighbor
Event=ExchangeDone, NeighborPreviousState=Exchange, NeighborCurrentState=Loading
)
[R4-Tunnel0/0/0]
Aug 5 2023 19:08:30-08:00 R4 %%01OSPF/4/NBR_CHANGE_E(l)[18]:Neighbor changes ev
ent: neighbor status changed. (ProcessId=256, NeighborAddress=1.2.1.10, Neighbor
Event=NegotiationDone, NeighborPreviousState=ExStart, NeighborCurrentState=Excha
nge)
[R4-Tunnel0/0/0]
Aug 5 2023 19:08:30-08:00 R4 %%01OSPF/4/NBR_CHANGE_E(l)[19]:Neighbor changes ev
ent: neighbor status changed. (ProcessId=256, NeighborAddress=3.2.1.10, Neighbor
Event=LoadingDone, NeighborPreviousState=Loading, NeighborCurrentState=Full)
[R4-Tunnel0/0/0]
Aug 5 2023 19:08:30-08:00 R4 %%01OSPF/4/NBR_CHANGE_E(l)[20]:Neighbor changes ev
ent: neighbor status changed. (ProcessId=256, NeighborAddress=1.2.1.10, Neighbor
Event=ExchangeDone, NeighborPreviousState=Exchange, NeighborCurrentState=Loading
)
[R4-Tunnel0/0/0]
Aug 5 2023 19:08:30-08:00 R4 %%01OSPF/4/NBR_CHANGE_E(l)[21]:Neighbor changes ev
ent: neighbor status changed. (ProcessId=256, NeighborAddress=1.2.1.10, Neighbor
Event=LoadingDone, NeighborPreviousState=Loading, NeighborCurrentState=Full)
[R4-Tunnel0/0/0]
R5
[R5]int
[R5]interface t
[R5]interface Tunnel 0/0/0
[R5-Tunnel0/0/0]ip
[R5-Tunnel0/0/0]ip add
[R5-Tunnel0/0/0]ip address 10.1.2.3 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]so
[R5-Tunnel0/0/0]source 192.168.56.1
Aug 5 2023 18:51:18-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]q
[R5]dis
[R5]display nhrp
[R5]display nhrp pe
[R5]display nhrp peer allNumber of nhrp peers: 0
[R5]display nhrp peer allNumber of nhrp peers: 0
[R5]display nhrp peer allNumber of nhrp peers: 0
[R5]int
[R5]interface t
[R5]interface Tunnel 0/0/0
[R5-Tunnel0/0/0]nhrp en
[R5-Tunnel0/0/0]nhrp entry 10.1.2.1 192.168.61.1 r
[R5-Tunnel0/0/0]nhrp entry 10.1.2.1 192.168.61.1 register
[R5-Tunnel0/0/0]q
[R5]dis
[R5]display nhrp pe
[R5]display nhrp peer all
-------------------------------------------------------------------------------
Protocol-addr Mask NBMA-addr NextHop-addr Type Flag
-------------------------------------------------------------------------------
10.1.2.1 32 192.168.61.1 10.1.2.1 static hub
-------------------------------------------------------------------------------
Tunnel interface: Tunnel0/0/0
Created time : 00:00:45
Expire time : --
-------------------------------------------------------------------------------
Protocol-addr Mask NBMA-addr NextHop-addr Type Flag
-------------------------------------------------------------------------------
10.1.2.2 32 192.168.46.1 10.1.2.2 dynamic route tunnel
-------------------------------------------------------------------------------
Tunnel interface: Tunnel0/0/0
Created time : 00:01:40
Expire time : 01:58:20Number of nhrp peers: 2
[R5]int
[R5]interface t
[R5]interface Tunnel 0/0/0
[R5-Tunnel0/0/0]nhrp
[R5-Tunnel0/0/0]nhrp en
[R5-Tunnel0/0/0]nhrp entry mu
[R5-Tunnel0/0/0]nhrp entry multicast dy
[R5-Tunnel0/0/0]nhrp entry multicast dynamic
[R5-Tunnel0/0/0]
[R5-Tunnel0/0/0]q
[R5]ping 10.1.2.2
PING 10.1.2.2: 56 data bytes, press CTRL_C to break
Reply from 10.1.2.2: bytes=56 Sequence=1 ttl=255 time=40 ms
Reply from 10.1.2.2: bytes=56 Sequence=2 ttl=255 time=20 ms
Reply from 10.1.2.2: bytes=56 Sequence=3 ttl=255 time=20 ms
Reply from 10.1.2.2: bytes=56 Sequence=4 ttl=255 time=20 ms
Reply from 10.1.2.2: bytes=56 Sequence=5 ttl=255 time=20 ms--- 10.1.2.2 ping statistics ---
5 packet(s) transmitted
5 packet(s) received
0.00% packet loss
round-trip min/avg/max = 20/24/40 ms[R5]os
[R5]ospf 1 ro
[R5]ospf 1 router-id 5.5.5.5
[R5-ospf-1]area 0
[R5-ospf-1]area 0
[R5-ospf-1-area-0.0.0.0]net
[R5-ospf-1-area-0.0.0.0]network 10.1.2.3 0.0.0.0
[R5-ospf-1-area-0.0.0.0]net
Aug 5 2023 19:03:38-08:00 R5 %%01OSPF/4/NBR_CHANGE_E(l)[1]:Neighbor changes eve
nt: neighbor status changed. (ProcessId=256, NeighborAddress=2.2.1.10, 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.1 0.0.0.0
[R5-ospf-1-area-0.0.0.0]
[R5-ospf-1-area-0.0.0.0]q
[R5-ospf-1]dis
[R5-ospf-1]display os
[R5-ospf-1]display ospf pe
[R5-ospf-1]display ospf peer br
[R5-ospf-1]display ospf peer briefOSPF Process 1 with Router ID 5.5.5.5
Peer Statistic Information
----------------------------------------------------------------------------
Area Id Interface Neighbor id State
0.0.0.0 Tunnel0/0/0 4.4.4.4 Init
----------------------------------------------------------------------------
[R5-ospf-1]q
[R5]int
[R5]interface t
[R5]interface Tunnel 0/0/0
[R5-Tunnel0/0/0]os
[R5-Tunnel0/0/0]ospf net
[R5-Tunnel0/0/0]ospf network-type br
[R5-Tunnel0/0/0]ospf network-type broadcast
Aug 5 2023 19:07:48-08:00 R5 %%01OSPF/3/NBR_CHG_DOWN(l)[2]:Neighbor event:neigh
bor state changed to Down. (ProcessId=256, NeighborAddress=4.4.4.4, NeighborEven
t=KillNbr, NeighborPreviousState=Init, NeighborCurrentState=Down)
[R5-Tunnel0/0/0]
[R5-Tunnel0/0/0]
Aug 5 2023 19:07:48-08:00 R5 %%01OSPF/3/NBR_DOWN_REASON(l)[3]:Neighbor state le
aves full or changed to Down. (ProcessId=256, NeighborRouterId=4.4.4.4, Neighbor
AreaId=0, NeighborInterface=Tunnel0/0/0,NeighborDownImmediate reason=Neighbor Do
wn Due to Kill Neighbor, NeighborDownPrimeReason=Interface Parameter Mismatch, N
eighborChangeTime=2023-08-05 19:07:48-08:00)
[R5-Tunnel0/0/0]
Aug 5 2023 19:07:52-08:00 R5 %%01OSPF/4/NBR_CHANGE_E(l)[4]:Neighbor changes eve
nt: neighbor status changed. (ProcessId=256, NeighborAddress=1.2.1.10, NeighborE
vent=HelloReceived, NeighborPreviousState=Down, NeighborCurrentState=Init)
[R5-Tunnel0/0/0]
Aug 5 2023 19:07:52-08:00 R5 %%01OSPF/4/NBR_CHANGE_E(l)[5]:Neighbor changes eve
nt: neighbor status changed. (ProcessId=256, NeighborAddress=1.2.1.10, NeighborE
vent=2WayReceived, NeighborPreviousState=Init, NeighborCurrentState=2Way)
[R5-Tunnel0/0/0]
Aug 5 2023 19:07:55-08:00 R5 %%01OSPF/4/NBR_CHANGE_E(l)[6]:Neighbor changes eve
nt: neighbor status changed. (ProcessId=256, NeighborAddress=2.2.1.10, NeighborE
vent=HelloReceived, NeighborPreviousState=Down, NeighborCurrentState=Init)
[R5-Tunnel0/0/0]
Aug 5 2023 19:07:55-08:00 R5 %%01OSPF/4/NBR_CHANGE_E(l)[7]:Neighbor changes eve
nt: neighbor status changed. (ProcessId=256, NeighborAddress=2.2.1.10, NeighborE
vent=2WayReceived, NeighborPreviousState=Init, NeighborCurrentState=2Way)
[R5-Tunnel0/0/0]
Aug 5 2023 19:08:30-08:00 R5 %%01OSPF/4/NBR_CHANGE_E(l)[8]:Neighbor changes eve
nt: neighbor status changed. (ProcessId=256, NeighborAddress=1.2.1.10, NeighborE
vent=AdjOk?, NeighborPreviousState=2Way, NeighborCurrentState=ExStart)
[R5-Tunnel0/0/0]
Aug 5 2023 19:08:30-08:00 R5 %%01OSPF/4/NBR_CHANGE_E(l)[9]:Neighbor changes eve
nt: neighbor status changed. (ProcessId=256, NeighborAddress=2.2.1.10, NeighborE
vent=AdjOk?, NeighborPreviousState=2Way, NeighborCurrentState=ExStart)
[R5-Tunnel0/0/0]
Aug 5 2023 19:08:30-08:00 R5 %%01OSPF/4/NBR_CHANGE_E(l)[10]:Neighbor changes ev
ent: neighbor status changed. (ProcessId=256, NeighborAddress=1.2.1.10, Neighbor
Event=NegotiationDone, NeighborPreviousState=ExStart, NeighborCurrentState=Excha
nge)
[R5-Tunnel0/0/0]
Aug 5 2023 19:08:30-08:00 R5 %%01OSPF/4/NBR_CHANGE_E(l)[11]:Neighbor changes ev
ent: neighbor status changed. (ProcessId=256, NeighborAddress=2.2.1.10, Neighbor
Event=NegotiationDone, NeighborPreviousState=ExStart, NeighborCurrentState=Excha
nge)
[R5-Tunnel0/0/0]
Aug 5 2023 19:08:30-08:00 R5 %%01OSPF/4/NBR_CHANGE_E(l)[12]:Neighbor changes ev
ent: neighbor status changed. (ProcessId=256, NeighborAddress=2.2.1.10, Neighbor
Event=ExchangeDone, NeighborPreviousState=Exchange, NeighborCurrentState=Loading
)
[R5-Tunnel0/0/0]
Aug 5 2023 19:08:30-08:00 R5 %%01OSPF/4/NBR_CHANGE_E(l)[13]:Neighbor changes ev
ent: neighbor status changed. (ProcessId=256, NeighborAddress=2.2.1.10, Neighbor
Event=LoadingDone, NeighborPreviousState=Loading, NeighborCurrentState=Full)
[R5-Tunnel0/0/0]
Aug 5 2023 19:08:30-08:00 R5 %%01OSPF/4/NBR_CHANGE_E(l)[14]:Neighbor changes ev
ent: neighbor status changed. (ProcessId=256, NeighborAddress=1.2.1.10, Neighbor
Event=ExchangeDone, NeighborPreviousState=Exchange, NeighborCurrentState=Loading
)
[R5-Tunnel0/0/0]
Aug 5 2023 19:08:30-08:00 R5 %%01OSPF/4/NBR_CHANGE_E(l)[15]:Neighbor changes ev
ent: neighbor status changed. (ProcessId=256, NeighborAddress=1.2.1.10, Neighbor
Event=LoadingDone, NeighborPreviousState=Loading, NeighborCurrentState=Full)
[R5-Tunnel0/0/0]
五、测试