How to do networking with VMWare Workstation or VMWare Fusion?
For clarity, let's assume that the host (the machine running vmware fusion or vmware workstation) has the ip of 192.168.0.10.
On every virtual machine there are three options:
Bridged (VM becomes visible to other machines beside the host. It has an IP like 192.168.0.11).
Nat (VM is visible only to the host, there is internet).
Host only (VM is visible only to the host, but no internet).
Do ipconfig or ifconfig.
vmnet8 is for NAT.
vmnet1 is for host-only.
These are whole networks for virtual machines. If nat is chosen, then the VM would be supplied an IP from the vmnet8 pool.
DHCP.
If 'bridged' is chosen, then the administrator of 192.168.0.1 must assign an address to the VM.
if 'nat' or 'host-only' is chosen, then:
(I'll describe how to do this on a mac):
goto:
$cd /Library/Application Support/VMware Fusion
stop vmware networking:
$sudo ./boot.sh --stop Let's suppose vmnet8 is 172.16.57.1 and vmnet1 is 172.16.163.1. I would like to change the network from 172.16.57.1 to 172.16.16.1 and I would like to specify a virtual machine with a specific IP. We're still in /Library/Application Support/VMware Fusion Then:$ grep 172.16.57 *locations:answer VNET_8_HOSTONLY_HOSTADDR 172.16.57.1 Then all files in the list must be changed.Then we go into /Library/Application Support/VMware Fusion/vmnet8/ Then the same: $ grep 172.16.57 *dhcpd.conf:subnet 172.16.57.0 netmask 255.255.255.0 {dhcpd.conf: range 172.16.57.128 172.16.57.254;dhcpd.conf: option broadcast-address 172.16.57.255;dhcpd.conf: option domain-name-servers 172.16.57.2;dhcpd.conf: option netbios-name-servers 172.16.57.2;dhcpd.conf: option routers 172.16.57.2;nat.conf:ip = 172.16.57.2nat.conf:# or ip = 172.16.57.2/24 All of them must be changed. If a specific VM must have a specific IP we go to:/Library/Application Support/VMware Fusion/vmnet8/dhcpd.conf and we add the following:(get the mac from the VM (ipconfig, ifconfig eth0)) host myhost { hardware ethernet 00:0C:29:B2:C9:69; fixed-address 172.16.16.16;} Then to renew the ip (ipconfig /release, ipconfig /renew for windows):sudo ifconfig vmnet downsudo ifconfig vmnet up The last thing is to start the vmware networking:sudo ./boot.sh --start Then to renew the ip inside the VM (ipconfig /release, ipconfig /renew for windows):sudo ifconfig vmnet downsudo ifconfig vmnet up