?
Solved

Centos cannot find ethernet card - virtual machine

Posted on 2012-04-04
4
Medium Priority
?
1,639 Views
Last Modified: 2012-04-04
Hi Experts,

I can't find my ethernet network card on my centos 6 virtual server. This is setup over a ESX platform.

Troubleshooting done:
1. When I run "ifconfig", it only shows my loopback interface
2. If I do system-config-network  ( I see the network card with the correct ip address)
3. If I go to /etc/sysconfig/network-scripts  ( I see ifcfg-eth0 and ifcfg-lo)
4. If I go to /etc/sysconfig/network-scripts/ifcfg-eth0  (the correct info is there)
5. When I do service network restart, I get a message that reads:  Device eth0 does not seem to be present, delaying initialization.
6. On the VM settings is set to "Connected" and Connect at power on.

How do I fix this?  thank you for your help
0
Comment
Question by:RandallVillalobos
  • 2
4 Comments
 
LVL 21

Expert Comment

by:oleggold
ID: 37808084
In ESX server vmware network adapter for the connection method You chose (say bridged) click properties,see ip adress it's using,then configure Your Centos machine with the same address.
0
 
LVL 21

Expert Comment

by:oleggold
ID: 37808087
If centos can't find the network card could be vm machine problem,check Your vmx file for doubles/errors i n ethernet definitions
0
 
LVL 21

Accepted Solution

by:
Papertrip earned 2000 total points
ID: 37808095
ifconfig is only going to show interfaces that are up unless you add -a

Please paste the contents of ifcfg-eth0, perhaps it has the HWADDR or MACADDR of a different machine.  This can happen with a VM created from a template or cloned.  If either of those options are present you are safe to comment them out or edit it to match your actual MAC, but those options are mutually exclusive.

Also check out /etc/udev/rules.d/70-persistent-net.rules and make sure the MAC matches eth0
0
 

Author Closing Comment

by:RandallVillalobos
ID: 37808902
thank you
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In my business, I use the LTS (Long Term Support) versions of Linux. My workstations do real work, and so I rarely have the patience to deal with silly problems caused by an upgraded kernel that had experimental software on it to begin with from a r…
Often times it's very very easy to extend a volume on a Linux instance in AWS, but impossible to shrink it. I wanted to contribute to the experts-exchange community a way of providing a procedure that works on an AWS instance. It can also be used on…
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.
Suggested Courses
Course of the Month15 days, 1 hour left to enroll

840 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question