In this article, we will build the network settings of virtual machines on the VM Workstation as Host-Only and test its connections.
How to Configure Host Only Network in VMware Workstation/Player
In our previous articles, we examined how to configure the NAT and Bridged on VMware software. In this article, we will configure the Host-Only networking that is very different from the Bridged and NAT designs.
The main purpose of configuring this virtual network is to enable virtual machines to communicate only among themselves. For example, if you configure the networking settings of two virtual machines named Client1 and Client2 on the VM Workstation as Host-Only, these two VMs will only be able to communicate with each other.
As a result, the virtual machines configured as Host Only networking will not be able to access your physical network and the Internet.
How to Use Host Only on Virtual Network Editor Software
The default settings on Virtual Network Editor when you first install the virtualization program are as follows.
In the network settings on Virtual Network Editor, you can see that VMnet1 is configured as Host Only by default. Now, open the two machines you created earlier.
Now, follow the steps below to design Host-Only networking on VM Workstation 12/14/15.
Click Network Adapter to configure the Client1 machine.
Also, configure the other Client2 machine. Run the machines after setting the network settings of both machines.
To check the IP address assigned to the Client1 machine, execute ipconfig at the CMD prompt. When you view the image below, you can see that Client1 machine has received the IP address of 192.168.209.130.
Similarly, the IP address assigned to the Client2 machine is 192.168.209.129.
As you can see, Client1 and Client2 virtual machines have received IP addresses via DHCP from the VMnet IP address block configured by default in Virtual Network Editor. The DHCP server is the local DHCP service of VMware.
Test the network connection by pinging from Client1 to Client2.
Likewise, Ping from Client2 to Client1 machine.
Because Ping is failing, you need to check the Windows Firewall. On the Desktop, click Control Panel, and then click Windows Firewall.
In the Firewall window, click Allow an application or feature to switch to Windows Firewall.
If you do not have administrator rights in the window that opens, click Change Settings.
Select File and Printer Sharing for both Private and Public network.
Click the OK button to close the window.
Check the network connection between the Client1 and Client2 machines again by pinging. This time you can see that Ping is successful.
Physical Network Access Test
All virtual machines configured as Host-Only can only communicate with each other. Check the network connection by pinging your physical network over Client1 and Client2 machine.
As you can see in the image below, Client1 cannot access the machine on the physical network.
The Client2 virtual machine is also unable to access the physical network.
In this network configuration, virtual machines cannot access the physical network or the Internet. When you try to visit www.google.com after opening a web browser on the Client1 virtual machine interface, the virtual machine as follows will not be able to access the Internet.
Again, the Client2 virtual machine will also fail in this case.
Hi, I'm Tolga, a computer expert with 20 years of experience. I help fix computer issues with things like hardware, systems, networks, virtualization, servers, and operating systems. Check out my website for helpful info, and feel free to ask me anything. Keep yourself in the loop about the newest technologies!