LoginSignup
2
6

More than 5 years have passed since last update.

[CentOS7] ipv6 address の無効化

Last updated at Posted at 2017-05-19

CentOSでのipv6 addressの無効化の方法を記します。

ipv6 無効化

① sysctl.conf に設定を追加

# echo "net.ipv6.conf.all.disable_ipv6 = 1" >> /etc/sysctl.conf
# echo "net.ipv6.conf.default.disable_ipv6 = 1" >> /etc/sysctl.conf

② 設定を反映する

# sysctl -p

これで ipv6 address が無効になります。
ip aをすれば ipv6 address が消えているのが確認できると思います。

参考

2
6
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
2
6