Hardware and software setup

Vmware ip address of the virtual machine. VMWare Workstation: Create Virtual Network Adapters and Network from Virtual Machines

VMware Workstation is an ideal solution for self-education, debugging applications, creating test lab environments. Many who take their first steps with VMware Workstation face various issues when setting up. In this article, we will look at network settings available immediately after installation VMware Workstation. This article will be of interest, first of all, to those who are just starting to understand the virtual environment.

By default, in VMware Workstation there are three types virtual networks. You can connect a virtual machine to a specific network from the menu Virtual machine Settings

Consider the default networks VMware Workstation:

Bridged/VMnet0. In this connection, the virtual machine connects to the network using the host's physical network adapter. A virtual machine's virtual network adapter uses your computer's physical network adapter, allowing the virtual machine to access the same network that the physical computer is connected to. In other words, virtual machines get access to your local network.

Note that the host and guest operating systems have unique MAC and IP addresses. In case on virtual machines ah no static IP address is specified, then it will get it via DHCP, like regular computer. V this type connections, the virtual machine has full access to the local network and can connect to other computers, and computers on the local network can connect to it.

This type of connection is used most often.

Host-only/VMnet1. The second kind of network connects the guest virtual machine and the host computer, forming a private network. This connection provides network connection between a virtual machine and a physical computer (host) using a virtual network adapter available operating system host.

With this type of connection, the virtual machine does not have access to the local network and the Internet. Since virtual machines do not have access to physical network, VMware Workstation provides for the use of the DHCP service to assign TCP\IP parameters to virtual machines. For a host-only virtual network, a specific subnet is used, in our case it is 192.168.52.0-254, where the virtual adapter on physical computer has an IP address of 192.168.52.1, and all guest virtual machines using a host-only connection receive addresses from the VMware DHCP server.

Virtual machines using a host-only network can interact with each other in this network.

NAT/VMnet8. This is the third type of connection. This type of connection is characterized by the fact that the communication between the virtual machine and the host is carried out over a private network. Why is a second virtual network card installed in a physical computer.

When using a NAT connection, the virtual machine does not have its own external network IP address. However, the virtual machine can connect to computers from an external network using the standard TCP/IP protocol. In this case, the virtual machine uses the IP and MAC addresses of the physical computer.

It is worth noting that by default, a computer from the local physical network cannot connect to a virtual machine.

NAT connection is selected by default when creating a new virtual machine VMware Workstation.

Since the virtual machine does not have direct access to the network, VMware Workstation uses a DHCP service to assign IP addresses to virtual machines on a private network.

Virtual network management VMware Workstation carried out in the Virtual Network Editor, which is installed by default. You can launch Virtual Network Editor directly from the Start menu by selecting All Programs, then VMware and Virtual Network Editor. You can also launch Virtual Network Editor inside the interface VMware Workstation by selecting the Edit menu and Virtual Network Editor.

After launching the Virtual Network Editor, you will see a tab Summary. This tab displays all virtual networks used VMware Workstation.

automatic bridging. If the host machine, i.e. computer on which the software is installed VMware Workstation, has more than one physical Ethernet adapter, the first available physical adapter is automatically selected to be used in the VMnet0 virtual network. It is possible to add an exception to not use a specific physical adapter on the VMnet0 network.

Host Virtual Network Mapping. This tab is used to configure virtual networks in VMware Workstation. On this tab, for the VMnet0 network, you can specify the use of a specific physical adapter. For VMnet1 and VMnet8 networks, you can specify the subnet and DHCP options.

Host Virtual Network Adapter. This type of adapter allows the host machine to connect to a virtual network. By default, two virtual network adapters are created per host: one for the bridge network and one for the network address translation (NAT) network. Using this tab, you can disable or completely remove a specific adapter. Also on this tab, you can create a new virtual adapter and associate it with a specific VMnet.

DHCP. This tab defines DHCP options for VMnet1 (host-only) and VMnet8 (NAT) virtual networks. You can also stop or restart the DHCP service here.

NAT. This tab defines which virtual network will use Network Address Translation (NAT). On this tab, you can start/stop the NAT service. In addition, there are advanced NAT settings available under "Edit".

We hope you have a clearer understanding of virtual networks VMware Workstation and this article was helpful for you.

Virtual network card. Parameters.

To begin with, I suggest that you familiarize yourself with the connection parameters to network map virtual machine and after that we'll talk about the "virtual network editor". Open the settings of the virtual machine, this can be done from the menu "Virtual Machine" -> "Settings" or you can open the tab of your virtual machine and click "Change settings" it is also possible to use hot key(Ctrl+D).

We open the virtual machine configurator, select the network adapter and its settings appear on the right. Now let's figure out what's what here.

  1. 1. Connection type "bridge". With this connection type, the virtual adapter works directly with the physical adapter on the host machine. What does it give? This setting allows the virtual machine to communicate with the local network and the Internet if they are available to the host machine's physical adapter. The settings for the network connection in windows in this case are taken from DHCP servers which is built into the VMWare product.
  2. 2. Connection type "NAT". When using this type of connection, the adapters of the virtual and host machines create a connection between themselves, the parameters for which are set by the VMWare DHCP server. When using this type of connection, the virtual machine has access to the outside world that is connected via the physical adapter, while this machine will not be visible from the outside.
  3. 3. Connection type "Node only". This connection creates a virtual network between the virtual adapter on the virtual machine and the VMWare virtual adapter on the host machine, the settings for which are also set by the DHCP server built into VMWare. In such a network virtual computer and the host can exchange data with each other, but the virtual computer does not have access to the outside world (physical network, Internet).
  4. 4. Connection type "Other". For this type of connection, you can select any created virtual network. These virtual networks are created and configured using the "virtual network editor". The parameters for such virtual networks are similar to those described above, while in the "virtual network editor" you can also configure the parameters of the built-in DHCP server and port forwarding.

Virtual network editor

To call the editor, go to the "edit" menu -> "virtual network editor", the hotkey combination for this menu item is not assigned.

By default, three networks with default settings are created in the "virtual network editor".

VMnet0 is configured for bridging. In the settings of this connection, it is possible to explicitly specify with which adapter the bridge will be created.

The VMnet8 network uses the "NAT" connection type. In the connection settings, you can change the settings of the built-in DHCP server or disable it. It is also possible to uncheck the “connect a virtual adapter to this network” setting, this will turn off the virtual network adapter on the host machine, and if DHCP is active, the virtual machine will still have access to the Internet ... You can also configure “NAT settings” here. In these parameters, it is possible to forward the port from the host machine to the virtual one. Let's consider this option in more detail.


Let's say that it is necessary that the data coming to a certain port of the live connection on the host machine be redirected to a certain connection port of the virtual machine. Click the "add" button in the "NAT settings" and fill in the required details.

  1. 1. Host port - here you need to specify from which port of the host machine we want to redirect data.
  2. 2.Type - select desired type TCP or UDP
  3. 3.IP address of the virtual machine - can be found in the "adapter connection properties" on the virtual machine.
  4. 4.Virtual machine port — specify the port number on the virtual machine that will receive redirected data.
  5. 5.Description - you can sign, for example, which service this port belongs to.
  6. 6. Press "OK" and test the result.

An example of how I forwarded the standard port forIIS.

VMnet1 is configured to work with a Host Only connection. In the settings of this network, the built-in DHCP settings and the ability to create a connection with a virtual network adapter on the host are also available.

Creating and configuring a network.

I suggest trying to create a network between two virtual machines. For ease of notation, I will name both virtual machines and give the connection parameters for each machine:

SERVER is the first virtual machine running OS Windows Server 2012 consisting of working group work group. In the connection settings, in the TCP / IP parameters, the IP address (192.168.0.1) and the subnet mask (255.255.255.0) are manually specified, the windows firewall is disabled.

CLIENT is the second virtual machine running Windows 7, which is a member of the Workgroup. In the connection settings, in the TCP / IP parameters, the IP address (192.168.0.2) and the subnet mask (255.255.255.0) are manually specified, the windows firewall is disabled.

On both virtual machines in the network adapter settings, the connection to the VMnet1 network was selected. Using the "virtual network editor" in the VMnet1 network settings, two settings "connect a virtual host adapter to this network" and use the built-in DHCP server were disabled.


Now let's make sure that our virtual machines are in the same virtual network, for this we will use the ping command.


As we can see, both machines are connected to the same virtual network, which is isolated from the outside world and not connected to the host's virtual adapter.

I suggest adding a second virtual adapter on SERVER and configuring it to communicate with outside world. Open the parameters of the virtual machine "virtual machine" -\u003e "parameters" (Ctrl + D) and click the "add" button. Before us is the wizard for adding new equipment, select "network adapter" and click "next". At this stage, the wizard prompts us to select the connection type for the new virtual adapter, in my case I chose "other" and pointed to the VMnet8 (NAT) network. We click "done" and we see that a second network adapter configured to connect to the VMnet8 network has been added to the virtual machine configuration.

The page presents detailed instructions Learn how to create network connections between the host and virtual machines in VMware Workstation.

The page is part of an article

You can customize the content:

A typical VMware setup without the context of the main article.
(Also follow the paragraph on configuring static IP addresses on the next page of the article).

Configuring VMware in the context of creating a virtual proxy group.

To create a virtual local area network, we need to create virtual adapters for each local machine, which all computers will consider as real network cards.

To go to the settings in the top drop-down menu of the program VMware Workstation select [Edit] - [Virtual network editor ...]

The virtual network editor will open in front of us. If this is your first time creating a virtual network, first let's delete the existing default networks so as not to get confused by highlighting the network in the list and clicking the "Delete Network" button.

Remember how earlier we added the word VMware with a serial number to the names of folders with virtual machine images. Now we press the add network button and add networks by selecting VMware0 in the list and so on according to the required number of virtual machines.

Our networks will appear in the list of networks, now we click on each line with the name of the network and in the "Information about VMNet" area under the list of networks, select the item "Host only", the next item "Connect the host adapter to this network" should be checked. We also make sure to uncheck the box "Use local DHCP service to allocate IP addresses for virtual machines" as we will assign our own static IP addresses in the next part of the article. Perform the action for each network and click [Apply].

Next, we look at which network which “Subnet Address” belongs to, write down these numbers or remember how to see them here, since we will need these addresses to assign our address within these subnets manually. Press [OK]. The network adapters of our virtual networks should immediately appear on the main and virtual machine.

To enable network adapters on each VMware virtual machine, click on the name of the virtual machine right click mice and context menu select the "Settings" item, then go to the "hardware" tab of the "Virtual Machine Settings" window. If you find a network adapter that you do not use in the list of virtual machine devices, then it is better to simply delete it, and then select the "add" tab.

The Add New Hardware Wizard will open.
Select the type of equipment to be added "Network Adapter" and click [Next].

On the next page of the wizard, in the "Network connection" area, select the "Other: Specify virtual network" item and select the "VMnet (host only)" network with the serial number that we assigned to this virtual machine.

We do similar actions to create new virtual network adapters on other Virtual OS. We create an adapter for each virtual machine in order to be able to monitor traffic and traffic stability (parsing) from each virtual machine separately and at the same time in one place - in the Network tab in the Task Manager of the main operating system.

Now that our adapters have been created, we can move on to configuring static IP addresses for our adapters, which is described on the next page of the article.

This article aims to clearly explain what needs to be done to create a network between the main operating system and a virtual machine running VMware Workstation, on which any version of the Windows operating system is installed. In addition, the information below can be used to create a network between several virtual machines running on the same computer, and also, based on the analogy, set up a network in others like Virtual Box or Hyper-V.

Network setup process in VMware Workstation virtual machine

First of all, we need an already installed operating system from the Windows family on the VMware Workstation virtual machine. was discussed a little earlier, so I hope you can handle it. Before starting the virtual machine, you must click on the button Edit Virtual Machine Settings, which in Russian would mean something like " Change virtual machine settings". If you cannot find this button, right-click on the desired virtual machine in the left Library window, then select Settings. Next, in the window that opens, select Network Adapter on the left and in the right segment select the match on the NAT item, or Custom: Specific virtual network and select VMnet8 (NAT) or any other adapter with a different number at the end in the list of available ones, in which NAT is indicated in brackets.

After all this, you can start the virtual machine and wait until it fully boots up. Next, you need to open a window Network connections, which is located at Control Panel -> Network and Internet -> Network Connections. There you should have one single LAN connection to ensure you don't get confused. Right click on this connection and select Properties. Next, you need to select Internet Protocol version 4 in the list, and in the window that opens, enter the following data:

IP address: 192.168.1.1

Subnet mask: 255.255.255.0

This moment is very similar to the process from the article. Now you need to disable the Firewall on this virtual machine, or you need to configure it in a way so that it allows those who want to get into this virtual machine to pass. To do this, use the article how. Having done all this, you need to move on to setting up the main operating system. In the case of creating a network between two virtual machines, you need to do all the same gestures, but set a different IP address, which differs only in the last octet and does not exceed 255.

Network setup on the main OS

On the main operating system, you must also open the Network Connections window and look for local network connections with the following name: VMware Network Adapter VMnet8. Next, you need to get into the Properties of this connection and also set the above-described settings for the IP address and subnet mask for the Internet protocol version 4. You should also remember that it must be unique, therefore, change only the last octet, which you have not previously set for more than one virtual machine . In order to be able to reach the main machine through the network, it is also necessary to disable the Windows Firewall or other security software, or configure them properly.

Connection settings between the main OS and the virtual machine

That's all that needed to be done to create a network between the main operating system and the VMware Wokrstation virtual machine, or between multiple virtual machines. Further actions, for example, for exchanging files, are completely identical to what was described in the article about creating a network between two computers (the link was just above). From this it follows that the task set before this article is solved. I would only like to add that if you raise a server operating Windows system on the virtual machine and the role of the domain controller on it, and hence the role of the DNS server, then in other (client OS) in the IPv4 protocol settings, additionally in the Preferred DNS server field specify the IP address set for your domain controller or server, more generally plan.

Hello everyone.

Moving from one software virtualization platform to another, one has to set up network interaction between virtual operating systems. Today let's remember what's what on the networks in the legendary VMware Workstation. And in a couple of days we will look at VirtualBox networks.

VMware Workstation is an ideal solution for self-education, debugging applications, creating test lab environments. Many who take their first steps with VMware Workstation face various issues when setting up. In this article, we will look at the network settings available immediately after installation. VMware Workstation. This article will be of interest, first of all, to those who are just starting to understand the virtual environment.

By default, in VMware Workstation There are 3 types of virtual networks. You can connect a virtual machine to a specific network from the Virtual Machine Settings menu

Bridged/VMnet0. In this connection, the virtual machine connects to the network using the host's physical network adapter. A virtual machine's virtual network adapter uses your computer's physical network adapter, allowing the virtual machine to access the same network that the physical computer is connected to. In other words, virtual machines get access to your local network.

Note that the host and guest operating systems have unique MAC and IP addresses. If the virtual machines do not have a static IP address, then it will receive it via DHCP, like a normal computer. In this type of connection, the virtual machine has full access to the local network and can connect to other computers, and computers on the local network can connect to it.

This type of connection is used most often.


Host-only/VMnet1. The second kind of network connects the guest virtual machine and the host computer, forming a private network. This connection provides a network connection between a virtual machine and a physical computer (host) using a virtual network adapter available to the host operating system.

With this type of connection, the virtual machine does not have access to the local network and the Internet. Since virtual machines do not have access to the physical network, VMware Workstation provides for the use of the DHCP service to assign TCP\IP parameters to virtual machines. For a host-only virtual network, a specific subnet is used, in our case it is 192.168.52.0-254, where the virtual adapter on the physical computer has an IP address of 192.168.52.1, and all guest virtual machines using a host-only connection receive addresses from the VMware DHCP server.

Virtual machines using a host-only network can interact with each other in this network.

When using a NAT connection, the virtual machine does not have its own external network IP address. However, the virtual machine can connect to computers from an external network using the standard TCP/IP protocol. In this case, the virtual machine uses the IP and MAC addresses of the physical computer.

It is worth noting that by default, a computer from the local physical network cannot connect to a virtual machine.

NAT connection is selected by default when creating a new virtual machine VMware Workstation.

Since the virtual machine does not have direct access to the network, VMware Workstation uses a DHCP service to assign IP addresses to virtual machines on a private network.

Virtual network management VMware Workstation carried out in the Virtual Network Editor, which is installed by default. You can launch Virtual Network Editor directly from the Start menu by selecting All Programs, then VMware and Virtual Network Editor. You can also launch Virtual Network Editor inside the interface VMware Workstation by selecting the Edit menu and Virtual Network Editor.

After launching the Virtual Network Editor, you will see a tab Summary. This tab displays all virtual networks used VMware Workstation.

automatic bridging. If the host machine, i.e. computer on which the software is installed VMware Workstation, has more than one physical Ethernet adapter, the first available physical adapter is automatically selected to be used in the VMnet0 virtual network. It is possible to add an exception to not use a specific physical adapter on the VMnet0 network.

Host Virtual Network Mapping. This tab is used to configure virtual networks in VMware Workstation. On this tab, for the VMnet0 network, you can specify the use of a specific physical adapter. For VMnet1 and VMnet8 networks, you can specify the subnet and DHCP options.

Liked the article? Share with friends!
Was this article helpful?
Yes
Not
Thanks for your feedback!
Something went wrong and your vote was not counted.
Thank you. Your message has been sent
Did you find an error in the text?
Select it, click Ctrl+Enter and we'll fix it!