"dhclient -1" considered harmful

Bug #1274010 reported by Philipp Kern
10
This bug affects 1 person
Affects Status Importance Assigned to Milestone
netcfg (Ubuntu)
New
Undecided
Unassigned

Bug Description

netcfg in Ubuntu diverges from the one in Debian by using dhclient from isc-dhcp-client instead of udhcpc (well, except kfreebsd and hurd). dhclient is run with -1 to acquire a lease once and exit. With short lease times configured on the DHCP server (say, half an hour) and DHCP snooping enabled on switches, the installer will lose network connectivity once the lease expires. "-1" ensures that dhclient does not daemonize and hence it will not continuously renew the lease. I recall some differences in behavior with "-1", though, related to how it handles not getting a lease at all (I think it's forking into the background and continue trying instead of failing and exiting). So this would need some fixing, hopefully through configuration options. As the file is already written out, there should be full flexibility there.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.