Windows XP Windows 7 Windows 2003 Windows Vista Windows 綜合教學 Linux 系統教學
Windows 10 Windows 8 Windows 2008 Windows NT Windows Server 電腦軟體教學
您现在的位置: Windows教程網 >> Windows教程 >  >> Linux 系統教學 >> 關於 Linux

Ubuntu 啟用 IPv6 兩大實用方法(Miredo / GW6C)

編輯:關於 Linux

IPv6 是下一代網際網路協定,Ubuntu 預設可能未啟用。本文介紹兩種快速啟用 IPv6 的方法:使用 Miredo(Teredo 隧道)與 GW6C(gogo6 客戶端),均可讓系統獲得 IPv6 位址並訪問 IPv6 網站。

方法一:Miredo(推薦,適合一般用戶)

sudo apt-get install miredo
ifconfig
# 應出現 teredo 虛擬網卡與 IPv6 位址(以 2001:0: 开头)

# 測試連線
ping6 ipv6.google.com
# 成功顯示回應即表示 IPv6 通暢

此時瀏覽器已可訪問 https://ipv6.google.com。

進階:添加 IPv6 Hosts 解鎖更多網站

sudo gedit /etc/hosts
# 將下列 hosts 列表內容貼上(來源:https://docs.google.com/View?id=dfkdmxnt_61d9ck9ffq)
# 可解鎖 youtube.com 等網站

防火牆配置(UFW)

sudo gedit /etc/default/ufw
# 將 IPV6=no 改為 IPV6=yes
sudo ufw disable
sudo ufw enable
# 重啟防火牆使 IPv6 規則生效

方法二:GW6C(gogo6 客戶端)

sudo apt-get install gw6c
# 安裝後依提示輸入 gogo6 帳號(可免費註冊)即可建立隧道

GW6C 提供更穩定的 IPv6 連線,適合需固定 IPv6 位址或跑伺服器的用戶。

IPv6 連線測試截圖

快速驗證

  • ifconfig | grep inet6 查看是否有全域 IPv6 位址(非 fe80:: 開頭的 link-local)。
  • ping6 ipv6.google.com 通則成功。
  • 瀏覽器開啟 test-ipv6.com 綜合評分。
Copyright © Windows教程網 All Rights Reserved