debian 10 手动设置 IPv6
查看是否开启IPV6
lsmod | grep ipv6
无返回信息,则没有开启
一、编辑网卡文件
vi /etc/network/interfaces
二、添加 IPv6 地址
iface eth0 inet6 static
address 您的公用IPV6地址
netmask 64
gateway 您的IPV6网关
autoconf 0
dns-nameservers 2001:4860:4860::8844 2001:4860:4860::8888 209.244.0.3
IPV6地址后面不加/64
三、重启网络
/etc/init.d/networking restart
四、测试 IPv6 链接
ping6 ipv6.google.com
共有 0 条评论