本文共 1043 字,大约阅读时间需要 3 分钟。
华为eNSP GRE
2016年07月05日 15:43:17阅读数:3387配置GRE 隧道 使私网主机192.168.0.1/24、172.16.0.1/24间可以相互访问(正常时私网路由在公网中不传播)拓扑如图
注意:
在AR2与AR3间建立隧道,把私网封装在公网地址里面。首先应保证AR2 Ge0/0/0 与 AR3 Ge0/0/0 IP互通(AR2--AR1--AR3路由互通)
1、在 AR2上配置静态路由 与其他配置
interface GigabitEthernet0/0/0
ip address 12.0.0.2 255.0.0.0 interface GigabitEthernet0/0/1ip address 192.168.0.1 255.255.255.0 #interface GigabitEthernet0/0/2#interface NULL0#interface Tunnel0/0/1ip address 172.16.1.1 (GRE隧道地址)tunnel-protocol gresource 12.0.0.2 (源地址)destination 13.0.0.2 (目标地址)#ip route-static 172.16.0.0 255.255.0.0 Tunnel0/0/1#2、AR3 路由器配置
#
interface GigabitEthernet0/0/0ip address 13.0.0.2 255.0.0.0 interface GigabitEthernet0/0/1ip address 172.16.1.2 255.255.255.0 #interface GigabitEthernet0/0/2#interface NULL0#interface Tunnel0/0/1ip address 172.16.1.2 (GRE隧道地址)tunnel-protocol gresource 13.0.0.2 (源地址)destination 12.0.0.2 (目标地址)#ip route-static 172.16.1.2 255.255.0.0 Tunnel0/0/1转载于:https://blog.51cto.com/9821049/2141025