The Solution:
我们来打开 /etc/udev/rules.d/70-persistent-net.rules, 会发现一大段类似下面的代码,如果每行的ATTRS{address}值都不一样,这样就说明了以上的问题了,也就是找到了问题出处。先把这些代码删掉,或者用#注释掉
# PCI device 0x10de:0x0450 (forcedeth)
SUBSYSTEM=="net", DRIVERS=="?*",ATTRS{address}=="af:52:de:7d:1d:00", NAME="eth0"
00:02.1 USB Controller: nVidia Corporation MCP65 USB Controller (rev a3)
00:06.0 Ethernet controller: nVidia Corporation MCP65 Ethernet (rev a3)
00:07.0 Audio device: nVidia Corporation MCP65 High Definition Audio (rev a1)
修改/etc/udev/rules.d/70-persistent-net.rules ,例如id是00:06.0就加上下面这一段。
# PCI device 0x10de:0x0450 (forcedeth)
SUBSYSTEM=="net", DRIVERS=="?*", ID=="0000:00:06.0", NAME="eth0"
auto lo
iface lo inet loopback
auto eth0
iface eth0 inet dhcp
pre-up ifconfig eth0 hw ether 00:15:F2:A7:37:42
(根据自己的mac地址代替00:15:F2:A7:37:42)
,restart,这样应该就ok了。
转载自:http://ubuntuforums.org/showthread.php?p=4156690#post4156690
阅读全文...