ootoaoo
Contributor
Contributor

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

Jump to solution

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

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

Try the command :

#ifconfig eth0 up

0 Kudos
ootoaoo
Contributor
Contributor

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

0 Kudos
arminmacx
Contributor
Contributor

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
0 Kudos
iw123
Commander
Commander

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
0 Kudos
JoaoCastro
Enthusiast
Enthusiast

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

Thanks!

dhclient eth0 -v did it Smiley Happy

0 Kudos
ootoaoo
Contributor
Contributor

Now I have to type that everytime I restart Smiley Sad

Any idea how to fix that?

0 Kudos
JoaoCastro
Enthusiast
Enthusiast

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"