centos在virtualbox複製後網卡重啟報錯

來源:互聯網
上載者:User

標籤:network   網卡   service   

在virtualbox複製出來的centos啟動後ifconfig沒有看到eth0.接著重啟網卡報錯:

service network restart
Shutting down loopback insterface:                                                                                                     [  OK  ]
Bringing up loopback insterface:                                                                                                          [  OK  ]
Bringing up interface eth0:  Device eth0 does not seem to be present,delaying initialization.                    [FAILED]


因為複製之前配置了兩個網卡,啟動了兩個centos分別把/etc/udev/rules.d/70-persistent-net.rules對比發現,複製後的centos裡的增加了2個網卡,分別是網卡eth2,eth3.然後上網查了下資料發現是因為複製之後mac地址重新分配,所以把eth2,eth3的mac地址複製到eth0,eth1,然後eth3,eth4.


重啟後發現ifconfig還是沒有網卡,service network restart還是失敗。這時用setup命令,對eth0,eth1進行設定。然後重啟網卡服務,那麼ok了。


本文出自 “7321304” 部落格,轉載請與作者聯絡!

centos在virtualbox複製後網卡重啟報錯

相關文章

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在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.