1.没有IPV6的可以工单免费申请/64.
2.在 https://manage.hosthatch.com 后台管理NETWORK处找到IPV6添加子网subnet
3.SSH运行以下命令:
nano /etc/network/interfaces
auto eth0
iface eth0 inet static
address 你的IPV4地址
gateway 你的IPV4网关
netmask 255.255.255.0
dns-nameservers 1.1.1.1 8.8.8.8
up ip addr add 您的IPV6地址/64 dev eth0
up ip -6 route add 你的IPV6网关 dev eth0
up ip -6 route add default via 你的IPV6网关
4.完成后可以PING一下GOOGLE的ipv6。
ping6 ipv6.google.com
显示如下:
64 bytes from ord37s19-in-x0e.1e100.net (2607:f8b0:4009:806::200e): icmp_seq=248 ttl=119 time=0.553 ms
64 bytes from ord37s19-in-x0e.1e100.net (2607:f8b0:4009:806::200e): icmp_seq=249 ttl=119 time=0.553 ms
64 bytes from ord37s19-in-x0e.1e100.net (2607:f8b0:4009:806::200e): icmp_seq=250 ttl=119 time=0.612 ms
64 bytes from ord37s19-in-x0e.1e100.net (2607:f8b0:4009:806::200e): icmp_seq=251 ttl=119 time=0.621 ms
64 bytes from ord37s19-in-x0e.1e100.net (2607:f8b0:4009:806::200e): icmp_seq=252 ttl=119 time=0.511 ms
64 bytes from ord37s19-in-x0e.1e100.net (2607:f8b0:4009:806::200e): icmp_seq=253 ttl=119 time=0.499 ms
64 bytes from ord37s19-in-x0e.1e100.net (2607:f8b0:4009:806::200e): icmp_seq=254 ttl=119 time=0.621 ms
64 bytes from ord37s19-in-x0e.1e100.net (2607:f8b0:4009:806::200e): icmp_seq=255 ttl=119 time=0.547 ms
64 bytes from ord37s19-in-x0e.1e100.net (2607:f8b0:4009:806::200e): icmp_seq=256 ttl=119 time=0.604 ms
64 bytes from ord37s19-in-x0e.1e100.net (2607:f8b0:4009:806::200e): icmp_seq=257 ttl=119 time=0.527 ms
64 bytes from ord37s19-in-x0e.1e100.net (2607:f8b0:4009:806::200e): icmp_seq=258 ttl=119 time=0.552 ms
64 bytes from ord37s19-in-x0e.1e100.net (2607:f8b0:4009:806::200e): icmp_seq=259 ttl=119 time=0.522 ms
64 bytes from ord37s19-in-x0e.1e100.net (2607:f8b0:4009:806::200e): icmp_seq=260 ttl=119 time=0.543 ms
64 bytes from ord37s19-in-x0e.1e100.net (2607:f8b0:4009:806::200e): icmp_seq=261 ttl=119 time=0.529 ms