複製Linux Centos 後網卡設定IP 問題

Hyper-V與VMWARE內若使用Centos Linux系統,複製機器後,會有以下狀況

發現複製後的新機器網路無法連線。
原本是網卡eth0, 卻變成eth1
原因是因為虛擬系統的網路卡卡號已經改變。解決方法如下…

移除 udev 的網卡設定

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

修改網卡設定,將網卡卡號部分清空

vi /etc/sysconfig/network-scripts/ifcfg-eth0

完成後重新啟動網路服務

service network restart

參考資料

http://blog.xuite.net/haoming/mypoint/75579187

本篇發表於 未分類 並標籤為 。將永久鍊結加入書籤。

發表迴響

您的電子郵件位址並不會被公開。 必要欄位標記為 *

*

您可以使用這些 HTML 標籤與屬性: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>