Prevent networkmanager to disable an interface if dhcp timeout when mixed dhcp and fixe ip configuration

I need to find a way for a computer to have both a fixed ip address AND have be a dhcp client on the same interface. So far it works great, I am using Debian 11 and NetworkManager.

The problem, is that if the dhcp is not available, after a timeout, as the dhcp didn't send an ip to use, then networkmanager is disabling the interface, as well as the fixed ip.

Is there a way to prevent it ? let networkmanager ask for dhcp indefinitely, or at least make it not disabling the interface as there is a fixed ip set.

Thanks.

1 Answer

I used this command :

nmcli connection modify conname ipv4.dhcp-timeout infinity

And it seems to do the trick.

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

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

You Might Also Like