Ubuntu開啟IPv6協議(包括校園網相關)__IPv6

來源:互聯網
上載者:User

國內很多高校的校園網應該都支援IPv6實驗網路的,Windows下預設支援比較好,但用Ubuntu發現並不能正常使用IPv6。
在網上搜了下辦法,總結一下解決步驟(基本都是終端命令操作):
①安裝相關軟體包:

sudo apt-get install miredo

②修改設定檔:

sudo gedit /etc/default/ufw

然後把其中的IPV6=no改成IPV6=yes

③重啟相關服務進程:

sudo invoke-rc.d networking restart

解決校園網不能走v6協議上網:

④上面是前提,接著上面的步驟,修改相關設定檔:

sudo gedit /etc/sysctl.d/10-ipv6-privacy.conf

檔案中有如下兩行:
net.ipv6.conf.all.use_tempaddr = 2
net.ipv6.conf.default.use_tempaddr = 2
把2都改成0

⑤重新整理配置:

sudo sysctl --system

搞定,可以重啟一下系統,再重新登入一下校園網。

參考:
http://blog.csdn.net/qq_18820397/article/details/51171220
http://blog.csdn.net/scylhy/article/details/72699166

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.