OSPFMGRE

配置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
 

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值