VMware Cloud Community
trilix
Contributor
Contributor
Jump to solution

ESXI 5.5 network problem on CentOS guest

We have HP ProLiant DL120 G7 (ONLINE.NET data center in France) dedicated node with ESXI 5.5 installation and vSphere Clent installation. In datastore we have ISO files for CentOS 5 and 6 in order to create VM guests for web server purposes.

vSphere Client successfully creates VM on the dedicated node, but we have a problem with networking, VM guests cannot access internet. Network settings for VM in vSphere client has VMXNET3 adapter with manually edited MAC address (MAC virtual provided from data center) and default VM Network as network connection option.

Inside VM guest (CentOS 6 Minimal) we have tried to setup /etc/sysconfig/network-scripts/ifcfg-eth0 and /etc/sysconfig/network-scripts/route-eth0 as per tutorial on https://documentation.online.net/en/serveur-dedie/systemes-d_exploitation/vmware_vsphere_hypervisor_...

but still cannot ping outside container.

We have one primary IP address and 5 failover IPs with virutal MAC addresses.

How to setup networking?

1 Solution

Accepted Solutions
trilix
Contributor
Contributor
Jump to solution

Problem solved!

Here is a solution:

/etc/sysconfig/network-scripts/ifcfg-eth0

should have:

DEVICE=eth0

BOOTPROTO=none

ONBOOT=yes

USERCTL=no

IPV6INIT=no

PEERDNS=yes

TYPE=Ethernet

NETMASK=255.255.255.255

#Replace IPADDR with your IP address

IPADDR=195.154.*.*

#Replace GATEWAY with your GATEWAY IP address

GATEWAY=195.154.*.*

DNS1=8.8.8.8

ARP=yes

ARPCHECK=no

View solution in original post

0 Kudos
4 Replies
Dee006
Hot Shot
Hot Shot
Jump to solution

I would recommend not go with minimal OS,Since certain package will not be install it will be headache for us to fix.

http://lintut.com/how-to-setup-network-after-rhelcentos-7-minimal-installation/

Give out a try on the above link.

0 Kudos
trilix
Contributor
Contributor
Jump to solution

Thanks, will try to reinstall with CentOS-6.7-x86_64-LiveCD instead of CentOS-6.7-x86_64-minimal. We don`t need CentOS 7 for now if possible.

0 Kudos
trilix
Contributor
Contributor
Jump to solution

We have configured everything on guest VM, but still cannot access internet:

ifcfg-eth0.PNG

ifconfig.PNG

route-eth0.PNG

route.PNG

vSphere Network configuration.PNG

Any idea?

0 Kudos
trilix
Contributor
Contributor
Jump to solution

Problem solved!

Here is a solution:

/etc/sysconfig/network-scripts/ifcfg-eth0

should have:

DEVICE=eth0

BOOTPROTO=none

ONBOOT=yes

USERCTL=no

IPV6INIT=no

PEERDNS=yes

TYPE=Ethernet

NETMASK=255.255.255.255

#Replace IPADDR with your IP address

IPADDR=195.154.*.*

#Replace GATEWAY with your GATEWAY IP address

GATEWAY=195.154.*.*

DNS1=8.8.8.8

ARP=yes

ARPCHECK=no

0 Kudos