no DHCPRELEASE sent out by dhclient -r on Linux

Peter Rathlev peter at rathlev.dk
Fri Jul 10 07:35:05 UTC 2015


Hi Marc,

On Wed, 2015-07-08 at 14:03 +0200, Marc Haber wrote:
> When I tell dhclient to explicitly release the current lease (dhclient
> -r), I see the following behavior:
> 
> root at grml ~ # dhclient -v -r eth0
> Killed old client process
<snip>

You need to point out to dhclient where the lease file is with the "-lf"
parameter. It should then release exactly that lease. Since the lease
file could be placed anywhere this is necessary.

You can probably see where the lease file is by looking at the running
dhclient process which should also have the "-lf" parameter:

$ ps ax | fgrep dhclient
19902 ? S 0:00 /sbin/dhclient -d -sf /usr/libexec/nm-dhcp-helper -pf /var/run/dhclient-em1.pid -lf /var/lib/NetworkManager/dhclient-f8232193-9bbb-42fc-93d9-1cc08a5f0964-em1.lease -cf /var/lib/NetworkManager/dhclient-em1.conf em1

Sorry for the long line. :-)

-- 
Peter






More information about the dhcp-users mailing list