問題:用VMware克隆CentOS 6.4後,發現系統內只有eth1,並且/etc/sysconfig/network-scripts/下只有,ifcfg-eth0文件,雖然能夠上網,但沒法設置靜態IP。linux
ifconfig eth0ide
eth1: error fetching interface information: Device not foundfetch
解決:vi /etc/udev/rules.d/70-persistent-net.rules 顯示爲:spa
2條記錄,刪除第一條記錄,修改第二條記錄:以下
orm
# PCI device 0x8086:0x100f (e1000)ip
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="00:0c:29:48:85:9c", ATTR{type}=="1", KERNEL=="eth*", NAME="eth1" get
將 NAME="eth1" 改爲NAME="eth0"it
並將 ATTR{address}=="00:0c:29:48:85:9c",中的網卡地址改到io
/etc/sysconfig/network-scripts/ifcfg-eth0 文件中,HWADDR="00:0C:29:48:85:9C",使他們對應。form
而後reboot