首页
学习
活动
专区
工具
TVP
发布
社区首页 >问答首页 >腾讯云两台主机设置ipip隧道无法ping通?

腾讯云两台主机设置ipip隧道无法ping通?

提问于 2020-08-09 19:18:24
回答 1关注 0查看 1K

教程来自:https://blog.csdn.net/weixin_34206899/article/details/91721728

防火墙都是全部放行的,但是就是ping不通,不知道是什么情况

主机1:129.28.X.96,私网:172.30.0.9/20

代码语言:js
复制
modprobe ipip
modprobe ip_gre
ip tunnel add tun0 mode gre remote 118.126.Y.168 local 129.28.X.96 ttl 64
ip link set tun0 up
ip addr add 172.30.0.9 peer 172.27.16.5 dev tun0
ip route add 172.27.16.0/20 dev tun0
iptables -F

主机2:118.126.Y.168,私网:172.27.16.5/20

代码语言:js
复制
modprobe ipip
modprobe ip_gre
ip tunnel add tun0 mode gre remote 129.28.X.96 local 118.126.Y.168 ttl 64
ip link set tun0 up
ip addr add 172.27.16.5 peer 172.30.0.9 dev tun0
ip route add 172.30.0.0/20 dev tun0
iptables -F

这两天快被这个搞死了,哪位大佬知道这是什么问题吗?

相关文章

相似问题

相关问答用户
领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档