debian-ipv6  

Re: defining static IPv6 addresses in /etc/network/interfaces

Friedemann Stoyan
Fri, 06 Mar 2009 06:46:03 -0800

* Tiago Fernandes wrote:
> Hi.
> 
> 
> add to /etc/sysctl.conf
> 
> net.ipv6.conf.all.autoconf = 0
> net.ipv6.conf.all.accept_ra = 0

This will not work. When sysctl runs (/etc/rcS.d/S30procps) the ipv6
kernelmodule is not loaded yet and 'net.ipv6.conf.all.autoconf' doesn't exist.
My solution is:

* load ipv6 manually (add to /etc/modules)
* add in the interface stanza

iface eth0 inet static
   pre-up  sysctl -w net.ipv6.conf.eth0.autoconf=0 > /dev/null || true


Regards
Friedemann


-- 
To UNSUBSCRIBE, email to debian-ipv6-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org