Auto configuration can be disabled temporary for eth1 with:
sudo sysctl -w net.ipv6.conf.eth1.autoconf=0
sudo sysctl -w net.ipv6.conf.eth1.accept_ra=0
or for all interfaces with:
sudo sysctl -w net.ipv6.conf.all.autoconf=0
sudo sysctl -w net.ipv6.conf.all.accept_ra=0
Reenabling works by using 1 instead of 0 in the call.
Disabling it permanently can be done with an entry to /etc/sysctl.conf
.
On Debian Etch (probably on newer too), without setting the accept_ra
, the system will autoconfigure using the Link local adress (fe80..
)
As Gart mentioned below, automatic address configuration and router discovery will be disabled if the host itself is a router and accept_ra
is not 2
, i.e
net.ipv6.conf.<iface|all|default>.forwarding=1
and
net.ipv6.conf.<iface|all|default>.accept_ra=0
or net.ipv6.conf.<iface|all|default>.accept_ra=1
.
where iface
is your interface