0

For some reason I won't get an IPv6 address when rebooting my Debian 8 System, while I get one when restarting the networking service. The DHCPv6 server is up and running (and is answering when using dhclient or restarting the networking service).

/etc/network/interfaces:

auto lo
iface lo inet loopback
iface lo inet6 loopback

allow-hotplug eth0
iface eth0 inet6 dhcp
iface eth0 inet dhcp

What do I have to configure to get an address when booting?

CalibeR.50
  • 113
  • 1
  • 6
  • 1
    Is there anything in the logs? Does the IPv6 DHCP client process actually start? – Zoredache Feb 01 '17 at 18:58
  • @Zoredache can you give me a hint where to look? – CalibeR.50 Feb 01 '17 at 20:12
  • 1
    I would start looking in the `/var/log/syslog` I believe the dhcp client normally logs there. – Zoredache Feb 01 '17 at 20:22
  • @Zoredache http://pastebin.com/BbxqubGX is what I get with "cat /var/log/syslog | grep dhclient" after a reboot, http://pastebin.com/EbpAMSKG is the result of a "service networking restart". As explained in the question, the ipv6 was only assigned after restarting the networking service again. It's a fresh install. DHCP Server logs: after reboot http://pastebin.com/FimTugYs, after networking restart http://pastebin.com/Jr6tLUWW – CalibeR.50 Feb 01 '17 at 22:27
  • 1
    I am not seeing the IPv6 assignment in your DHCP logs. Just out of curiosity, are you sure you are getting DHCP at all, and not just using a stateless address? – Zoredache Feb 01 '17 at 22:42

1 Answers1

1

There is apparently a bit of a timing bug present. I believe I have replicated your problem in a VM and fixed it by adjusting the config.

allow-hotplug eth0
iface eth0 inet6 dhcp
    pre-up sleep 3
iface eth0 inet dhcp

Ref Links

Zoredache
  • 130,897
  • 41
  • 276
  • 420