I have Ubuntu 24.04 and a local network. I try to configure in the Network settings a wired connection with manual IPv4 mode, static IP address, I apply it and it works, but after a while it is still trying to get an address through DHCP. I reopen the network dialog and it came back to Automatic (DHCP), though my static address still works. Restarting didn't change anything. It's like "Apply" is not saving my settings.
After many tries to reconnect through DHCP, it gives up and disables the connection, rendering the static IP unusable.
I tried also creating a configuration file in /etc/netplan/ or editing /etc/netplan/01-network-manager-all.yaml, but to no avail, same behavior.
Try this:
Find out how your ethernet card is identified
Running:
Suppose it is enp0s2
Now configure the 00-installer-config.yaml file
Run:
It will have content similar to this
Modify the contents of the file, using your own parameters, so that it looks similar to the following, use your own values, not the ones in the example.
Ctrl + O, save the file
Ctrl + X, close nano
To apply the changes run