VMware Cloud Community
ootoaoo
Contributor
Contributor
Jump to solution

CentOS 6 on ESXi 5.0 - No network adapter (eth0)

All-

I just installed CentOS 6 64-bit and I'm unable to add a network adapter properly. I have tried using E1000, VMXNET2, and VMXNET3.  I even tried adding all 3 at once, and none appear when I type ifconfig.  Only loopback appears.

Does anyone have any ideas on what I need to do? I thought installing vmware tools might help, but I need to use yum to do that, and I have no internet connection.

Thanks in advance!

Tags (2)
1 Solution

Accepted Solutions
JoaoCastro
Enthusiast
Enthusiast
Jump to solution

if you use dhcp in your network, run the follow command   :

#dhclient eth0 -v

if you use static ip, run the follow command:

#ifconfig eth0 IPADDRESS

eg:

#ifconfig eth0 192.168.0.1

View solution in original post

8 Replies
JoaoCastro
Enthusiast
Enthusiast
Jump to solution

Try the command :

#ifconfig eth0 up

Reply
0 Kudos
ootoaoo
Contributor
Contributor
Jump to solution

It now is listed, but it doesn't get an IP address.  It does show an inet6 address though 😕

Reply
0 Kudos
arminmacx
Contributor
Contributor
Jump to solution

You can download Linux-Tools from VMware and try installing tools from that.

Try stop/start networking in CentOS and check if its work.

Hope it helps

Please tell me if it works or not

Best is Cloud

Armin Lavaee

VCA-DCV / VCA-Cloud / VCA-WM / MCSE / MCP / MCTs https://ir.linkedin.com/in/armin-lavaee-73162652
Reply
0 Kudos
iw123
Commander
Commander
Jump to solution

can you initiate the tools install through you vi client?

do you have dhcp available? if not you can try to configure a static ip using ifconfig. 

*Please, don't forget the awarding points for "helpful" and/or "correct" answers
Reply
0 Kudos
JoaoCastro
Enthusiast
Enthusiast
Jump to solution

if you use dhcp in your network, run the follow command   :

#dhclient eth0 -v

if you use static ip, run the follow command:

#ifconfig eth0 IPADDRESS

eg:

#ifconfig eth0 192.168.0.1

ootoaoo
Contributor
Contributor
Jump to solution

Thanks!

dhclient eth0 -v did it Smiley Happy

Reply
0 Kudos
ootoaoo
Contributor
Contributor
Jump to solution

Now I have to type that everytime I restart Smiley Sad

Any idea how to fix that?

Reply
0 Kudos
JoaoCastro
Enthusiast
Enthusiast
Jump to solution

You Can edit a network file for next boot your nic start automatically:

#nano /etc/sysconfig/networking/devices/ifcfg-eth0

change de follow lines :

#device

DEVICE=eth0

#start on boot?
ONBOOT=yes

#start device with dhcp client running
BOOTPROTO=dhcp

type : Ctrl+x to save and y to confirm

att.

Joao Castro

regards, if you found this or other information useful, please consider awarding points for "Correct" or "Helpful"