Find the answer to your Linux question:
Results 1 to 3 of 3
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1

    missing ifcfg-eth0 file CentOS 6.3

    I have installed CentOS 6.3 on a server ,,
    but i am not able to get an IP.The ifcfg-eth0 file is not
    there in the directory "/etc/sysconfig/network-scripts/".
    When i tried :
    cat /etc/sysconfig/network-scripts/ifcfg-eth0
    I get the error msg :
    cat /etc/sysconfig/network-scripts/ifcfg-eth0 : no such file
    Then i created ifcfg-eth0 in the same directory which looked
    like following--
    still i am not able to get IP, ifconfig eth0 says
    eth0: error fetching interface information: Device not found
    Help me out.

  2. #2
    Are you sure the network device eth0 is present? Try these commands:
    ls /sys/class/net
    lspci|egrep -i 'eth|net'

    Assuming eth0 is there (and I don't think it is), what does this command do (run as root):

    dhclient eth0
    Look in /var/log/messages on the DHCP server for connection attempts.

  3. #3
    Hi anvjb,

    I am not sure, you could try following it's not harmful.
    Remove the rules in the file /etc/udev/rules.d/

    The rules defined in this way
    # PCI device 0x8086:0x100e (e1000)
    SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="08:00:27:12:76:6d", ATTR{dev_id}=="0x0", ATTR{type}=="1", KERNEL=="eth*", NAME="eth0"

    So, delete all the lines below the comment "# PCI device 0x8086:0x100e (e1000)". And restart your system. This worked for me.

  4. $spacer_open

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts