VM to VM communication between two ESXi hosts on the same LAN

networkingvirtualizationvmware-esxi

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

HOST1:
IP: X.X.79.210
Subnet: 255.255.255.240
Gateway: X.X.79.209

HOST2:
IP: X.X.80.82
Subnet: 255.255.255.248
Gateway: X.X.80.81

I have VMs which has the following details:

VM1 in HOST1 (IpCop):
IP(ext): X.X.79.211
IP(int): 192.168.0.11
Subnet: 255.255.255.0

VM2 in HOST1:
IP: 192.168.0.2
Subnet: 255.255.255.0
Gateway: 192.168.0.11

VM3 in HOST2:
IP: 192.168.0.3
Subnet: 255.255.255.0
Gateway: 192.168.0.11

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?

Best Answer

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).

Related Topic