Symptoms:
There are only ifcfg-lo files in/etc/sysconfig/network-scripts/, and no ifcfg-eth0.
The information displayed by the execution command ifconfig in the terminal is Ifcfg-lo. The eth0 corresponding information can be displayed only when the command ifconfig eth0 is executed. Use the command ifconfig eth0 192.168.2.XX to set the IP correctly. However, you must manually perform the If ... again after each reboot. command to set the IP address. On the internet to check a lot of people have said that there is no network adapter driver. Not really.
======================================================================
Solution:
1. Create a new Ifcfg-eth0 file in the/etc/sysconfig/network-scripts/and configure the information correctly, ip,network,hwaddr and so on, the device value is eth0.
2.ifcfg-eth0 in Onboot=yes
By common sense, this setting is self-activating.
But if you find that your settings did not successfully activate the NIC, then modify the following files
Vi/etc/rc.d/rc.loacl
Finally added
Ifup eth0.
After restarting the computer, execute the command ifconfig this time the eth0 and lo are all 2 parts of the information. Other computer ping This computer can also ping through.
Address: http://liulijun-cn-2011.iteye.com/blog/1177147;
CentOS 6.0 cannot find the Ifcfg-eth0 solution