1.VMware Workstation:Edit->Virtual Network Editor->Change Settings->Restore Defaults.
2.Win+x:Windows PowerShell(Admin):
ipconfig
Ethernet adapter VMware Network Adapter VMnet8:
IPv4 Address. . . . . . . . . . . : 192.168.XXX.1
3.VMware Workstation:Ubuntu 20.04:Ctrl+Alt+T
sudo service network-manager restart
4.VMware ubuntu cable unplugged:
On a Windows host stopping and restarting the VMware NAT and VMware DHCP services may do the trick.Put
net stop vmnetdhcp
net stop "vmware nat service"
net start vmnetdhcp
net start "vmware nat service"
into a textfile named "restart-vmware-net-services.cmd" and execute it as admin.