2013年3月14日 星期四

使用vmware standalone convert轉換後,拿不到網路ip

經過一番trace之後,發現原本的,eth0 不見了,只存在eth1

所以查了一下,主要來至於兩個問題

1.原本的機器是使用固定ip,所以在/etc/sysconfig/network-scripts/ifcfg-eth0 裡面寫的mac address是錯的,是原本server上的mac address

理論上應該改過後,重起network 即可

2.但後來做了多次的新增刪除網卡後,發現eth0 都回不來了

發現原因在於,舊的網卡資訊還是存在在下列的檔案,只要把錯的部份刪除掉,在重新reboot,一切及恢復正常

 

##/etc/udev/rules.d/70-persistent-net.rules

# line, and change only the value of the NAME= key.

# PCI device 0x1022:0x2000 (pcnet32)
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="00:0c:29:00:00:1e", ATTR{type}=="1", KERNEL=="eth*", NAME="eth0"

# PCI device 0x1022:0x2000 (pcnet32)
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="00:0c:29:00:00:90", ATTR{type}=="1", KERNEL=="eth*", NAME="eth1"

# PCI device 0x1022:0x2000 (pcnet32) (custom name provided by external tool)
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="00:0c:29:00:00:90", ATTR{type}=="1", KERNEL=="eth*", NAME="eth0"

沒有留言:

How to restore a deleted onenote page

復原不小心誤刪的onenote