2

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!

  • Has Network Manager respawned when you have a DHCP address? Check: ps aux | grep Network Welcome to Ask Ubuntu. – chili555 Feb 11 at 15:20
  • The NetworkManager is not running. ps aux| grep Network* returns nothing. And even the NetworkManager process is stopped and disabled. – Arun Nalpet Feb 12 at 3:48

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.