I installed CentOS 6.3 on my hardrive partition (new install…minimal install).
After successful installation, I see that eth0 was down. I looked for this file: /etc/udev/rules.d/70-persistent-net.rules
but did not find it.
Here's my ifcfg-eth0
settings: Note I had to create this file manually
DEVICE=eth0
HWADDR=*
BOOTPROTO=dhcp
ONBOOT=yes
TYPE=ETHERNET
This machine is connected to Ethernet (I have Windows 7 on another partition and I am able to connect to Internet with that just fine).
$ ifconfig -a | grep eth
returns no result
$ ethtool eth0
returns Cannot get device settings : No such device...
What can I try to get CentOS to detect eth0?
Best Answer
In my situation, I changed the network adapter configuration of my hypervisor after the installation of CentOS. What happened in this case is that the old interface eth0 no longer existed but a new one called eth1 did.
I changed the network config
/etc/sysconfig/network-scripts/ifcfg-eth0
to useDEVICE=eth1
and it worked again.