虚拟机在NAT模式下没有网络
1.检查网卡是否启动
ifconfig -a

2.检查网络配置文件
vim /etc/network/interfaces
3.修改配置为DHCP
auto eth0
iface eth0 inet dhcp

4.重启网络服务
systemctl restart networking
虚拟机在NAT模式下没有网络
1.检查网卡是否启动
ifconfig -a
2.检查网络配置文件
vim /etc/network/interfaces
3.修改配置为DHCP
auto eth0
iface eth0 inet dhcp
4.重启网络服务
systemctl restart networking