1、打开任务管理器->开启VMware相关的所有服务(主要是Nat跟DHCP)
2、sudo dhclient ens33 为网卡分配ip地址
实在不行
查看网络配置vim /etc/network/interfaces 添加网卡配置。
设置动态IP地址
auto ens33
iface ens33 inet dhcp
重启网络/etc/init.d/networking restart
配置静态ip地址
vim /etc/network/interfaces 添加配置
iface eth0 inet static
address 192.168.3.90
gateway 192.168.3.1
netmask 255.255.255.0