No network after 18.04 upgrade

Posted October 31, 2018 15k views
NetworkingUbuntu 18.04

I upgraded a droplet to 18.04 today (via do-release-upgrade) and now it doesn’t have any networking. I can’t SSH into it. When I log into the web console, I can log in but the droplet can’t ping out to any IP on the internet.

The kernel I’m using is DigitalOcean GrubLoader v0.2 (20160714)

The outputs of the various commands are in this screenshot:

What should I do to restore connectivity?

1 comment
  • My output for cat /etc/network/interfaces:

    root@ubuntu-s-1vcpu-1gb-fra1-01:~# cat /etc/network/interfaces
    # This file describes the network interfaces available on your system
    # and how to activate them. For more information, see interfaces(5).
    # The loopback network interface
    auto lo
    iface lo inet loopback
    source /etc/network/interfaces.d/*

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Submit an Answer
2 answers

Here’s what I did to restore connectivity:
sudo ip link set eth0 up
sudo systemctl restart systemd-networkd
sudo ip addr add 192.241.x.x/24 dev eth0 [masking my ip address with x.x here]]
sudo ip route add 0/0 via 192.241.x.y [where 192.241.x.y is the ip address of the gateway, as mentioned in /etc/network/interfaces]

The problem is that these are manual changes that will not persist when the server reboots. I’m still trying to figure out what to do to make it persist. Any ideas?

use netplan now by adding a yaml config like the steps below.

sudo vim /etc/netplan/interfaces.yaml

  version: 2
  renderer: networkd
        - 192.241.x.x//24
      gateway4: 192.241.x.y
          addresses: [,]

sudo netplan apply

static ip in ubuntu 18.04