VMware Communities
johnmatvrix
Contributor
Contributor

using VNet1; Host Only to communicate between VM's

Both the guest VM's have same default gateway : 192.168.38.2. Host has the following :

Ethernet adapter VMware Network Adapter VMnet1:

   Connection-specific DNS Suffix  . :
   Description . . . . . . . . . . . : VMware Virtual Ethernet Adapter for VMnet1
   DHCP Enabled. . . . . . . . . . . : No
   Autoconfiguration Enabled . . . . : Yes
   IPv4 Address. . . . . . . . . . . : 192.168.38.1(Preferred)
   Subnet Mask . . . . . . . . . . . : 255.255.255.0
   Default Gateway . . . . . . . . . :

Could two vmware players communicate between each other ? If so, what should be settings of the host and guest for "Host Only"  ?

Tags (2)
0 Kudos
3 Replies
a_p_
Leadership
Leadership

Both the guest VM's have same default gateway : 192.168.38.2

A "x.x.x.2" address for the gateway is used in case of NAT, for Host-Only it's the IP address of the host's VMnet1 adapter "x.x.x.1"

Could two vmware players communicate between each other ? If so, what  should be settings of the host and guest for "Host Only"  ?

I assume you are talking about two VM's running in VMware Player and not two VMware Player instances installed on separate PCs (if the latter you need a Bridged network setup)!?

Sure. All you need to do is to either configure them for DHCP or assign appropriate static IP settings. With the subnet shown for VMnet1 on your host, the gateway/DNS is 192.168.28.1, subnet mask 255.255.255.0. By default VMware Player uses "x.x.x.128" - "x.x.x.254" for it's integrated DHCP server, so in case you want to assign static settings I'd recommend you use "x.x.x.2" - "x.x.x.127". In case you want to use NAT, don't use the "x.x.x.2" address as this is used as the gateway/DNS address.

André

0 Kudos
johnmatvrix
Contributor
Contributor

Glad you were spot on.

VM 1 :

C:\Users\Administrator>ipconfig

Windows IP Configuration


Ethernet adapter Local Area Connection:

   Connection-specific DNS Suffix  . :
   IPv4 Address. . . . . . . . . . . : 192.168.38.196
   Subnet Mask . . . . . . . . . . . : 255.255.255.0
   Default Gateway . . . . . . . . . : 192.168.38.1

VM2 :

C:\Users\Administrator>ipconfig

Windows IP Configuration


Ethernet adapter Local Area Connection:

   Connection-specific DNS Suffix  . :
   IPv4 Address. . . . . . . . . . . : 192.168.38.195
   Subnet Mask . . . . . . . . . . . : 255.255.255.0
   Default Gateway . . . . . . . . . : 192.168.38.1

Host VNet1:

Ethernet adapter VMware Network Adapter VMnet1:

   Connection-specific DNS Suffix  . :
   Link-local IPv6 Address . . . . . : fe80::28a7:3134:61b8:996d%23
   IPv4 Address. . . . . . . . . . . : 192.168.38.1
   Subnet Mask . . . . . . . . . . . : 255.255.255.0
   Default Gateway . . . . . . . . . :

Works.

0 Kudos
a_p_
Leadership
Leadership

Since you marked the question as "Answered" I assume it's working now!?

From the IP addresses used for the guests, it looks like they are configured manually, but in the DHCP range!?

André

0 Kudos