Device eth0 does not seem to be present, delaying initialization

来源:互联网 发布:炸鸡叔 绝命毒师 知乎 编辑:程序博客网 时间:2024/05/16 17:21

# cat /proc/net/dev
 Inter-|   Receive                                                |  Transmit
 face |bytes    packets errs drop fifo frame compressed multicast|bytes    packets errs drop fifo colls carrier compressed
    lo:       0        0    0    0    0     0          0         0        0        0    0    0    0     0       0          0
  eth1:     0        0    0    0    0     0          0         0        0        0    0    0    0     0       0          0


這裡可以發現網卡代號已經變成 eth1 

2) 編輯 /etc/udev/rules.d/70-persistent-net.rules


# vi /etc/udev/rules.d/70-persistent-net.rules
# PCI device 0x8086:0x100e (e1000)
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="08:00:27:64:f9:37", ATTR{type}=="1", KERNEL=="eth*", NAME="eth0"

# PCI device 0x8086:0x100e (e1000)
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="08:00:27:64:f9:39", ATTR{type}=="1", KERNEL=="eth*", NAME="eth1"

可以將 eth1 修改為 eth0重新開機

 

来自:http://blog.yam.com/gavint/article/66227531

 

原创粉丝点击