10
12

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

CentOS7でIPv6を完全に無効化する方法。

Last updated at Posted at 2018-07-27

#よく忘れるのでメモ
1.設定ファイル作成

# vi /etc/sysctl.d/disable_ipv6.conf

2.以下の内容を記載します。

/etc/sysctl.d/disable_ipv6.conf
net.ipv6.conf.all.disable_ipv6 = 1
net.ipv6.conf.default.disable_ipv6 = 1

3.以下のコマンドで設定を反映させます。

# sysctl -p/etc/sysctl.d/disable_ipv6.conf
net.ipv6.conf.all.disable_ipv6 = 1
net.ipv6.conf.default.disable_ipv6 = 1

4.無効化の確認

# ip addr

5.OKならOSを再起動してみて確認。

# reboot

以上

10
12
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
10
12

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?