vmware Ubuntu 202.04.2 LTS : connect: Network is unreachable
ping baidu.com:
Temporary failure in name resolution
ping 8.8.8.8
Network is unreachable
解决方法:
https://askubuntu.com/questions/1267043/virtual-machine-ubuntu-20-04-lts-connect-network-is-unreachable
I had the same problem after moving my ubuntu vm to a different host. The following steps worked for me, the reloading of the kernel modules might not be required, cannot reproduce as it is working now. I guess the network-manager is broken.
- unload /reload the kernel modules
- list the network adapters to get the name of the device (in my case it was „ens33“)
- get an ip for the device
- do an apt-get update / upgrade
- reinstall network-manager
sudo rmmod e1000 sudo rmmod e1000e sudo rmmod igb sudo modprobe e1000 sudo modprobe e1000e sudo modprobe igb sudo dhclient ens33 sudo apt-get update && sudo apt-get upgrade sudo apt-get purge network-manager sudo apt-get install network-manager