Uncategorized

Ubuntu: Lost Networking After Upgrade

My networking just dissapeared after upgrade, luckily I’m running a remote server using Vmware and I was able to access the command line from the hypervisor console.

My network interface name completely changed, from eth0 to ens160.

To try to get network connection (and internet) as the server was completely insolated from the outside world I did the following:

first see the new interfaces running:

ifconfig -a

then make sure your /etc/network/interfaces file is configured, as in my case if was wiped off. If it is empty re-create it using the standard nomenclature (but include your new interface name (instead of the eth0).

# The loopback network interface
auto lo
iface lo inet loopback

# The primary network interface
auto ens160
iface ens160 inet dhcp

then

dhclient ens160

After this just ping something to see if you have connection. I usually ping google.

ping 8.8.8.8

This gives me network connectivity, but upon reboot it does not work again.

Leave a Reply

Your email address will not be published. Required fields are marked *