Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have two ESXi 4 hosts on the same network, which has the following details:

IP: X.X.79.210
Gateway: X.X.79.209

IP: X.X.80.82
Gateway: X.X.80.81

I have VMs which has the following details:

VM1 in HOST1 (IpCop):
IP(ext): X.X.79.211

VM2 in HOST1:

VM3 in HOST2:

How can I set it up such that VM3 will be able to communicate with both VM1 and VM2 in HOST1?

I've been thinking of setting the gateway of HOST2 to be the same with HOST1. Will this work? Will I still be able to connect to HOST2 using vSphere client?

share|improve this question

Nothing magical happens on a network because you virtualise some of the machines. If you want these two virtual machines to communicate with each other, you will need to connect their two networks together in exactly the same way as you would have done before, whatever that would have been (routed networking, VPN, etc).

share|improve this answer

If you want two computers to communicate over the network, they must be able to reach each other on the IP level.

This means either both are connected to a router that routes traffic for both networks, or both have IP addresses that lie in the same broadcast domain (or subnet.)

I find it curious that you feel the need to redact the private IP addresses used on VMware hosts - what is secret about those private IP addresses ?

share|improve this answer

The key here is that host1 and host2 are in different subnets which indicates that they are not on the same network. Bridged VMs networking is independant of their hosts so in order to communicate there must be a route from one VM to another. Simply putting them on the same subnet is like putting my home pc on the same subnet as your home pc and expecting them to magically see each other.

Depending on your situation you need to put the VMs in 2 subnets with either routable IPs or if you want to keep them seperate from your network setup a tunnel between host1 and host2, pointing your VM gateways to them.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.