Tuesday, September 25, 2012

How to bridge networking in VMware player

 In order to use Samba share between network (other machines) it has to be the same subnet and dedicated IP address it won't work in NAT so it requires the VM to have a bridge connection. The VMware has a problem with the bridge networking when switch to the bridge I cannot ping the other machine but with NAT it works.
Here is how to do it.
http://ciscoshizzle.blogspot.ca/2012/08/vmware-player-404-bridged-network.html
 VMWare Player 4.0.4 Bridged network Editor, vmnetcfg.exe
Not necessarily a Cisco post, but I came across a connectivity issue when building Cisco Unified Presence server vritual machine. I was building the virtual machine using a bridged network and for the life of me was unable to ping it from anywhere within my network. As always the solution was simple, but the research extensive.

The problem was that my host machine has multiple network interfaces as most machines do; loopback, wireless, and ethernet, if not more). Under the hood, vmware player uses vmnet0 as the virtual interface that bind to an interface on your host machine. Contrary to vmnet1 (used for host-only), and vmnet8 (used for NAT), vmnet0 is not displayed when going into your host's control panel. The problem with connectivity not working in bridged mode is that the vmnet0 interface was binding to the wrong host interface.

To change this (as it is set to automatic per default), you will need to obtain a file called "vmnetcfg.exe". For some reason, this file is NOT installed when installing vmplayer.

Obtain it as follows:

extract the installer file (for 4.0.4 ; VMware-player-4.0.4-744019.exe), from a command prompt;

 C:\Temp\vmware>VMware-player-4.0.4-744019.exe /e extract

this has just extracted the installer file in a directory called "extract".

Browse to the extract directory and search for an archive called "network". The vmnetcfg.exe file is in it, so just extract it out of that archive, like you normally would.  Stick the vmnetcfg.exe file into

C:\Program Files (x86)\VMware\VMware Player

 Now it can be run and edited as the screen shot below shows, manually bridge it to the network interface you want, changing it is instantaneous.
NEED TO CHANGE TO BRIDGE NETWORKING BEFORE STARTS VM for some reasons it does not work after the VM is launched. We should be able to change it to either NAT or Bridge network.

No comments:

Post a Comment