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: https://imgur.com/a/cmqGEfE
What should I do to restore connectivity?
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
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
network:
version: 2
renderer: networkd
ethernets:
eth0:
addresses:
- 192.241.x.x//24
gateway4: 192.241.x.y
nameservers:
addresses: [8.8.8.8, 8.8.4.4]
sudo netplan apply
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.