Re: defining static IPv6 addresses in /etc/network/interfaces
>> iface eth0 inet static
>> pre-up sysctl -w net.ipv6.conf.eth0.autoconf=0 > /dev/null || true
> Whether it all works as expected will be seen after the next reboot.
Unless something has changed in recent kernels, it won't. There's no
conf/eth0 knob before the interface is up.
You'll need to arrange to run
sysctl -w net.ipv6.conf.eth0.autoconf=0
ip -6 addr flush dev eth0 to 2000::/3
after the interface is upped, but before it is configured. On nodes that
do VLANs, it's even worse, you need to do something like
ip -6 addr flush dev eth0
ip -6 addr flush dev eth0.0 to 2000::/3
ip -6 addr flush dev eth0.1 to 2000::/3
Juliusz
Reply to: