|
目前就测试了debian,centos。应该差不太多,就是官方的gateway错了。绿云也不解决真的很烦。
照着自己的面板的数据编辑/etc/network/interfaces- # Generated by SolusVM auto lo iface lo inet loopback auto eth0 iface eth0 inet static address 69.161.221.XXX gateway 69.161.221.1 netmask 255.255.255.0 dns-nameservers 8.8.8.8 8.8.4.4 up ip addr add 2402:a7c0:8100:a015::XXX:XXX/112 dev eth0 up ip -6 route add 2402:a7c0:8100:XXX:0000:0000[color=Red]:0000:[/color]0001 dev eth0 up ip -6 route add default via 2402:a7c0:8100:XXX:0000:0000[color=Red]:0000:[/color]0001
复制代码 然后
systemctl restart networking.service
CentOS直接改:/etc/sysconfig/network-scripts/ifcfg-eth0
默认的IPV6_DEFAULTGW=后面的参数错了,改为面板上面的数值。再systemctl restart network |
|