2012年5月13日 星期日

CentOS 6.2 抓不到網路的問題 (CentOS 6.2 eth0 does not work after booting)

CentOS 6.2 抓不到網路的問題。

最近新安裝了 CentOS 6.2 發現偶爾 eth0 會無法啟動。這是這個版本的怪問題,在網路上也搜尋了很多結果,找不到問題在哪。

後來靈機一動,把 eth0 從 DHCP 取得 IP 改為固定 IP 。問題就不再出現了。

提供給也遇到這個問題的朋友參考。

I installed CentOS 6.2 recently. But the eth0 interface sometimes does not work after booting.
I found some solutions on the net but they are unusable.
A bright idea suddenly occurs. I have used DHCP to get the IP of eth0. I modified it to STATIC and gave it a static IP. The problem solved.
When modifying to static IP, don't forget to add the routing information in /etc/sysconfig/network and add GATEWAY=x.x.x.x into the file.


沒有留言:

張貼留言