配置IP路由地址
在配置R1-R5缺省路由
配置R1
R2配置
R3配置
R4,R5同理
检测
R1
[r1-Tunnel0/0/0]display this
[V200R003C00]
#
interface Tunnel0/0/0
ip address 192.168.1.1 255.255.255.0
tunnel-protocol gre p2mp
source 16.0.0.1
ospf network-type broadcast
nhrp entry multicast dynamic
nhrp entry 192.168.1.4 46.0.0.4 register
nhrp entry 192.168.1.5 56.0.0.5 register
R2
[r2-Tunnel0/0/0]display this
[V200R003C00]
#
interface Tunnel0/0/0
ip address 192.168.2.2 255.255.255.0
tunnel-protocol gre p2mp
source GigabitEthernet0/0/0
ospf network-type broadcast
nhrp entry multicast dynamic
nhrp entry 192.168.2.1 61.0.0.1 register
#
R4
[r4-Tunnel0/0/0]display this
[V200R003C00]
#
interface Tunnel0/0/0
ip address 192.168.1.4 255.255.255.0
tunnel-protocol gre p2mp
source 46.0.0.4
ospf network-type broadcast
nhrp entry multicast dynamic
nhrp entry 192.168.5.1 56.0.0.5 register
nhrp entry 192.168.1.1 16.0.0.1 register
nhrp entry 192.168.1.5 56.0.0.5 register
[r4-Tunnel0/0/0]display nhrp peer all
-------------------------------------------------------------------------------
Protocol-addr Mask NBMA-addr NextHop-addr Type Flag
-------------------------------------------------------------------------------
192.168.5.1 32 56.0.0.5 192.168.5.1 static hub
-------------------------------------------------------------------------------
Tunnel interface: Tunnel0/0/0
Created time : 00:35:46
Expire time : --
-------------------------------------------------------------------------------
Protocol-addr Mask NBMA-addr NextHop-addr Type Flag
-------------------------------------------------------------------------------
192.168.1.1 32 16.0.0.1 192.168.1.1 static hub
-------------------------------------------------------------------------------
Tunnel interface: Tunnel0/0/0
Created time : 00:01:54
Expire time : --
-------------------------------------------------------------------------------
Protocol-addr Mask NBMA-addr NextHop-addr Type Flag
-------------------------------------------------------------------------------
192.168.1.5 32 56.0.0.5 192.168.1.5 static hub
-------------------------------------------------------------------------------
Tunnel interface: Tunnel0/0/0
Created time : 00:00:41
Expire time : --
R5
[r5-Tunnel0/0/0]display nhrp peer all
-------------------------------------------------------------------------------
Protocol-addr Mask NBMA-addr NextHop-addr Type Flag
-------------------------------------------------------------------------------
192.168.1.1 32 16.0.0.1 192.168.1.1 static hub
-------------------------------------------------------------------------------
Tunnel interface: Tunnel0/0/0
Created time : 00:18:42
Expire time : --
-------------------------------------------------------------------------------
Protocol-addr Mask NBMA-addr NextHop-addr Type Flag
-------------------------------------------------------------------------------
192.168.4.1 32 46.0.0.4 192.168.4.1 static hub
-------------------------------------------------------------------------------
Tunnel interface: Tunnel0/0/0
Created time : 00:18:20
Expire time : --
-------------------------------------------------------------------------------
Protocol-addr Mask NBMA-addr NextHop-addr Type Flag
-------------------------------------------------------------------------------
192.168.1.4 32 46.0.0.4 192.168.1.4 static hub
-------------------------------------------------------------------------------
Tunnel interface: Tunnel0/0/0
Created time : 00:01:00
Expire time : --
-------------------------------------------------------------------------------
Protocol-addr Mask NBMA-addr NextHop-addr Type Flag
-------------------------------------------------------------------------------
192.168.1.5 32 56.0.0.5 192.168.1.5 dynamic local
-------------------------------------------------------------------------------
Tunnel interface: Tunnel0/0/0
Created time : 00:05:04
Expire time : 01:54:56