Home > Kernel, Linux > Solved:missing config file ifcfg-ifcfg-eth0 on centos linux

Solved:missing config file ifcfg-ifcfg-eth0 on centos linux

April 17th, 2011

When I ping the gateway, it gave this alert:

vif0.0: received packet with own address as source address
And when I tried to restart network, using service network restart, there was error message like this:

missing config file ifcfg-ifcfg-eth0

Then, when I checked the address of eth0, the hwaddr was abnormal:


Ok, something must be in wrong status.

NOTE: When you met error “received packet with own address as source address“, this article is suitable for you too.

Firstly, I backed up ifcfg-eth0 to ifcfg-eth0.bak

[root@user network-scripts]# cp ifcfg-eth0 ifcfg-eth0.bak
Then, set the hardware address for eth0(I’ve mapped eth0′s hwaddr to static ip address in router):

ifconfig ethX hw ether 1C:6F:65:D2:47:7B

After this, shoot setup command to add new NIC device for eth0:

[root@user network-scripts]# setup
On the prompt up window, select “Network Configuration”, “Run Tool”. Then select “Edit device”, “<New Device>”. On the next window, select and enter on “Ethernet”.

Name is eth0, device is eth0, select “Use DHCP”(click space button when focus on the brackets). Save and Quit.

When come back to shell environment, restart the network:

service network restart, then the server will send request to DHCP server to allow ip address to itself.

And issue solved. :D

Categories: Kernel, Linux Tags:
  1. Wayne Kerr
    May 4th, 2011 at 22:51 | #1

    The issue is with the fact that you’re probably missing DEVICE=eth0 from /etc/sysconfig/network-scripts/ifcfg-eth0.


    • lamp-linux
      May 5th, 2011 at 23:42 | #2

      Thanks Kerr. Next time I’ll have a try of your advice.

  2. eyebeam
    June 1st, 2011 at 21:31 | #3

    I had the exact same issue (CentOS 5.3), Kerr’s advice solved it.

    • Anonymous
      June 7th, 2011 at 14:01 | #4

      Maybe you’ve the different situation.

  3. Anonymous
    June 7th, 2011 at 13:59 | #5

    This issue happened again on my linux box, I followed this article and issue resolved.

  1. No trackbacks yet.