在 Windows 裏,使用學校的 IPv6 是默認支持,不須要額外配置的linux
可是在 Archlinux 裏, 默認配置下我發現一旦連上寬帶 (pppoe) , 就只能 IPv4,沒法識別 IPv6網絡
後來找到了一篇 12年 海峽對岸網友的博客,博客中說道他參考了對岸的配置 ( 誒,又繞回來了?網站
而後固然還看了 Arch Wiki 關於 IPv6 的部分,最後配置成功了code
關鍵在於須要使用一個叫 Teredo
的技術orm
維基百科說道:router
In computer networking, Teredo is a transition technology that gives full IPv6 connectivity for IPv6-capable hosts that are on the IPv4 Internet but have no native connection to an IPv6 network. Unlike similar protocols, it can perform its function even from behind network address translation (NAT) devices such as home routers.ip
嗯,到底咋配置呢博客
安裝 Teredo 支持it
sudo pacman -S miredo
而後就能夠 sudo miredo
使用io
若是不想每次開機都手動運行開啓服務就好了
systemctl enable miredo
若是正常 ifconfig 會發現多出來一個虛擬網卡
配置 pppd (Arch Wiki 上說的,我不知道是否是必需的)
在 pppd 的配置文件 /etc/ppp/pppoe.conf
中 加入一行 +ipv6
保存
重啓以後你會發現鏈接寬帶的時候也能上 IPv6 的網站了
以前寫的全是錯的哦!今天才真正明白究竟是咋回事。。。
學校裏的網絡是教育網 cernet2,是可以直接獲取 IPv6 地址的,是真正的 IPv6,不必使用什麼 teredo 了
以前必須用 teredo 才行是由於我有一個地方忘了配置了!!
總結: 在黃渡理工宿舍,讓 Archlinux 裏的 pppoe 支持 IPv6 攏共分三步:
/etc/ppp/pppoe.conf
中 加入一行 +ipv6
保存/etc/ppp/options
里加上一句 ipv6 ,
別丟了空格和逗號, 保存順便說一句,學校裏的 IPv6 雖然速度不快, 可是用這個能 奿摤 啊