Ubuntu 18.04 internet connection not working (using VMWare Fusion)
Not sure what happened. Yesterday everything worked, today I booted up my VMware and it seems Ubuntu doesn't have an internet connection at all.
Tried all the different options (besides NAT that I normally use) like Bridged and Host-Only but it didn't help. Tried restarting my network via terminal etc. Under Ubuntu's internet settings it just shows that no Wi-Fi adapter is found.
Not sure what happened overnight, maybe some update that got installed? I did accidentally turn off the host computer before I could correctly shut down Ubuntu's VMware session but I doubt that did anything. Windows 7 that is also running on VMware on the other hand works perfectly.
How to proceed? Thanks!
UPDATE: Followed this https://ubuntuforums.org/showthread.php?t=1400504 and got it working :)
Got it working by browsing through multiple threads.
EDIT : Please check if your network is in bridged mode or not if you are using VMWare/ VirtualBox before following the steps below. Enabling bridge mode and restarting guest OS can resolve the issue.
First check if your network is disabled by using the following cmd in terminal:
sudo lshw -C network
If it shows disabled after the name of your adapter ( note down the logical name for later use)
*-network DISABLED
description: Ethernet interface
product: 82545EM Gigabit Ethernet Controller (Copper)
vendor: Intel Corporation
physical id: 1
bus info: pci@0000:02:01.0
logical name: ens33
All we need to do is enable the adapter, so lets get started.
open up your interfaces file by using the following cmd:
sudo gedit /etc/network/interfaces
My file had the following data written:
auto lo
iface lo loopback
But the logical name of my NIC was ens33 ( not lo), so i changed it to read the following and saved the file.
auto ens33
iface ens33 inet dhcp
Now time to restart the networking service .
sudo /etc/init.d/networking restart
check if network is back up, it shouldn't have that disabled tag anymore.
sudo lshw -C network
Enjoy your internet :)