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 infinityAnd it seems to do the trick.