Ubuntu 开启ipv6

首先执行下面一条sudo apt-get install miredo
再运行ifconfig 查看是否有名为teredo的虚拟网卡
防火墙问题

执行sudo gedit /etc/default/ufw 找到ipv6=NO ,将其改为IPV6=YES

更改miredo配置文件

执行sudo gedit /etc/miredo.conf,ServerAddress后面填入可以ping通的teredo服务器
teredo-debian.remlab.net(法国)(Miredo默认设置)

修改hosts文件

ubuntu的hosts文件路径为/etc/hosts
hosts下载地址

查看teredo服务状态

sudo systemctl status miredo.service

开机可能需要执行sudo miredo

原文地址:https://www.cnblogs.com/fmy-hmfy/p/10082038.html