Solved

Centos cannot find ethernet card - virtual machine

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

Backup Your Microsoft Windows Server®

Backup all your Microsoft Windows Server – on-premises, in remote locations, in private and hybrid clouds. Your entire Windows Server will be backed up in one easy step with patented, block-level disk imaging. We achieve RTOs (recovery time objectives) as low as 15 seconds.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
docker invalid registry name 2 104
linux crontab output 3 65
Centos 6.4 ModSecurity: Output filter: Content-Length Error 2 41
Linux/Apache File Ownership/Permissions 1 49
SSH (Secure Shell) - Tips and Tricks As you all know SSH(Secure Shell) is a network protocol, which we use to access/transfer files securely between two networked devices. SSH was actually designed as a replacement for insecure protocols that sen…
This article will explain how to establish a SSH connection to Ubuntu through the firewall and using a different port other then 22. I have set up a Ubuntu virtual machine in Virtualbox and I am running a Windows 7 workstation. From the Ubuntu vi…
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
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…

948 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

24 Experts available now in Live!

Get 1:1 Help Now