SR6600系列路由器接口主地址和从地址分别建GRE隧道的配置
摘要:SR66;GRE;隧道;从地址
一、组网需求:
网络中存在SR6602-1、SR6602-2两台路由器,被公网设备隔开(使用一台MSR30-20模拟),其中SR6602-1的公网出口G0/0配置了主地址和从地址。目前两台SR6602可以Ping通对方的公网出口地址。
现在要实现以下功能:
1、SR6602-1使用公网出口主地址与SR6602-2公网出口主地址建立GRE隧道0,实现两设备Loopback0之间的通信。
2、 SR6602-1使用公网出口从地址与SR6602-2公网出口主地址建立GRE隧道1,实现两设备Loopback1之间的通信。
设备及版本:SR6602路由器2台(版本为R2604P08)、MSR30-20路由器1台(版本为R2209P15)。
二、组网图:
三、配置步骤:
SR6602-1 配置
#
interface LoopBack0
ip address 1.1.1.1 255.255.255.255
#
interface LoopBack1
ip address 2.2.2.2 255.255.255.255
#
interface GigabitEthernet0/0
ip address 20.0.0.1 255.255.255.0
ip address 20.0.0.3 255.255.255.0 sub //从地址
#
interface Tunnel0
ip address 10.0.0.1 255.255.255.0
source 20.0.0.1
destination 21.0.0.2
keepalive 10 3
#
interface Tunnel1
ip address 11.0.0.1 255.255.255.0
source 20.0.0.3 //隧道源为从地址
destination 21.0.0.2
keepalive 10 3
#
ip route-static 3.3.3.3 255.255.255.255 Tunnel0
ip route-static 4.4.4.4 255.255.255.255 Tunnel1
ip route-static 21.0.0.0 255.255.255.0 20.0.0.2
#
MSR30-20 配置
#
interface GigabitEthernet0/0
port link-mode route
ip address 20.0.0.2 255.255.255.0
#
interface GigabitEthernet0/1
port link-mode route
ip address 21.0.0.1 255.255.255.0
#
SR6602-2 配置
#
interface LoopBack0
ip address 3.3.3.3 255.255.255.255
#
interface LoopBack1
ip address 4.4.4.4 255.255.255.255
#
interface GigabitEthernet0/1
ip address 21.0.0.2 255.255.255.0
#
interface Tunnel0
ip address 10.0.0.2 255.255.255.0
source 21.0.0.2
destination 20.0.0.1
keepalive 10 3
#
interface Tunnel1
ip address 11.0.0.2 255.255.255.0
source 21.0.0.2
destination 20.0.0.3 //隧道目的为从地址
keepalive 10 3
#
ip route-static 1.1.1.1 255.255.255.255 Tunnel0
ip route-static 2.2.2.2 255.255.255.255 Tunnel1
ip route-static 20.0.0.0 255.255.255.0 21.0.0.1
#
四、功能测试:
从SR6602-1上看:
1、 Tunnel0、Tunnel1均能UP。
2、 Ping –a 10.0.0.1 10.0.0.2以及Ping –a 11.0.0.1 11.0.0.2可以通。
3、 Ping –a 1.1.1.1 3.3.3.3可以通,数据包走Tunnel0;Ping –a 2.2.2.2 4.4.4.4可以通,数据包走Tunnel1.
4、 Ping –a 2.2.2.2 3.3.3.3可以通,去程数据包走Tunnel0,回程数据包走Tunnel1.
五、配置关键点:
无
该案例暂时没有网友评论
✖
案例意见反馈
亲~登录后才可以操作哦!
确定你的邮箱还未认证,请认证邮箱或绑定手机后进行当前操作