侧边栏壁纸
  • 累计撰写 54 篇文章
  • 累计创建 71 个标签
  • 累计收到 1 条评论

目 录CONTENT

文章目录

Debian 自动配置ipv6教程

Seger
2022-08-29 / 0 评论 / 0 点赞 / 322 阅读 / 112 字

编辑interfaces文件

nano /etc/network/interfaces

在文本最后面添加:

iface xxx inet6 dhcp

注意:xxx改成和你ipv4一样的网口

最后ctrl+x保存,y确认
然后reboot重启
查看ipv6地址:

ip -6 route show

ping 谷歌ipv6,看能不能通

ping ipv6.google.com

添加IPV6 DNS

nano /etc/resolv.conf

在文本最后面添加:

nameserver 2001:4860:4860::8888

最后ctrl+x保存,y确认
然后reboot重启

0

评论区