In this article, we will configure the network settings of virtual machines on the VMware Workstation as Host-Only (Private Network) and test the network connections.
How to Configure Host-Only Network in VMware Workstation?
In our previous articles, we reviewed how to configure Bridged and NAT connectivity on VMware Workstation. In this article, we will configure a Host-Only network connection with a very different structure from the Bridged and NAT network.
The main purpose of Host-Only configuration on VMware Workstation is to allow virtual machines to communicate only between themselves. For example, if you configure the network settings of two virtual machines named Client1 and Client2 that you created on VMware Workstation as Host-Only, these two virtual machines will only communicate with each other.
As a result, the virtual machines configured with the Host-Only network on VMware will not be able to access your physical network and the Internet.
How to Configure Host-Only Networking on VMware Workstation 12/14?
The first time you install VMware Workstation, the default settings on the Virtual Network Editor is as follows.
In the network settings on the Virtual Network Editor, you can see that VMnet1 is configured as Host-Only by default. To configure Host-Only on VMware, open two virtual machines that you created earlier.
Now, follow the steps below in order to configure Host-Only network on VMware Workstation 12/14 step by step.
To configure the Client1 virtual machine as Host Only, click Network Adapter.
In the same way, configure the other Client2 virtual machine as Host-Only. After you have done the network settings for both virtual machines, run the virtual machines.
To control the IP address allocated to the Client1 virtual machine, execute the ipconfig command at the CMD command prompt. When you examine the image below, you can see that the Client1 virtual machine has received the 192.168.209.130 IP address.
Similarly, the IP address assigned to the Client2 virtual machine is 192.168.209.129.
As you can see, the Client1 and Client2 virtual machines receive IP addresses via DHCP from the VMnet IP address block, which is configured by default in the Virtual Network Editor program. The DHCP serveris VMware’s local DHCP service.
Test the network connection by pingingfrom the Client1 virtual machine to the Client2 virtual machine.
Likewise, ping from the Client2 virtual machine to the Client1 virtual machine.
Thanks to VMware Host-Only networking, virtual machines communicate with each other. You need to check the Windows Firewall because the ping has failed.
On your desktop, click Control Panel, and then click Windows Firewall.
In the Firewall window, click Allow an application or feature to bypass the Windows Firewall.
If you do not have administrator rights in the window that opens, click on the Change Settings button.
Select File and Print Sharing for both Privateand Publicnetwork.
Click the OK button to close the window.
Check the network connection between Client1 and Client2 virtual machines by pinging again. This time you can see that the ping process is successful.
VMware Host-Only Physical Network Access Test
All virtual machines configured as Host-Only on VMware can only communicate with each other. Ping your physical network from Client1 and Client2 virtual machines above to check the network connection.
As you can see in the following image, the Client1 virtual machine can not access the physical network.
Likewise, the Client2 virtual machine can not access the physical network.
VMware Host-Only Internet Connection Test
In the Host-Only networking on VMware, virtual machines can not access the physical network as well as the Internet. If you try to visit www.google.com after opening a web browser on the Client1 virtual machine interface, the virtual machine will not be able to access the Internet as follows.
Likewise, the Client2 virtual machine will also fail in this case.
In this article, we have discussed how to configure Host-Only network using the Virtual Network Editor on the VMware Workstation virtualization program step by step. Thanks for following us!
If this article is helpful, please send us feedback by commenting…
Articles Related to How to Create a Private Network in VMware