本文共 998 字,大约阅读时间需要 3 分钟。
vim /etc/network/interfaces
vim /etc/sysctl.conf
net.ipv6.conf.all.disable_ipv6 = 1net.ipv6.conf.default.disable_ipv6 = 1net.ipv6.conf.lo.disable_ipv6 = 1
改为
net.ipv6.conf.all.disable_ipv6 = 0net.ipv6.conf.default.disable_ipv6 = 0net.ipv6.conf.lo.disable_ipv6 = 0
将
nameserver 2001:4860:4860::8844nameserver 2001:470:20::2
分别添加到
vim /etc/resolvconf/resolv.conf.d/base
以及
vim /etc/resolv.conf
的末尾
ping6 -c 5 2001:4860:4860::8888ping6 -c 5 ipv6.google.com
都能ping通即配置成功
转载地址:http://hdzfi.baihongyu.com/