码迷,mamicode.com
首页 > 系统相关 > 详细

VMware 克隆CentOS 后无法启动网卡的解决

时间:2015-04-05 19:03:06      阅读:210      评论:0      收藏:0      [点我收藏+]

标签:generated   address   change   single   modify   

将原有的eth0的那一行注释掉,然后将生成的eth1改为eth0(如果没有这个文件,可以新增这个文件解决)

[root@localhost ~]# cat /etc/udev/rules.d/70-persistent-net.rules 
# This file was automatically generated by the /lib/udev/write_net_rules
# program, run by the persistent-net-generator.rules rules file.
#
# You can modify it, as long as you keep each rule on a single
# line, and change only the value of the NAME= key.

# PCI device 0x8086:0x100f (e1000)
#SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="00:0c:29:8c:61:3e", ATTR{type}=="1", KERNEL=="eth*", NAME="eth0"

# PCI device 0x8086:0x100f (e1000)
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="00:0c:29:3c:e6:09", ATTR{type}=="1", KERNEL=="eth*", NAME="eth0"
[root@localhost ~]#

最后修改网卡的配置文件

[root@localhost ~]# cat /etc/sysconfig/network-scripts/ifcfg-eth0 
DEVICE=eth0
TYPE=Ethernet
UUID=fb802c67-087a-4f50-812b-f3d20053aa4b
ONBOOT=yes
NM_CONTROLLED=yes
BOOTPROTO=none
HWADDR=00:0C:29:3C:E6:09
IPADDR=192.168.100.212

PREFIX=24
GATEWAY=192.168.100.1
DNS1=192.168.100.1
DEFROUTE=yes
IPV4_FAILURE_FATAL=yes
IPV6INIT=no
NAME="System eth0"
[root@localhost ~]#

最后重新启动系统


本文出自 “Sim'blog” 博客,请务必保留此出处http://mitac.blog.51cto.com/1081911/1629060

VMware 克隆CentOS 后无法启动网卡的解决

标签:generated   address   change   single   modify   

原文地址:http://mitac.blog.51cto.com/1081911/1629060

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!