有两台机子:机器A(1.2.3.4)、机器B(5.6.7.8-10.0.0.1)
现在两台机器利用gre添加一段IPV6,机器B目前ping不通机器A的V6地址(gre的IP地址设置5.6.7.8不通,改为1.0.0.1也不通)
机器A设置如下:
ip tunnel add gre mode gre remote 5.6.7.8 local 1.2.3.4 ttl 255
ip link set dev gre up
ip addr add aaaa:bbbb:cccc::2/127 dev gre
机器B设置如下:
ip tunnel add gre mode gre remote 1.2.3.4 local 10.0.0.1 ttl 255(ip tunnel add gre mode gre remote 1.2.3.4 local 5.6.7.8 ttl 255)
ip link set dev gre up
ip addr add aaaa:bbbb:cccc::3/127 dev gre