それマグで!

知識はカップより、マグでゆっくり頂きます。 takuya_1stのブログ

習慣に早くから配慮した者は、 おそらく人生の実りも大きい。

ubuntu の ip コマンドで、v6アドレスをdhcp取得する

ubuntu の ip コマンドで、v6アドレスを取得する

v4 と同じ感じに、dhclient を使おうとすると

sudo dhclient -6 -d eth1

リンクローカルアドレス( no link local addr )がないと言われる。

Internet Systems Consortium DHCP Client 4.4.1
Copyright 2004-2018 Internet Systems Consortium.
All rights reserved.
For info, please visit https://www.isc.org/software/dhcp/

no link-local IPv6 address for eth1

If you think you have received this message due to a bug rather
than a configuration issue please read the section on submitting
bugs on either our web page at www.isc.org or in the README file
before submitting a bug.  These pages explain the proper
process and the information we find helpful for debugging.

exiting.

そりゃそーだ、、って無くてもなんとかなるはずなんだけど。やってくれないようです。

いちどリセットしておいて

sudo ip  link set eth1 down   
sudo ip addr flush dev eth1
sudo ip  link set eth1 up

v6 アドレスを取得に行く

sudo ip link set eth1 down
sudo ip link set eth1 up

もしかしたら -6 をつけたほうが良かった?

sudo ip -6 link set eth1 up

うーん、よくわからない。Router探索が走るタイミングはどこのコマンドだ。