TypechoJoeTheme

主机评测

VPS教程

专注云服务器评测和优惠码发布
搜索到 1 篇与 IPIP隧道 的结果
2021-01-14

IPIP隧道教程

IPIP隧道教程
想把A服务器的IP地址拿到B服务器上使用,那么可以使用IPIP隧道方式如下教程均在debian下测试测试环境如下服务器A:公网:192.168.0.1/24,额外IP:192.168.1.1/24服务器B:公网:192.168.2.1/24添加IP地址首先给服务器A添加额外IPvi /etc/network/interfaces auto eth0:0 iface eth0:0 inet static address 192.168.1.1 netmask 255.255.255.255开启转发echo 'net.ipv4.ip_forward=1' >> /etc/sysctl.conf && sysctl -p设置IPIP隧道在服务器A执行:iptunnel add shc mode ipip local 192.168.1.1 remote 192.168.2.1 ttl 255 ip addr add 172.16.0.1/30 dev shc ip link set shc up在服务器B执行:iptunnel add shc mode ip...
2021-01-14
1,004 阅读
2021年01月14日
1,004 阅读
0 评论