配置如下:
MSR1
interface GigabitEthernet0/0
port link-mode route
combo enable copper
ip address 192.168.1.1 255.255.255.0
#
interface GigabitEthernet0/1
port link-mode route
combo enable copper
ip address 202.115.22.48 255.255.255.0
#
interface Tunnel0 mode gre
ip address 10.1.1.1 255.255.255.0
source 202.115.22.48
destination 202.115.24.50
ipsec apply policy r1
#
#
ip route-static 192.168.2.0 24 Tunnel0
#
acl advanced 3000
rule 0 permit ip source 192.168.1.0 0.0.0.255 destination 192.168.2.0 0.0.0.255
#
#
ipsec transform-set r1
esp encryption-algorithm des-cbc
esp authentication-algorithm md5
#
ipsec policy r1 1 isakmp
transform-set r1
security acl 3000
remote-address 10.1.1.2
#
ike proposal 1
#
ike keychain r1
pre-shared-key address 10.1.1.2 255.255.255.0 key cipher $c$3$lE9zBv6CxVx6Xu+ulMfYMJ3f9wj0HA==
#
MSR3
#
interface GigabitEthernet0/0
port link-mode route
combo enable copper
ip address 202.115.24.50 255.255.255.0
#
interface GigabitEthernet0/1
port link-mode route
combo enable copper
ip address 192.168.2.1 255.255.255.0
#
interface Tunnel0 mode gre
ip address 10.1.1.2 255.255.255.0
source 202.115.24.50
destination 202.115.22.48
ipsec apply policy r3
#
ip route-static 192.168.1.0 24 Tunnel0
#
acl advanced 3000
rule 0 permit ip source 192.168.2.0 0.0.0.255 destination 192.168.1.0 0.0.0.255
#
#
ipsec transform-set r3
esp encryption-algorithm des-cbc
esp authentication-algorithm md5
#
ipsec policy r3 1 isakmp
transform-set r3
security acl 3000
remote-address 10.1.1.1
#
ike proposal 1
#
ike keychain r3
pre-shared-key address 10.1.1.1 255.255.255.0 key cipher $c$3$NaadwuD8WcfsfsoKCrCANi3frGku8Q==
#
return
为什么tun口up不了。
(0)
您好,请参考:
1、检查本端和对端的基础路由是否可达。
2、检查本端和对端的隧道模式是否为GRE
3、检查隧道内是否正确指定了源接口和目的IP
4、检查本端和对端的隧道内的IP地址是再同一个子网内
(0)
tunnel口的up条件:1.source地址必须是本地的地址,2.配置destination地址,3.IP路由表中有到目的地址的路由,比如你的tunnel口的destination地址是202.115.22.48,那么你这个设备就得写一条ip route-static 202.115.22.48 24 x.x.x.x,或是直接写一条访问公网的缺省路由
(1)
暂无评论
亲~登录后才可以操作哦!
确定你的邮箱还未认证,请认证邮箱或绑定手机后进行当前操作
举报
×
侵犯我的权益
×
侵犯了我企业的权益
×
抄袭了我的内容
×
原文链接或出处
诽谤我
×
对根叔社区有害的内容
×
不规范转载
×
举报说明
暂无评论