解决VMware 克隆CentOS 后无法启动网卡的问题
时间:2015-05-19 01:45 来源:linux.it.net.cn 作者:IT
(1)确保udev-post 启动
# chkconfig --list udev-post
udev-post 0:关闭1:启用2:启用3:启用4:启用5:启用6:关闭
# /etc/init.d/udev-post start
(2)把网卡配置全删除(删除70-persistent-net.rules文件),重启让系统重新分配
# cd /etc/udev/rules.d
[root@xjuCentOS rules.d]# rm -rf 70-persistent-net.rules
[root@xjuCentOS rules.d]# cd /etc/sysconfig/network-scripts
[root@xjuCentOS network-scripts]# rm -rf ifcfg-eth*
[root@xjuCentOS network-scripts]# cat ifcfg-eth0
TYPE=Ethernet
BOOTPROTO=none
IPADDR=10.238.208.10
PREFIX=25
GATEWAY=10.238.208.1
DEFROUTE=yes
IPV4_FAILURE_FATAL=yes
IPV6INIT=no
NAME=eth0
UUID=9573a563-bfb5-478a-8e03-04dbba7c098e
ONBOOT=yes
LAST_CONNECT=1431947250
(责任编辑:IT)
(1)确保udev-post 启动 # chkconfig --list udev-post udev-post 0:关闭1:启用2:启用3:启用4:启用5:启用6:关闭 # /etc/init.d/udev-post start (2)把网卡配置全删除(删除70-persistent-net.rules文件),重启让系统重新分配 # cd /etc/udev/rules.d [root@xjuCentOS rules.d]# rm -rf 70-persistent-net.rules [root@xjuCentOS rules.d]# cd /etc/sysconfig/network-scripts [root@xjuCentOS network-scripts]# rm -rf ifcfg-eth* [root@xjuCentOS network-scripts]# cat ifcfg-eth0 TYPE=Ethernet BOOTPROTO=none IPADDR=10.238.208.10 PREFIX=25 GATEWAY=10.238.208.1 DEFROUTE=yes IPV4_FAILURE_FATAL=yes IPV6INIT=no NAME=eth0 UUID=9573a563-bfb5-478a-8e03-04dbba7c098e ONBOOT=yes LAST_CONNECT=1431947250 (责任编辑:IT) |