[pkg-dhcp-devel] Bug#773358: isc-dhcp-client: dhclient ipv4 ipv6 dualstack don't work well together

Andrew King andersking at iinet.net.au
Wed Dec 17 13:01:16 UTC 2014

Package: isc-dhcp-client
Version: 4.3.1-5
Severity: normal

Dear Maintainer,

I have a dual-stack home network, with ip6 & ip4 addresses provided by dhcp from my router.
However, by default I cannot get both interfaces to come up correctly

My /etc/dhcp/dhclient.conf is 

option rfc3442-classless-static-routes code 121 = array of unsigned integer 8;
interface "eth0"
send host-name = gethostname();
#append domain-name-servers;
#append domain-name "fritz.box";
#append domain-search "fritz.box";
#append dhcp6.name-servers 2001:470:xxxxxx; # ip removed
#append dhcp6.domain-search "fritz.box";
supersede domain-name-servers;
supersede domain-name "fritz.box";
supersede domain-search "fritz.box";
supersede dhcp6.name-servers 2001:470:xxxxxx; # ip removed
supersede dhcp6.domain-search "fritz.box";
request subnet-mask, broadcast-address, time-offset, routers,
    domain-name, domain-name-servers, domain-search, host-name,
    dhcp6.name-servers, dhcp6.domain-search,
    netbios-name-servers, netbios-scope, interface-mtu,
    rfc3442-classless-static-routes, ntp-servers;

in /etc/network/interfaces I have (currently)

auto eth0
iface eth0 inet dhcp
iface eth0 inet6 dhcp
    autoconf 1

In the order specified, the v4 and v6 addresses comes up fine, but the ipv6 dhcp overwrites /etc/resolv.conf (ignores the supersede lines)
In the reverse order (ipv6 first) the v6 address comes up fine (apart from resolv.conf), but the v4 fails 
(manually running dhclient -v -4 gives "No broadcast interfaces found - exiting")

The bugs are:
1. dhclient seems to be ignoring the supersede (and/or append) lines (at least for ipv6)
2. dhclient -4 fails when an interface is active with an ipv6 address
3. (my router sends the wrong nameserver for ipv6 - not the subject of this bug though)

For now, I have added a hook in /etc/dhcp/dhclient-exit-hooks.d/ to recreate resolv.conf using the ipv4 nameservers.


-- System Information:
Debian Release: 8.0
  APT prefers unstable
  APT policy: (500, 'unstable')
Architecture: i386 (i686)

Kernel: Linux 3.2.0-3-686-pae (SMP w/4 CPU cores)
Locale: LANG=en_AU.UTF-8, LC_CTYPE=en_AU.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: sysvinit (via /sbin/init)

Versions of packages isc-dhcp-client depends on:
ii  debianutils       4.4+b1
ii  iproute2          3.16.0-2
ii  isc-dhcp-common   4.3.1-5
ii  libc6             2.19-13
ii  libdns-export100  1:9.9.5.dfsg-7
ii  libirs-export91   1:9.9.5.dfsg-7
ii  libisc-export95   1:9.9.5.dfsg-7

isc-dhcp-client recommends no packages.

Versions of packages isc-dhcp-client suggests:
pn  avahi-autoipd  <none>
pn  resolvconf     <none>

-- Configuration Files:
/etc/dhcp/dhclient.conf changed [not included]

-- no debconf information

More information about the pkg-dhcp-devel mailing list