LoginSignup
4
5

More than 5 years have passed since last update.

【Debian 8 Jessie】IPv6を無効化する

Posted at

この記事は、下記の記事を構成している記事のひとつです。
さくらのVPS と Debian 8 Jessie で独自ドメインのWebサイトを立ち上げる手順

・さくらのVPS(プラン512)
・Debian 8 Jessie(さくらのVPS カスタムインストール)
の環境を前提にしています。

IPv6を無効化する設定

[hoge]$
sudo vi /etc/sysctl.conf 

最終行に追記します。

/etc/sysctl.conf
# IPv6を無効化
net.ipv6.conf.all.disable_ipv6 = 1

設定を即時反映する

[hoge]$
sudo sysctl -p
net.ipv6.conf.all.disable_ipv6 = 1

下記のコマンドで確認します。

[hoge]$
sudo ifconfig
4
5
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
4
5