vmware 安装Centos系统后,解决网卡上网问题
VMware 成功安装后Centos 7装后, 网络默认只存在L0, /etc/sysconfig/network-scripts/ifcfg-lo,解决办法;
1. 关闭虚拟机 打开虚拟机存储的目录,修改vmx配置文件加一条进去 ethernet0.virtualDev = "e1000"
2. 启动虚拟机,root运行cp /etc/sysconfig/network-scripts/ifcfg-lo ifcfg-eth0
3. DHCP配置,vi /etc/sysconfig/network-scripts/ifcfg-eth0,内容如下:
DEVICE=eth0 (无法service network restart 删了这一行)
TYPE=Ethernet
ONBOOT=yes
NM_CONTROLLED=yes
BOOTPROTO=dhcp