ユーザ用ツール

サイト用ツール


01_linux:01_net:ipv6無効化

差分

このページの2つのバージョン間の差分を表示します。

この比較画面へのリンク

01_linux:01_net:ipv6無効化 [2014/02/25 08:30] – 作成 matsui01_linux:01_net:ipv6無効化 [2014/02/25 08:55] (現在) – [■CentOS6] matsui
行 1: 行 1:
 +====== IPv6無効化 ======
  
 +===== ■CentOS5 =====
 +
 +=== 1.「/etc/modprobe.conf」修正 ===
 +
 +「options ipv6 disable=1」を追加する。
 +
 +<code console>
 +# vi /etc/modprobe.conf
 +
 +options ipv6 disable=1
 +</code>
 +
 +=== 2.ip6tablesが起動する設定になっている場合は、起動しないように設定 ===
 +
 +<code console>
 +# chkconfig ip6tables off
 +</code>
 +
 +=== 3.その後、再起動で反映 ===
 +
 +
 +===== ■CentOS6 =====
 +
 +=== 1.「/etc/modprobe.d/disable-ipv6.conf」を修正 ===
 +
 +「options ipv6 disable=1」を追加
 +<code console>
 +# vi /etc/modprobe.d/disable-ipv6.conf
 +
 +options ipv6 disable=1
 +</code>
 +
 +=== 2.ip6tablesが起動する設定になっている場合は、起動しないように設定 ===
 +
 +<code console>
 +# chkconfig ip6tables off
 +</code>
 +
 +=== 3.その後、再起動で反映 ===
 +
 +
 +===== ■CentOS6(再起動の必要なし) =====
 +
 +=== 1./etc/sysctl.conf に以下を追記 ===
 +<code console>
 +# vi /etc/sysctl.conf
 +
 +net.ipv6.conf.all.disable_ipv6 = 1
 +net.ipv6.conf.default.disable_ipv6 = 1
 +</code>
 +=== 2.下記コマンドで設定反映 ===
 +<code console>
 +# sysctl -p 
 +</code>