CentOS網路啟動錯誤

來源:互聯網
上載者:User

標籤:linux   營運   

我所使用 的是centos虛擬機器,在那個環境下有dhcp服務,本來用的好好的,可是突然出現了如下錯誤:錯誤:determining IP information for eth0 ... failed; no link present . Check cable?開始還以為是網線掉了,結果好的。後來去網上百度,google了一下,結果出現的都是
Getting a DHCP Address in a Red Hat Linux 9.0 Virtual MachineWhen a Red Hat Linux 9.0 guest operating system tries to get a DHCP address, the attempt may fail with an error message that states the link is down. On ESX Server, this happens only if you are using the vlance driver for your network connection.To work around this problem, become root (su -) and use a text editor to edit the following files in the guest operating system. If only one of these files exist, make the change for that file only./etc/sysconfig/network-scripts/ifcfg-eth[n]/etc/sysconfig/networking/devices/ifcfg-eth[n]In both cases, [n] is the number of the Ethernet adapter — for example, eth0.Add the following section to each of these two files:check_link_down () {return 1;}Then run the command ifup eth[n] (where [n] is the number of the Ethernet adapter) or restart the guest operating system.


結果我試了一下還是不行,就是出錯改變了變成了如下錯誤determining IP information for eth0 ... failed; 
後來想了一下修改ifcfg-eth0,把原來的dhcp改為static,整個配置改成靜態,然後再重啟網路,就發現可以了。

相關文章

聯繫我們

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