刚装的系统只有lo的回环接口,网卡没有显示,
先关虚拟机,然后在虚拟机的配置文件*.vxm中的最后一行加入 ethernet0.virtualDev = "e1000" 然后开机重启网卡就行,之后记得到/etc/sysconfig/network-scripts/目录中将网卡信息加上去。
vi ifcfg-ens33
TYPE="Ethernet"
BOOTPROTO="static"
DEFROUTE="yes"
PEERDNS="yes"
PEEROUTES="yes"
IPV4_FAILURE_FATAL="no"
IPV6INIT="yes"
IPV6_AUTOCONF="yes"
IPV6_DEFROUTE="yes"
IPV6_PEERDNS="yes"
IPV6_PEERROUTES="yes"
IPV6_FAILURE_FATAL="no"
NAME="ens33"
ONBOOT="yes" //是否开机自启动
IPADDR=192.168.101.3
NETMASK=255.255.255.0
GATEWAY=192.168.101.1
DNS1=8.8.8.8
restarting network (via systemctl):job for network.service failed because the control process exited with error code,see systemctl status network.service and journalctl -xe for details
【faild】
将网卡文件/etc/sysconfig/network-scripts/ifcfg-网卡文件中的device删掉在重启网卡