ubuntu 下启用ipv6
生活随笔
收集整理的這篇文章主要介紹了
ubuntu 下启用ipv6
小編覺(jué)得挺不錯(cuò)的,現(xiàn)在分享給大家,幫大家做個(gè)參考.
安裝Teredo隧道客戶端
sudo apt-get install miredo sudo miredo用ifconfig 確定是否安裝正確
查看teredo服務(wù)狀態(tài)
sudo systemctl status miredo.service測(cè)試方法:
ping6 ipv6.google.com或者 訪問(wèn) http://test-ipv6.com/ 網(wǎng)站
注意點(diǎn)
以下只是一些注意點(diǎn),可能不需要更改也可以訪問(wèn),按需修改:
1.更改miredo配置文件
sudo vim /etc/miredo.confserverAddress后填入可以ping通的teredo服務(wù)器(自行百度嘗試)
2.重啟teredo服務(wù)
sudo systemctl restart miredo.service3.確認(rèn)配置文件
sudo gedit /etc/default/ufw把IPV6 為 yes
4.關(guān)于ipv6 hosts
ubuntu路徑為 /etc/hosts
因?yàn)閕pv6為普及,可能訪問(wèn)速度很慢,需要hosts,下面鏈接的github項(xiàng)目里講的很詳細(xì):
https://github.com/lennylxx/ipv6-hosts
5.防火墻
需要禁用/啟用防火墻使變更生效:
sudo ufw disable sudo ufw enable總結(jié)
以上是生活随笔為你收集整理的ubuntu 下启用ipv6的全部?jī)?nèi)容,希望文章能夠幫你解決所遇到的問(wèn)題。
- 上一篇: JUC -- 辅助类
- 下一篇: ubuntu18.04安装pycharm