LoginSignup
3
6

More than 5 years have passed since last update.

Ubuntu Server 16.04 LTS でipv6を無効化したときの作業メモ

Last updated at Posted at 2016-12-03

インストールしてみたらipv6で通信してしまいipv4ではうまく通信できないのかapt-getやssh接続ができなかったときの対応作業のメモ。

対応策

  1. 最初からクリーンインストール時にネットワーク自動設定中にキャンセルを押して、手動設定する。
  2. sudo vi /etc/gai.confで設定ファイルを開き
# precedence ::ffff:0:0/96 100

のコメント解除

sudo vi /etc/sysctl.confで設定ファイルを開き

net.ipv6.conf.all.disable_ipv6 = 1
net.ipv6.conf.default.disable_ipv6 = 1

を追記。

sudo sysctl -p

で反映。

ip a

でinet6がなくなっていればOK

だめなら

sudo reboot

してみる。

3
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
3
6