Ubuntu主機更換主板後,主板整合網口無法上網解決

來源:互聯網
上載者:User

Ubuntu主機更換主板後,主板整合網口無法上網解決 ubuntuUbuntu主板網口網路Ubuntu主機更換主板後,主板整合網口無法上網。查詢網路資訊報錯:ifconfig eth0 eth0: 擷取介面資訊時發生錯誤: Device not foundifconfig eth1eth1: 擷取介面資訊時發生錯誤: Device not found 開啟/etc/udev/rules.d/70-persistent-net.rules 可以發現有新的網卡配置項,例如eth2、eth3(根據原最大eth號遞增)。雙網口時,也有可能同是兩個eth2,但MAC不同。 解決方案:sudo nano /etc/udev/rules.d/70-persistent-net.rules 注釋或刪除原來的eth0和eth1的配置行,將新網卡配置項eth2、eth3或者雙eth2分別改成eth0、eth1。重啟主機即可。 或者:sudo /etc/init.d/networking restart修改interfaces配置bonding後,以上重啟語句從未成功。 又或者試試?: sudo /etc/init.d/network-interface restartsudo /etc/init.d/network-interface-security restartsudo /etc/init.d/network-manager restart 注意:本文情境是更換主板後,不重裝Ubuntu系統。 通常MAC地址較小的,eth號也較小。編輯70-persistent-net.rules時需要注意。以上為雙網口主板,單網口主板只需注釋或刪除eth0後,將eth1改成eth0即可。更換獨立網卡時,應該同理。 

聯繫我們

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