debian 10 手动设置 IPv6

一、编辑网卡文件

vi /etc/network/interfaces

二、添加 IPv6 地址

iface eth0 inet6 static
address YOUR_PUBLIC_IPV6_ADDRESS
netmask 64
gateway YOUR_PUBLIC_PIV6_GATEWAY
autoconf 0
dns-nameservers 2001:4860:4860::8844 2001:4860:4860::8888 209.244.0.3

三、重启网络

/etc/init.d/networking restart

四、测试 IPv6 链接

ping6 ipv6.google.com

添加新评论