

配置过程 仅供参考 :



进行NAT 设置 并先将接口划分内外属性

在R3上自动生成的缺省路由

配置ACL控制列表
并进行调用


2.合理规划地址,R2\4\5之间使用MGRE结构,R2为hub端
在R2(hub)端的配置
配置私有ip地址

配置 隧道 key 模式 源地址

查看隧道配置

R4(SPOKE端)的配置
R4(config)#interface tunnel 1
*Jan 14 12:42:15.839: %LINEPROTO-5-UPDOWN: Line protocol on Interface Tunnel1, changed state to down
R4(config-if)#ip address 22.1.1.2 255.255.255.0
R4(config-if)#tunnel source 11.1.4.2
R4(config-if)#tunnel mode gre multipoint
R4(config-if)#tunnel key 123
*Jan 14 12:47:25.855: %LINEPROTO-5-UPDOWN: Line protocol on Interface Tunnel1, changed state to up
R4(config-if)#tunnel key 12345
R4(config-if)#ip nhrp network-id 100
R4(config-if)#ip nhrp map 22.1.1.1 11.1.4.1
R4(config-if)#ip nhrp map multicast 11.1.4.1
R5的配置
R5(config)#interface tunnel 1
*Jan 14 12:49:22.611: %LINEPROTO-5-UPDOWN: Line protocol on Interface Tunnel1, changed state to down
R5(config-if)#ip address 22.1.1.3 255.255.255.0
R5(config-if)#tunnel source 11.1.4.3
R5(config-if)#tunnel mode gre multipoint
R5(config-if)#tunnel key 12345
*Jan 14 12:49:52.627: %LINEPROTO-5-UPDOWN: Line protocol on Interface Tunnel1, changed state to up
R5(config-if)#tunnel key 12345
R5(config-if)#ip nhrp network-id 100
R5(config-if)#ip nhrp nhs 22.1.1.1
R5(config-if)#ip nhrp map 22.1.1.1 11.1.4.1
R5(config-if)#ip nhrp map multicast 11.1.4.1





8.检查网络连通性

本文详细介绍了在R2、R4、R5路由器间利用MGRE(Multipoint GRE)技术建立虚拟隧道网络的过程。通过配置私有IP地址、隧道源地址、GRE模式及NHRP映射等参数,实现多点到多点的高效通信。文章还提供了具体配置命令及状态检查方法,确保网络连通性。
1437

被折叠的 条评论
为什么被折叠?



