Linux無法啟用網卡:Device eth0 has different MAC address than expec

來源:互聯網
上載者:User

Linux無法啟用網卡:Device eth0 has different MAC address than expected,ignoring解決 遇到這樣一個錯誤: 在linux上面, 無法成功啟動網卡,當我們Activate一個網卡的時候, 提示下面的錯誤. Cannot activate network device eth0! Device eth0 has different MAC address than expected, ignoring 問題原因:設定檔裡面的網卡MAC地址與, 實際的網卡地址不符.可以對比一下ifconfig結果中的mac地址和下面設定檔中的mac地址./etc/sysconfig/network-scripts/ifcfg-eth0(注: 設定檔有可能不叫這個名字, 也有可能是ifcfg-***之類, 比如對於我的系統, 我修改的叫ifcfg-eth0.bat) 解決辦法:vi /etc/sysconfig/network-scripts/ifcfg-eth0編輯mac地址.我是在虛擬機器上面出的問題,我將設定檔中的mac地址修改成ifconfig結果中的mac地址., 問題解決, 網卡可以從新啟動.[ Network Configuration=>Edit=>Ethernet Device=>Bind to MAC address]中顯示的MAC地址,也變成了正確的MAC地址.

聯繫我們

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