Help us understand the problem. What is going on with this article?

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

More than 1 year has passed since last update.

インストールしてみたら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

してみる。

Why not register and get more from Qiita?
  1. We will deliver articles that match you
    By following users and tags, you can catch up information on technical fields that you are interested in as a whole
  2. you can read useful information later efficiently
    By "stocking" the articles you like, you can search right away
Comments
No comments
Sign up for free and join this conversation.
If you already have a Qiita account
Why do not you register as a user and use Qiita more conveniently?
You need to log in to use this function. Qiita can be used more conveniently after logging in.
You seem to be reading articles frequently this month. Qiita can be used more conveniently after logging in.
  1. We will deliver articles that match you
    By following users and tags, you can catch up information on technical fields that you are interested in as a whole
  2. you can read useful information later efficiently
    By "stocking" the articles you like, you can search right away
ユーザーは見つかりませんでした