CentOS disable ipv6

2013-07-02 CentOS

CentOS 5

  1. 編輯 /etc/sysconfig/network 並設定 NETWORKING_IPV6=no
  2. 編輯 /etc/modprobe.conf

    ※5.4以上版本時加上
    options ipv6 disable=1

    ※5.3以下版本時加上

  3. alias ipv6 off
    alias net-pf-10 off

  4. 設定完成後重新啟動系統

CentOS 6

在 /etc/sysctl.conf 加入
net.ipv6.conf.all.disable_ipv6 = 1
net.ipv6.conf.default.disable_ipv6 = 1



sysctl -w net.ipv6.conf.all.disable_ipv6=1
sysctl -w net.ipv6.conf.default.disable_ipv6=1


轉貼至http://beakdoosan.blogspot.tw/

給 Mr. 沙先生一點建議

彙整

分類

展開全部 | 收合全部

License

訂閱 Mr. 沙先生 的文章

輸入你的 email 用於訂閱