#731464 ifupdown with statefull ipv6 (dhcp) breaks radvd

Package:
ifupdown
Source:
ifupdown
Description:
high level tools to configure network interfaces
Submitter:
Holger Sander
Date:
2013-12-06 15:03:07 UTC
Severity:
important
#731464#5
Date:
2013-12-05 17:26:03 UTC
From:
To:
ifupdown with "inet6 dhcp" in /etc/network/interfaces breaks stateless
IPv6-conifg.

/etc/network/interfaces:
auto eth0
iface eth0 inet6 dhcp

auto configures eth0 with a ipv6-address but the networkdevice gets no gateway
from the radvd.

After that I bring the networkdevice down with "ifdown eth0" and then manual
with
ip link set dev eth0 up
or
ifconfig eth0 up
but the networkdevice don't get a gateway and or an ipv6-address (if radvd
advertise a addressprefix)

I have to reboot to solve the problem!

If I disable "iface eth0 inet6 dhcp" in /etc/network/interfaces reboot and do
it by hand:

ip link set dev eth0 up
        now the networkdevice has a gateway!
dhclient -6 eth0

everything ist fine.

#731464#10
Date:
2013-12-06 00:21:25 UTC
From:
To:
/etc/network/interfaces
# statefull
iface eth0 inet6 dhcp

This will set /proc/sys/net/ipv6/conf/eth0/accept_ra to "0"
Now the client don't get a gateway address but dhcpv6 has no
option about router! I think setting the accept_ra to "0" is an error.
----- insert ----- Ok, i find out, that the accept_ra can be set with: iface eth0 inet6 dhcp accept_ra 1 but the default ist "0". I think it is better to use "1" as the default, because we need a gateway to work. ----- end insert ---- Another error: The timeout of the dhclient in ipv6-mode doesn't work. If there is no dhcpv6-server ifup will hang. jessie + wheezy If we use: /etc/network/interfaces: auto eth0 iface eth0 inet dhcp iface eth0 inet6 dhcp Then ifdown will use: ip link set dev eth0 down for the ipv4-configuration an now ifdown fails to bring down eth0 for ipv6. I think we need some testing before we switch the device down.
#731464#15
Date:
2013-12-06 08:02:34 UTC
From:
To:
Hello,

It's not an error; if you want SLAAC + dhcpv6, you need to use auto,
not dhcp.

#731464#20
Date:
2013-12-06 14:58:06 UTC
From:
To:
Hello,

Colin, could you please comment on this?