exsi 複製linux後網卡需要調整

來源:互聯網
上載者:User

標籤:linux exsi 複製 網卡

最近在用exsi來快速部署linux,在操作的過程中發現複製的linux系統網路不正常。

 

原來的機器有兩塊網卡,eth0和eth1,複製以後,複製機器的網路啟動不了,

比如會拋出異常:Bringing up interface eth0: pcnet32 device eth0 does not seepresent, delaying initialization.

 用ifconfig -a 不存在eth0,多了eth2,eth3,進入/etc/sysconfig/network-scripts/ 發現只有eth0,和eth1其中網卡和uuid和模板的配置一樣。

 

通過如下步驟修複:


1.開啟etc/sysconfig/network-scripts/ifcfg-eth0(如果不存在這個檔案,從xxx-eth3重新命名過來),確定ONBOOT應該為yes

2.刪除ficfg-eth0的MAC和uuid選項,重啟網路service network restart。

3,修改/etc/sysconfig/network 裡面的hostname成新的hostname.

4,如果還不可以,那麼刪除或修改/etc/udev/rules.d/70-persistent-net.rules 並reboot系統


exsi 複製linux後網卡需要調整

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.