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
        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

auto eth0:2
iface eth0:2 inet static

auto eth0:3
iface eth0:3 inet static

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?

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.