Disable IPv6 autoconfiguration at startup
Par Emmanuel Lacour le lundi, août 23 2010, 14:51 - Lien permanent
On a LAN with IPv6 autoconfiguration enabled (using a radvd service for example), it is often needed to set static addresses for servers and so deactivate IPv6 autoconf on them.
With Debian 5.0 at least, it should be as easy as adding:
pre-up sysctl -w net.ipv6.conf.eth0.autoconf=0
in /etc/network/interfaces. But it doesn't works, because unless you set up some IPv6 adresses before in the init process, the ipv6 module is not loaded and so net.ipv6 doesn't exist. To fix this, just explicitely add ipv6 in /etc/modules...
Same things happens if you wan't to disable RA with net.ipv6.conf.IFACE.accept_ra=0