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:

HWaddr FE:FF:FF:FF:FF:FF

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@hahacc 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@hahacc 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:
  • Wayne Kerr

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

    Cheers,
    Wayne.

    • lamp-linux

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

  • eyebeam

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

    • Anonymous

      Maybe you’ve the different situation.

  • Anonymous

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