CentOS 6.0 cannot find the Ifcfg-eth0 solution

Source: Internet
Author: User

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

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

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.