Solved

Centos cannot find ethernet card - virtual machine

Posted on 2012-04-04
4
1,592 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 500 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

Don't Cry: How Liquid Web is Ensuring Security

WannaCry is just the start. Read how Liquid Web is protecting itself and its customers against new threats.

Question has a verified solution.

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

Note: for this to work properly you need to use a Cross-Over network cable. 1. Connect both servers S1 and S2 on the second network slots respectively. Note that you can use the 1st slots but usually these would be occupied by the Service Provide…
The purpose of this article is to fix the unknown display problem in Linux Mint operating system. After installing the OS if you see Display monitor is not recognized then we can install "MESA" utilities to fix this problem or we can install additio…
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.:
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…

728 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