Подключить виртуальную машину VMware в локальную сеть.

Подключить виртуальную машину VMware в локальную сеть.

VMware Workstation is a software that can be install on existing physical machine (generally PC) and can be used to emulate various operating systems. As of 2013 VMware workstation 9 is the latest version that is mostly used by IT professionals and newbies for learning and test purposes. There are many features that makes this software a great learning and testing tool. You can easily create virtual machines inside the VMware workstation and run various operating systems. There are a lot of network options within VMware workstation for configuring networks for virtual machines. You can connect VMware Workstation virtual machine to physical network. This allows to create real world testing scenario. You can run various virtual servers (like FTP, Mail Server, DHCP, etc.) and connect to the network. The network will assume that the virtual machine is separate physical host. Assuming you know how to install virtual machine, let’s get going.

Connect VMware Workstation Virtual Machine to Physical Network

I will show you the steps by connecting Windows XP machine to external network. The diagram below shows our scenario.

Читайте также  Сетевой мост VMware

VM-to-Physical-Network

Windows XP is installed as virtual machine in VMware Workstation 9. At first configure static IP address in Windows XP machine as 192.168.50.102 and gateway of router’s IP as 192.168.50.100. When testing servers static IP address will be mostly used.

win-XP-IP

Now open the virtual machine settings of Windows XP machine in VMware Workstation. Select Network Adapter in Hardware tab. Here, choose the option, Bridged: Connected directly to the physical network. Then click OK button. Note: – If you choose replicate physical network connection state, IP address of virtual machine is automatically changed if you moved between networks which is assigned by DHCP server of the particular network. This works if the machine is configured to get IP address automatically from DHCP in Local area connection properties.

physical-network-configuration

Your Windows machine is now connected to physical network. You can now Ping your default gateway (R1), and PC (Physical machine’s IP address) from Windows XP machine and vice-versa. You can also ping your virtual machine’s IP address from you machine, outside of VMware workstation application. If your configuration is right but it’s not pinging then type “ipconfig /flushdns” in the command prompt of PC (Physical machine). This will solve the problem by flushing (deleting) cache DNS records from PC.

Читайте также  Сетевой мост VMware

I had used «Bridged» for each VM but after the upgrade, I encountered connectivity problems. After I set the NIC to NAT, it started working.

Here is how I was able to resolve the issue and start using «Bridged» network adapter again:

  1. Go to File -> Edit -> Virtual Network Editor
  2. Use the Change Settings» button
  3. Highlight the first selection VMnet0
  4. Under VMnet Information choose the «Automatic Setting» button
  5. You will get a list of all of the adapters on your system.
  6. Uncheck ones that might be causing the issue.
  7. Click «Apply» then «OK»

Now, the «Bridged» setting should work or at least it did for me. Go back and change any that you had changed to NAT to get them working.

Сетевой мост VMware VMware bridged networking is a type of network connection which allows the virtual machine to act as a unique machine on the network in which other ph...

Сохрани, чтобы не потерять