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

Posted on 2009-02-16
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


    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

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

    Accepted Solution

    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

    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.

    LVL 2

    Expert Comment

    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.

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    How to run any project with ease

    Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
    - Combine task lists, docs, spreadsheets, and chat in one
    - View and edit from mobile/offline
    - Cut down on emails

    Windows 10 is here and for most admins this means frustration and challenges getting that first working Windows 10 image. As in my previous sysprep articles, I've put together a simple help guide to get you through this process. The aim is to achiev…
    Teach the user how to use create log bundles for vCenter Server or ESXi hosts Open vSphere Web Client: Generate vCenter Server and ESXi host log bundle:  Open vCenter Server Appliance Web Management interface and generate log bundle: Open vCenter Se…
    In this video tutorial I show you the main steps to install and configure  a VMware ESXi6.0 server. The video has my comments as text on the screen and you can pause anytime when needed. Hope this will be helpful. Verify that your hardware and BIO…

    737 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

    15 Experts available now in Live!

    Get 1:1 Help Now