Mac – Assign static IP to VMware Player guest on host-only network

networkingvirtual machinevmware-player

I have a VMware guest (Ubuntu 14.04) on a Windows 7 host that has a host-only network adapter (the 192.168.59.xxx address range), and every time I reboot the machine, it gets a new IP address assigned from VMware. How do I tell VMware to give the particular VM the same address every time?

Best Answer

See https://www.vmware.com/support/ws55/doc/ws_net_advanced_ipaddress.html

Basically, you have several alternatives:

  1. Set up a static ip address in the Linux guest.

  2. If that's the only guest you use, set up the DHCP on the Host to make it hand out just one address (go into the Virtual Network Editor, Edit > Virtual Network Settings > DHCP). But this is an ugly solution.

  3. The best solution would be a bit more complicated: edit the vmnetdhcp.conf file. This file follows the syntax of dhcpd.conf, you can check online how to do it. Basically you specify your guest's MAC address, and the IP address to be reserved for it.

Related Question