天天看點

RHEL Linux 6虛拟機克隆導緻的網卡問題解決方法:

Bringing up interface eth0: Device eth0 does not seem to be present, delaying initialization.   [FAILED]

[root@Oracle ~]# 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.

# net device () (custom name provided by external tool)

SUBSYSTEM==”net”, ACTION==”add”, DRIVERS==”?*”, ATTR{address}==”08:00:27:16:31:11″, ATTR{type}==”1″, KERNEL==”eth*”, NAME=”eth0″

# net device ()

SUBSYSTEM==”net”, ACTION==”add”, DRIVERS==”?*”, ATTR{address}==”08:00:27:32:66:63″, ATTR{type}==”1″, KERNEL==”eth*”, NAME=”eth1″

[root@Oracle ~]#

原來UDEV這裡把克隆前的MAC當成了目前虛拟機的eth0 MAC,而重新生成的08:00:27:32:66:63是eth1的MAC。

解決這個問題,隻要删除舊的UDEV配置,修改為:

SUBSYSTEM==”net”, ACTION==”add”, DRIVERS==”?*”, ATTR{address}==”08:00:27:32:66:63″, ATTR{type}==”1″, KERNEL==”eth*”, NAME=”eth0″

http://www.ha97.com/4046.html

====================================================

使用kudzu指令檢視網卡型号

kudzu --probe --class=network

繼續閱讀