Issue in dhclient -x option
Rathnakar, Dilip
dilip.rathnakar at hp.com
Mon May 13 10:15:20 UTC 2024
Hi,
As per dhclient (isc-dhclient-4.4.1) man-page, the "dhclient -x" option should do the following:
"Stop the running DHCP client without releasing the current lease. Kills existing dhclient process as previously recorded in the PID file. When shutdown via this method dhclient-script will be executed with the specific reason for calling the script set."
However, this is not working as expected. It is sending a DHCP release packet during exit.
Steps to reproduce the behaviour:
1. Start dhclient using: "dhclient -d -q -cf /var/db/dhclient-eth0.conf -lf /var/db/dhclient-eth0.leases -pf /var/db/dhclient-eth0.pid eth0"
2. Ensure dhclient process is running and IP address is acquired.
3. Stop dhclient using: "dhclient -x -pf /var/db/dhclient-eth0.pid -lf /var/db/dhclient-eth0.leases eth0"
4. Observe release packet in wireshark.
**Expected behavior**
Should stop running of DHCP client without releasing the current lease. (No Release packet should be sent)
**Actual behavior***
Release packet sent.
**Environment:**
- ISC DHCP version: isc-dhclient-4.4.1
- OS: Ubuntu 16.04
Is this a known issue or is there a workaround for this?
Any inputs would be appreciated.
Thanks,
Dilip
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.isc.org/pipermail/dhcp-users/attachments/20240513/06c0eabb/attachment.htm>
More information about the dhcp-users
mailing list