Can someone tell me why dhclient is not respecting to only handle the one interface it has been passed?
I've seen this multiple times over the years; never figured it out - it's not related to wpa_applicant, my interfaces are pretty standard (see below)... this is what I see:
root@zincshark:/etc/network# ifup eth1
Internet Systems Consortium DHCP Client 4.2.2
Copyright 2004-2011 Internet Systems Consortium.
All rights reserved.
For info, please visit https://www.isc.org/software/dhcp/
Listening on LPF/wlan0/10:fe:ed:21:c9:ca
Sending on LPF/wlan0/10:fe:ed:21:c9:ca
Listening on LPF/eth1/00:1e:10:1f:00:00
Sending on LPF/eth1/00:1e:10:1f:00:00
Sending on Socket/fallback
DHCPDISCOVER on wlan0 to 255.255.255.255 port 67 interval 8
DHCPDISCOVER on eth1 to 255.255.255.255 port 67 interval 3
DHCPREQUEST on wlan0 to 255.255.255.255 port 67
....
This is the relevant part of my interfaces:
allow-hotplug wlan0
iface wlan0 inet dhcp
wpa-conf /etc/wpa_supplicant/wpa_supplicant_telekom.conf
allow-hotplug eth1
iface eth1 inet dhcp
I noticed that /var/lib/dhcp/dhclient.*.leases
contains bad leases - i.e. the lease file for wlan0 contains leases for eth0, I thought that was a problem so I wrote a cleanup script which I hooked into all /etc/network/if-*.d/
parts - but it did not help.
I debugged a bit - turns out dhclient is only called once; so this is a problem in dhclient - not in the debian networking subsystem...