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.
To learn more about this network type of VMware virtualization program, visit https://www.vmware.com/support/ws3/doc/ws32_network6.html.
In this article, we have examined how to make a Host-Only connection using Virtual Network Editor on the VM Workstation / Player virtualization program step by step. Thanks for following us!
♦ LAN Segment Configuration
♦ Custom Specific Network Configuration
♦ How to Use the Clone in VMware
♦ How to Use the Snapshot in VMware
♦ How to Install VM Workstation/Player