Dist upgraded Did a reboot - Lost outbound connectivity

November 4, 2017 120 views
DigitalOcean Ubuntu 16.04

My problem is straightforward. I did a sudo apt dist-upgrade. Nothing came up for me to respond to whatever for me to say I tweaked something wrong

I did a sudo reboot

Now I don't have access to any outbound traffic. I did the dist-upgrade yesterday, 3rd november.

This is frustrating.

1 Answer

Oke, I just found the solution. Maybe this is can help you.

First, the problem is the upgrade makes eth0 changed to a different name, in my case changed to ens3. You can see it using command ifconfig -a.

So, the solution is simple.

  1. The easiest solution, you just need to change the config from eth0 to ens3. In my VPS, the config located in /etc/network/interfaces.d/50-cloud-init.cfg. Generally, the config located in /etc/network/interfaces.
  2. Other solution, you could bring back the ens3 to eth0. You could follow this tutorial. http://www.itzgeek.com/how-tos/mini-howtos/change-default-network-name-ens33-to-old-eth0-on-ubuntu-16-04.html

Last step, just restart the networking sudo systemctl restart networking. And voila!

Have another answer? Share your knowledge.