關於 PHP, Linux, Open Source 及個人生活記載的網誌。
RSS icon
  • 關閉 Linux 的 IPv6 通訊協定

    Posted on September 13th, 2006 Sam Tang 1 comment

    大多數的 Linux Distro 也將 IPv6 (Internet Protocol Version 6) 預設地開啟,但有時實際上不需要 IPv6 支援,如要關閉 IPv6 可用以下方法:

    Debian / Ubuntu
    1. 開啟 /etc/modprobe.d/aliases
    2. 裡面有一行是 "alias net-pf-10 ipv6"
    3. 將以上一行用以下兩行取代:
    alias net-pf-10 off
    alias ipv6 off

    Red Hat
    1. 開啟 /etc/modprobe.conf
    2. 加入這一行:
    alias net-pf-10 off

    更改以上檔案後重新啟動系統,這時 IPv6 便會關閉。我在 Ubuntu 上關閉了 IPv6 後,發覺 DNS 的效能改善了,那就是一般上網時要 resolve ip 時回應得更快。


     

    One response to “關閉 Linux 的 IPv6 通訊協定”

    1. [...] 關閉 Linux 的 IPv6 通訊協定 – Real-Blog (tags: Tech Linux IPv6 Network HOWTO) [...]

    Leave a reply

    *
    To prove you're a person (not a spam script), type the security word shown in the picture. Click on the picture to hear an audio file of the word.
    Click to hear an audio file of the anti-spam word