digitalocean vps开通IPv6教程

digitalocean vps开通IPv6非常简单,教程如下:

开启IPv6

1 在开通droplet时候勾选IPv6

在后台面板找到IPv6地址:

2 修改系统网络配置,让IPv6开机永久生效

Ubuntu下,编辑/etc/network/interfaces
. . .
iface eth0 inet6 static
address primary_ipv6_address
netmask 64
gateway ipv6_gateway
autoconf 0
dns-nameservers 2001:4860:4860::8844 2001:4860:4860::8888 209.244.0.3
. . .

将上面地址修改成你的vps对应的IPv6地址。

如果你用CentOS,修改
sudo nano /etc/sysconfig/network-scripts/ifcfg-eth0
. . .
IPV6INIT=yes
IPV6ADDR=primary_ipv6_address/64
IPV6_DEFAULTGW=ipv6_gateway
IPV6_AUTOCONF=no
. . .

重启vps生效,建议配合dnspod进行域名IPv6解析。

参考:DigitalOcean官方文档

点击免费注册digitalocean,赠送10美元优惠码。

相关阅读

vultr vps开通IPv6教程

Leave a Reply

Your email address will not be published. Required fields are marked *

Related Posts

Begin typing your search term above and press enter to search. Press ESC to cancel.