Take the 2-minute tour ×
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems.. It's 100% free, no registration required.

I installed CentOS 6.3 on my hardrive partition (new install...minimal install).

After successful installation, I see that eth0 was down

looked for 70-persistent-net.rules file under /etc/udev .. did not find it

Here are 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)

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?

share|improve this question
    
What type of device is it? Does it show in lspci, as what does it get identified? Is it USB? lsusb ... –  tink Oct 30 '12 at 19:04
    
device is a NIC. It does not show up in lspci. lspci returns command not found –  Vikram Oct 30 '12 at 19:28
    
Can you try to install the pciutils RPM? Without that diagnostics may be difficult. Do you see any mention of eth in /var/log/syslog or the output of dmesg? –  tink Oct 30 '12 at 19:37
    
grep eth in dmesg returns nothing. Could not install pciutils as it throws me this error PYCURL ERROR 6 - "Couldn't resolve host mirrorlist.centos.org" ...I believe this error again may be related to NIC card not available –  Vikram Oct 30 '12 at 19:45
    
Try getting the RPM on another box, and move it to your centos install via e.g., USB Stick? –  tink Oct 30 '12 at 20:08

3 Answers 3

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.

ls /sys/class/net
eth1 lo

I changed the network config /etc/sysconfig/network-scripts/ifcfg-eth0 to use DEVICE=eth1 and it worked again.

share|improve this answer

I could not figure out how to fix this. I downloaded the netinstall iso version and that worked like a charm.

share|improve this answer

Since you specified this is an non-cloned setup I will assume that you are using a virtualization environment for your machine. If so, than the solution that worked for me on a Centos 5 was to simply change the network adapter type from vmxnet3 to e1000.

For me it was like this:

  1. create a virtual machine in the vcenter(hypervisor).
  2. click on edit on that particular machine
  3. hardware -> add -> network adapter(ethernet adapter) . change the type to e1000
  4. install the OS
share|improve this answer
    
You should consider expanding your answer to include information on process or futher elaboration for the sake of clarity and completeness. –  HalosGhost Jun 30 at 21:18

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.