I have my eth0 interface configured with netplan with static IP address. I have applied the changes using 'netplan apply'. The interface gets the static IP address so its fine.
But after a while, the configurations applied using netplan, gets overriden, and the interface will get DHCP IP address instead. Not sure what is over-riding the configuration. When ever this happens, i will have to do a 'netplan apply' to revert it back to static IP address. This is my netplan configuration.
network:
version: 2
renderer: networkd
ethernets:
eth0:
addresses:
- 10.3.20.12/24
gateway4: 10.3.20.1
nameservers:
addresses: [127.0.0.53, 10.3.20.2,10.3.20.3]
Since I have used 'networkd' as my renderer, i have disabled 'NetworkManager' service as well. Even after this my interface configuration gets overwritten with DHCP! Any suggestions appreciated!
ps aux | grep Network
Welcome to Ask Ubuntu.ps aux| grep Network*
returns nothing. And even theNetworkManager
process is stopped and disabled.