i have set up /etc/network/interfaces because i need some static adresses on single interface. This causes to use dhclient instead of dhcpcd wich works fine. Now i have the problem that when i boot the pi wpa_supplicant connects to the wifi and tells dhclient to get a new lease and thats fine. But when the connection drops dhclient doesent release the dhcp lease and leaves the ip assosiated. When the wifi then reconnects it doesent work because of the wrong ip. Basicly it doesent release the lease on drop and doesent renew it on reconnect.
source-directory /etc/network/interfaces.d # auto usb0 allow-hotplug usb0 iface usb0 inet dhcp auto wlan0 # allow-hotplug wlan0 iface wlan0 inet static address 22.214.171.124 netmask 255.255.255.0 wireless-power off # auto wlan1 allow-hotplug wlan1 iface wlan1 inet dhcp wpa-conf /etc/wpa_supplicant/wpa_supplicant.conf auto eth0:1 iface eth0:1 inet static address 10.0.0.254 netmask 255.255.255.0 auto eth0:2 iface eth0:2 inet static address 126.96.36.199 netmask 255.255.255.0 auto eth0:3 iface eth0:3 inet static address 192.168.0.254 netmask 255.255.255.0
What basicly should happen is that the interfaces deconfigures after a connection loss and reconfigures with new dhcp lease after reconnect. How can i fix this?