Ifcfg-eth0 solution not found in CentOS

Source: Internet
Author: User
Symptom:/etc/sysconfig/network-scripts/contains only the ifcfg-lo file, but not the ifcfg-eth0. The ifcfg-lo information is displayed when the command ifconfig is executed on the terminal. The eth0 information is displayed only when the command ifconfigeth0 is executed. Use the command ifconfigeth0 & nbsp for symptoms:
/Etc/sysconfig/network-scripts/contains only the ifcfg-lo file, without a ifcfg-eth0.
The ifcfg-lo information is displayed when the command ifconfig is executed on the terminal. The eth0 information is displayed only when the command ifconfig eth0 is executed. Use the command ifconfig eth0 192.168.2.XX to set the ip address. However, after each restart, you must manually execute the if... command to set the IP address. After checking the Internet, many people say that the NIC driver is not installed. This is not the case.
========================================================== ====================================
Solution:
1. create a new ifcfg-eth0 file in/etc/sysconfig/network-scripts/, and correctly configure the information, ip, network, hwaddr, etc. the DEVICE value is eth0.
2. ONBOOT = yes in ifcfg-eth0
In general, this setting can be activated by yourself.
However, if you find that your settings have not successfully activated the NIC, modify the following files:
Vi/etc/rc. d/rc. loacl
Last join
Ifup eth0.
After restarting the computer, run the ifconfig command to display the eth0 and lo information. Other computers can also be pinged.

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.