Thursday, March 1, 2007

Bridge mode for VMWare Player

This is how to set guest OS to use bridged mode (for example installing Trixbox, see http://arnold.siboro.org/blog/en/?p=41).

Guest OS is Windows 2003 Server with two NICs, one connected to global network, one to private network. The guest OS should be connected via bridged connection to private network.

Go to VMWare Player install directory and run vmnetcfg.exe. Click "自動ブリッジ" tab and see the virtual NIC that is bridged (usually, or perhaps always, VMnet0). Then click "ホスト仮想ネットワークの割当", and at VMnet0 select the host OS NIC that is connected to private network.
Then start VMWare player with the guest OS, set the player's Ethernet to Bridged. Settings are finished for host OS and player side.
Now go to guest OS and set the network connection accordingly. For example, if the host OS is CentOS (or other Linuxes), set /etc/sysconfig/network-scripts/ifcfg-eth0 to something like this:


DEVICE=eth0
ONBOOT=yes
BOOTPROTO=static
HWADDR=00:0C:29:03:7A:9D
IPADDR=172.31.31.3
NETMASK=255.255.255.0
NETWORK=172.31.31.0
BROADCAST=172.31.31.255
GATEWAY=172.31.31.1


Reference:
http://www37.tok2.com/home/nobusan/multi_boot/vmware/vmware.html

No comments: