Red Hat Bugzilla – Bug 1314201
Last modified: 2016-03-03 03:48:12 EST
Description of problem:
`dhclient -v iface1`, after establishing a lease with the dhcp server on iface1, will continue to log failed DCHPDISCOVER etc. messages involving other interfaces if they have a previous lease in `/var/lib`.
This is probably an upstream issue but I thought I'd start here. It is not all that significant, except that 1) It contradicts the man page, which says that "in case the DHCP server is unavailable when dhclient is first invoked [...] old leases from the dhclient.leases file which have not yet expired are tested", 2) It becomes irritating when you want to use the other interface for something and realize that dhclient may be (trying) to use it for some other purpose (which may or may not impact whatever else you are trying to do).
Note that I do not use NetworkManager or normal autoconfigured networking; my `/etc/sysconfig/network-scripts` contains only one file, `ifcfg-lo`. I just start inet connections manually since it is only a matter of one or two commands. However, I think this is irrelevant to the issue.
Version-Release number of selected component (if applicable):
Always. The only way to prevent this is to either remove the old leases from `/var/lib` or use `-cf` with a conf file which mentions only one interface.
Dhclient establishes a lease with the interface specified on the command line then endlessly leaves syslog messages about retrying old leases on inactive interfaces, and continues to do so when those interfaces are activated for other purposes.
Dhclient should acquire a lease on the interface specified on the command line and then go to the background to maintain it, nothing else.
*** This bug has been marked as a duplicate of bug 1314203 ***