[Bug 1503680] Re: dhclient for eth0 does never exit and retries dhcp foerever

Cameron Nicholson 1503680 at bugs.launchpad.net
Thu Mar 24 02:17:13 UTC 2016


I can confirm this behavior on my systems.

from syslog (identifying information removed):
Mar 23 19:10:41 HOSTNAME dhclient: DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 3 (xid=0x3e38a8c2)
Mar 23 19:10:44 HOSTNAME dhclient: DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 8 (xid=0x3e38a8c2)
Mar 23 19:10:52 HOSTNAME dhclient: DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 20 (xid=0x3e38a8c2)
Mar 23 19:11:12 HOSTNAME dhclient: DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 8 (xid=0x3e38a8c2)
Mar 23 19:11:20 HOSTNAME dhclient: DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 13 (xid=0x3e38a8c2)
Mar 23 19:11:33 HOSTNAME dhclient: DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 9 (xid=0x3e38a8c2)
Mar 23 19:11:42 HOSTNAME dhclient: No DHCPOFFERS received.
Mar 23 19:11:42 HOSTNAME dhclient: No working leases in persistent database - sleeping.
Mar 23 19:13:12 HOSTNAME dhclient: DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 3 (xid=0x49984e3f)
Mar 23 19:13:15 HOSTNAME dhclient: DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 5 (xid=0x49984e3f)
Mar 23 19:13:20 HOSTNAME dhclient: DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 10 (xid=0x49984e3f)
Mar 23 19:13:30 HOSTNAME dhclient: DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 11 (xid=0x49984e3f)
Mar 23 19:13:41 HOSTNAME dhclient: DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 17 (xid=0x49984e3f)
Mar 23 19:13:58 HOSTNAME dhclient: DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 10 (xid=0x49984e3f)
Mar 23 19:14:08 HOSTNAME dhclient: DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 5 (xid=0x49984e3f)
Mar 23 19:14:13 HOSTNAME dhclient: No DHCPOFFERS received.
Mar 23 19:14:13 HOSTNAME dhclient: No working leases in persistent database - sleeping.

This repeats forever.

dhclient was launched by a script thusly: /sbin/dhclient -1 -nw eth0_20

/etc/dhcp/dhclient.conf:
option rfc3442-classless-static-routes code 121 = array of unsigned integer 8;

send host-name = gethostname();
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,
	dhcp6.fqdn, dhcp6.sntp-servers;
timeout 60;
retry 60;
initial-interval 3;

package isc-dhcp-client version 4.2.4-7ubuntu8


Is this fixed in the newer versions?

-- 
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to isc-dhcp in Ubuntu.
https://bugs.launchpad.net/bugs/1503680

Title:
  dhclient for eth0 does never exit and retries dhcp foerever

Status in Snappy:
  New
Status in isc-dhcp package in Ubuntu:
  Confirmed

Bug description:
  When booting snappy without eth0 connected, dhclient runs forever
  trying to retrieve DHCP every 5 minutes.

  dhclient is run with the -1 parameter which is supposed to try only
  once and exit after trying.

         -1     Try  to  get  a  lease  once.   On failure exit with code 2.  In
                DHCPv6 this sets the maximum duration of the initial exchange to
                timeout (from dhclient.conf(5) with a default of sixty seconds).

  Though dhclient keeps running / does not exit.

  If dhclient is changed to exit after failure, it must be insured that
  it will be restarted when the network interface gets a physical link.

To manage notifications about this bug go to:
https://bugs.launchpad.net/snappy/+bug/1503680/+subscriptions



More information about the foundations-bugs mailing list