Solved

Centos cannot find ethernet card - virtual machine

Posted on 2012-04-04
4
1,561 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
Comment Utility
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
Comment Utility
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 500 total points
Comment Utility
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
Comment Utility
thank you
0

Featured Post

Highfive + Dolby Voice = No More Audio Complaints!

Poor audio quality is one of the top reasons people don’t use video conferencing. Get the crispest, clearest audio powered by Dolby Voice in every meeting. Highfive and Dolby Voice deliver the best video conferencing and audio experience for every meeting and every room.

Join & Write a Comment

The purpose of this article is to show how we can create Linux Mint virtual machine using Oracle Virtual Box. To install Linux Mint we have to download the ISO file from its website i.e. http://www.linuxmint.com. Once you open the link you will see …
It’s 2016. Password authentication should be dead — or at least close to dying. But, unfortunately, it has not traversed Quagga stage yet. Using password authentication is like laundering hotel guest linens with a washboard — it’s Passé.
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…
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.

744 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

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now