I have attempted setting up a static IP for a server, under Ubuntu 18.04. I thought I had it working, but after restarting I found that my ethernet interface eno1 has been disabled. After re-enabling with sudo ifconfig eno1 up, it fails to get a IPv4 ip address.

I setup the static ip using the new netplan system (config below), and had it working with this configuration, but I no longer see netplan installed (sudo netplan apply yields netplan: command not found).

To summarize, two issues:

  • the interface was disabled and no longer gets IPv4
  • netplan is no longer installed?

Contents of /etc/netplan/01-netcfg.yaml:

  version: 2
  renderer: networkd
      dhcp4: no
      addresses: []
        addresses: []

I know it is probably not a network issue as I am able to use other computers (albiet via dhcp) just fine.


It seems that netplan has been uninstalled for some reason.

Run these commands to re-install netplan:

sudo apt update
sudo apt install netplan.io

Reboot the machine. After that your configuration in /etc/netplan/01-netcfg.yaml should be processed.

Your Answer

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

Not the answer you're looking for? Browse other questions tagged or ask your own question.