Bug 143704
Summary: | DHclient -r doesn't release IP address as it should | ||
---|---|---|---|
Product: | [Fedora] Fedora | Reporter: | Gael <gaellian> |
Component: | dhcp | Assignee: | Jason Vas Dias <jvdias> |
Status: | CLOSED ERRATA | QA Contact: | |
Severity: | medium | Docs Contact: | |
Priority: | medium | ||
Version: | 3 | CC: | sundaram |
Target Milestone: | --- | ||
Target Release: | --- | ||
Hardware: | i386 | ||
OS: | Linux | ||
Whiteboard: | |||
Fixed In Version: | 3.0.1-16 | Doc Type: | Bug Fix |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2005-09-05 08:31:06 UTC | Type: | --- |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: | |||
Bug Depends On: | |||
Bug Blocks: | 170780 |
Description
Gael
2004-12-24 15:08:11 UTC
The dhclient '-r' release lease option seems to work only if the dhclient process that got the lease being released is not running, or is run outside of the /sbin/ifup network scripts - ie. doing: # ifdown eth0 # ifconfig eth0 up # dhclient eth0 # dhclient -r eth0 works fine for me. But if you do: # ifup eth0 # dhclient -r eth0 This will not work; the dhclient process started by 'ifup' is still around because the 'dhclient -r' process cannot find its pid file, which is /var/run/dhclient-eth0.pid, and will reacquire the lease when it expires. You can get around this by doing: # dhclient -pf /var/run/dhclient-eth0.pid -r but this is a pain. I've now made a dhcp-3.0.1-16 rpm where in release mode, dhclient will look for the pid file for each requested interface and kill the dhclient process for that interface if found. I will get it issued via FC3 updates; meanwhile, you can download it from: http://people.redhat.com/~jvdias/dhcp/FC3/ with dhcp-3.0.1-16, doing a 'dhclient -r eth0' will have the same effect as 'ifdown eth0' in killing the dhclient instance for eth0. |