Report this

What is the reason for this report?

No network after ubuntu upgrade to 16.04

Posted on August 11, 2018

Upgraded ubuntu in droplet (do-release-upgrade). Currently it is 16.04 Logged in.

#ping -c3 google.com 
ping: unknown host
sudo service networking status
neworking.service
   Loaded: masked (/dev/null; bad)
   Active: inactive (dead)

Do not know why it was masked but I did unmask. And then again

sudo service networking status
networking.service - LSB: Raise network interfaces.
Loaded: loaded (/etc/init.d/networking: bad; vendor preset: enabled)
Drop-In: /run/systemd/generator/networking.service.d
             50-insserv.conf-$network.conf
Active: active (exited) since Sat 2018-08-11 15:04:02 MSK; 16 min ago
Docs: man:systemd-sysv-generator(8)
Process: 943 ExecStop=/etc/init.d/networking stop (code=exited, status=0/SUCCESS
Process: 946 ExecStart=/etc/init.d/networking start (code=exited, status=0/SUCCESS


cat /etc/network/interfaces

auto lo
iface lo inet loopback

auto ens3
iface ens3 inet static
    address 162.243.XX.XX
    netmask 255.255.255.0
    gateway 162.243.XX.1
    dns-nameservers 8.8.8.8 8.8.4.4


ifconfig - a

ens3  Link encap:Ethernet  HWaddr 00:1b:fc:2d:21:3b  
          BROADCAST MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)


lo        Link encap:Local Loopback  
          inet addr:127.0.0.1  Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:65536  Metric:1
          RX packets:38337 errors:0 dropped:0 overruns:0 frame:0
          TX packets:38337 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1
          RX bytes:3591223 (3.5 MB)  TX bytes:3591223 (3.5 MB)

As I understand, networking service is not working properly. There is nothing in /var/log/syslog or in journalctl -u NetworkManager

I did

sudo ip addr flush dev ens3

sudo service networking restart

But no ip address appear in ens3 interface

Any help appreciated



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!

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.

Were you able to resolve this? I’m getting the same error after upgrading to 18.04

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Get started for free

Sign up and get $200 in credit for your first 60 days with DigitalOcean.*

*This promotional offer applies to new accounts only.