使用IPIP打通隧道[笔记]

查看IPIP模块: modinfo ipip 开始建立隧道: 注:这里设置A主机的公网IP为1.1.1.1,B主机的公网IP为2.2.2.2 A主机操作: ip tunnel add ipip-tunnel mode ipip remote 2.2.2.2 local 1.1.1.1 ifconfig ipip-tunnel 10.0.1.1 netmask 255.255.255.0 B主机操作: ip tunnel add ipip-tunnel mo […]