Solved

Cannot access internet from VMWARE ESXI host connected to an Internet Router

Posted on 2014-04-01
12
4,408 Views
Last Modified: 2014-05-07
I have an ESXI host with 3 virtual machines on there. I have the ESXI connected directly to the internet router which in turn provides the host with an IP address.

How do I get the VMware Virtual machines that sit on the host to access the internet?

All I get at the moment is No Internet Access under the network settings.

Also, one of the servers is the Domain Controller, DNS, DHCP server for the other VMs.

Thank you.
0
Comment
Question by:MSSC_support
  • 4
  • 4
  • 3
12 Comments
 
LVL 17

Expert Comment

by:Brad Bouchard
ID: 39969687
You need to set static IPs for these VMs in their network settings unless you want them to pick up an address from the router, in which case you just need to make sure that you have these VMs on the same network (vSwitch) as the host.
0
 
LVL 17

Expert Comment

by:Brad Bouchard
ID: 39969692
And by static I mean you need to set the DNS & DHCP server address as the VM that is hosting those roles.  So just make sure that their IPs are on the same subnet as the router, with it as the gateway and then DNS.  

If you want to pick up a DHCP address just leave the adapter as it is and it will pick up a DHCP address from the server hosting that role.

Lastly, make sure in DHCP options that you've set the default gateway so that the computers that pick up a lease from DHCP will get that set for them.
0
 
LVL 17

Expert Comment

by:Brad Bouchard
ID: 39969696
If that doesn't make sense, please reply and I'll help you.
0
 
LVL 118
ID: 39969745
You may want to think hard, about adding Virtual Machines, with Windows OS directly on the internet with Public facing IP Addresses, and use firewalls or a traditional NAT network to protect your internal virtual machines and their network, using a virtual router.
0
 

Author Comment

by:MSSC_support
ID: 39971608
@Andrew Hancock This is just a test environment. I understand that I need to have these closed off via a firewall but I am trying to download critical files from the internet to set up a test build. I am happy if it is just one PC that has access.

@Brad, all my internal VMs have a static address and IP ranges + Subnet masks in the same range as the router. I have even set the router's IP as the gateway for these. Am I missing something?
0
Control application downtime with dependency maps

Visualize the interdependencies between application components better with Applications Manager's automated application discovery and dependency mapping feature. Resolve performance issues faster by quickly isolating problematic components.

 
LVL 118
ID: 39971653
in that case, you will need to connect a virtual machine network interface, to a virtual machine VM Portgroup, on the same virtual switch as the Management Interface of the ESXi server, and allocate a static IP Address, or DHCP.

Do you have more than one public facing IP Address?
0
 
LVL 17

Expert Comment

by:Brad Bouchard
ID: 39972236
@Brad, all my internal VMs have a static address and IP ranges + Subnet masks in the same range as the router. I have even set the router's IP as the gateway for these. Am I missing something?
The real question is this:  Can you get to a website by IP from these VMs?  Try going to 74.125.228.35 in your web browser from one of the VMs.  If it takes you to Google.com then it's definitely a DNS issue and we can go down that road.  If that doesn't work, try opening a command prompt and pinging 74.125.228.35.  Let me know if you get replies.
0
 
LVL 118

Accepted Solution

by:
Andrew Hancock (VMware vExpert / EE MVE) earned 500 total points
ID: 39972266
You need to set the Default Gateway to beyond your router, not to your routers IP Address.

if all your IP Addresses are on the same network, what is the gateway address, your router has been given?

this is the gateway you need to use.
0
 

Author Comment

by:MSSC_support
ID: 39977799
Can this be done even though it is sitting on a dynamic IP address?
0
 
LVL 118
ID: 39978122
DHCP may or may not issue a Default Gateway.

If no Default Gateway is provided, you will need to issue static IP Address with Default Gateway.
0
 

Author Closing Comment

by:MSSC_support
ID: 40017201
Got my answer based on that response.
0

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

When we have a dead host and we lose all connections to the ESXi, and we need to find a way to move all VMs from that dead ESXi host.
In this step by step tutorial with screenshots, we will show you HOW TO: Enable SSH Remote Access on a VMware vSphere Hypervisor 6.5 (ESXi 6.5). This is important if you need to enable SSH remote access for additional troubleshooting of the ESXi hos…
In this Micro Tutorial viewers will learn how to restore their server from Bare Metal Backup image created with Windows Server Backup feature. As an example Windows 2012R2 is used.
This tutorial will walk an individual through the process of configuring basic necessities in order to use the 2010 version of Data Protection Manager. These include storage, agents, and protection jobs. Launch Data Protection Manager from the deskt…

760 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

18 Experts available now in Live!

Get 1:1 Help Now