?
Solved

Centos cannot find ethernet card - virtual machine

Posted on 2012-04-04
4
Medium Priority
?
1,606 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

Enroll in August's Course of the Month

August's CompTIA IT Fundamentals course includes 19 hours of basic computer principle modules and prepares you for the certification exam. It's free for Premium Members, Team Accounts, and Qualified Experts!

Question has a verified solution.

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

You ever wonder how to backup Linux system files just like Windows System Restore?  Well you can use Timeshift in Linux to perform those similar action.  This tutorial will show you how to backup your system files and keep regular intervals. Note…
Join Greg Farro and Ethan Banks from Packet Pushers (http://packetpushers.net/podcast/podcasts/pq-show-93-smart-network-monitoring-paessler-sponsored/) and Greg Ross from Paessler (https://www.paessler.com/prtg) for a discussion about smart network …
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:
Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.
Suggested Courses
Course of the Month15 days, 9 hours left to enroll

741 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