VMware Workstation 6.5 CENTOS移植問題

問題現象:安裝CentOS 5,每次啓動後網卡總不能設置成指定的靜態IP地址,eth0自動變成dhcp,不論直接修改ifcfg-eth0以及setup修改,重啓後ifcfg-eth0都會自動變回dhcp方式,而/etc/sysconfig/network-script/目錄下多出一個ifcfg-eth0.bak文件,該文件內容爲原先ifcfg-eth0內容。板載網卡的mac地址每次重啓也不一樣.

I have installed Centos 5 on a pc, now dhcp is active but i want to configure this pc with a static ip, i change this with netconfig or system-config-network command, restart network service and works fine but when i restart pc, the net configuration is reset and dhcp is active, is like centos load a default net configuration every time i reboot this pc. How can i configure a static ip and that this ip remains in centos every time i restart this pc?

現象:

 


 

具體解決辦法:

I have just recently come accross this same problem on a few machines running CentOS 5 in which you have set a static IP address and after rebooting , the system hangs on "determing IP address" and then goes on to boot without any hostname or IP address.

The way around this problem that I and one or 2 others have found is to :

1) Disable Kudzu on bootup

2) Unbind the MAC address for eth0 in /etc/sysconfig/network-scripts/ifcfg-eth0 by removing the line
HWADDR=XX:XX:XX:XX:XX:XX


You will also need to check /etc/sysconfig/network-scripts and remove any non active ethernet entries that gets placed in that directory after this bootup problem.

The typical files are
ifcfg-eth0.bak
ifcfg-eth0:0

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章