So, I had a fresh install of Ubuntu Server 18.04,everything worked fine till I reboot it today. Now there's no network interfaces except the loopback(lo). if I do 'ifconfig -a' I see my other network interfaces. Looked around online and there's posts about using 'Netplan', which is what I had used to give my server a static IP address. the .yaml config is still there and everything.

I can't run 'netplan apply' as it says the command isn't found. Anything else I find is about older version of Ubuntu Server, that I did try(editing /etc/network/interfaces/, doing another .yaml file)

I'm at a loss since nothing else I search for helps me, it ends up being the same things. Does anyone have any suggestions?

  • 1
    Could you please show output of dpkg -l|grep netplan? Also show your netplan yaml? – marosg Oct 19 at 5:18
  • dpkg -l | grep netplan - shows nothing. – Exmix Oct 19 at 5:27
  • In that case (assuming you are 100% sure you are on 18.04) configure a device manually, install netplan and then work with yaml. Sorry, no idea what went wrong on your system, why netplan is not installed. – marosg Oct 19 at 5:30
  • dpkg -l | grep netplan - shows nothing. netplan 50-cloud-init.yaml: pastebin.com/ukUyq8wS netplan 01-netcfg.yaml: pastebin.com/peeTk1JY I did have to put that in manually since I can't copy and paste from that machine. enp4s0 - is the port where my ethernet is plugged into. Sorry didn't get to edit that in time. How do I configure a device manually? It WAS installed, but I have no idea why it dissapeared. – Exmix Oct 19 at 5:35
  • sudo ip address add 192.168.1.60/24 dev enp4s0 ; sudo ip route add default via 192.168.1.254 dev enp4s0 ; and add 1.1.1.1 to your resolver – marosg Oct 19 at 5:40

Your Answer

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Browse other questions tagged or ask your own question.