Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium


ESXi Virtual Guest Machines not able to access the internet or ping gateway

Posted on 2009-02-16
Medium Priority
Last Modified: 2012-06-27
Just installed ESXi on a HP Proliant server and installed 4 VM guests. I was able to get everything ok and even was able to hook up an iSCSI server with open filer. Everything is working fine except that none of my VM guests can go outside the VMnetwork. they can ping eachother and can ping the host ESXi but cannot ping the gateway.

Here is what I have

1 ESXi on HP Proliant with 2 Nics

1nic VM Network / Management 172.17.6.X/24
2nd iSCSI Connects to iSCSI server (OpenFiler)

 have my management laptop on the 172.17.6.X network and I can access the internet just fine. My ESX server can ping outside addresses.
My iSCSI network is connected to a different Vlan on my physical switch wich only those 2 ports can see eachother.

I also have used my external DNS settings inside the VMs and still cannot access the internet.

Any help is greatly appreciated.
Question by:sammydlc
LVL 12

Expert Comment

ID: 23656211

On the vSwitch that has your VM's on it did you create a Virtual machine Port group or did you pick up the VMKernal Port group?

Does that make sense?


Author Comment

ID: 23656257
If you mean when i created the switch i choose a virtual machine port group
LVL 18

Accepted Solution

larstr earned 500 total points
ID: 23657068
Check if port security is enabled on the physical switch ports where your vSwitch is connected. Port security is enabled by default on many cisco switches and will prevent VMs from accessing the network.


Author Comment

ID: 23666650
OK Guys we finally figured it out.

This is what we did to solve the problem.

Since I was already tired of editing the network settings on the host server, I decided to re-install ESXi to make sure that all the changes I had made did not make any conflicts.I moved my existing VMs into my iSCSI datastore.

I reinstalled ESXi on my host computer, and recreated my VMs. I then turned on my Vms and again they were not able to access the gateway therefore no internet.

We then knew that the problem was on our cisco switch and checked the logs on our Cisco Catalyst 500 and it reported that the port where we had our ESXi server plugged in had some problems and it denied access. It appears that the port only allows 1 IP address and that was why my internal Vms were being rejected from obtaining a DHCP request. We had configured the port to be a server port but for some reason the switch was denying requests from my vms and was blocking the access to the gateway. We reconfigured the port to be a router port and that allowed my Vms to obtain a DHCP address fom my dhcp router. Now i am able to go out to the internet on all Vms.

Well I just want to thank everybody that posted. It is great to have so many smart people in this forums that now makes me more confident on implementing a VMWare infrastucture in my workplace.
Thank you so much for your help and I will keep you posted on my deployment of VMware in my production enviroment.


Expert Comment

ID: 29370916
I had the exact same problem for months. I never thought it would be related to a port role. =/
That fixed my problem.

Thanks a lot Experts.

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

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

The article covers five tools all IT professionals should know about, as they up productivity by a great deal!
Herein one will find an aggregate of some of my experience building and deploying virtualization stacks both in standalone, clustered Hyper-V, clustered Hyper-V with a Scale-Out File Server (SOFS) backend, and Storage Spaces Direct (S2D).
Teach the user how to edit .vmx files to add advanced configuration options Open vSphere Web Client: Edit Settings for a VM: Choose VM Options -> Advanced: Add Configuration Parameters:
Teach the user how to use vSphere Update Manager to update the VMware Tools and virtual machine hardware version Open vSphere Client: Review manual processes for updating VMware Tools and virtual hardware versions: Create a new baseline group in vSpā€¦

572 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