故障是由另外电脑拷贝的虚拟机centos6.5 ,在启动的时候选择了复制配置启动
导致,在启动后没有网卡。
用service network restart 提示
弹出界面 eth0: 设备 eth0 似乎不存在, 初始化操作将被延迟。
解决方法:
用dhclient
再用ifconfig
发现已经获得地址咯,但是用
用service network restart 依然提示
弹出界面 eth0: 设备 eth0 似乎不存在, 初始化操作将被延迟。
利用
vi /etc/sysconfig/network-scripts/ifcfg-eth0
修改里面的eth0 为用ifconfig获得网卡
再次用service network restart
会提示mac地址不匹配
再次修改 vi /etc/sysconfig/network-scripts/ifcfg-eth0
里面的mac地址位匹配地址,就可以service network restart咯
reboot后正常