How to assign a static IP address to a VMware Workstation guest?

vmware-network
vmware-settings
vmware

(Dmitry Fedyuk) #1

Step 1

Find out the MAC address of the VMwware Workstation guest.

Step 2

Find out the range of IP addresses that the VMware Workstation’s virtual DHCP service provides on the VMnet8 (NAT) virtual network.

Step 3

Add the following block to the «Virtual ethernet segment 8» section of the vmnetdhcp.conf file:

host <your host name> {
    hardware ethernet <your MAC address from the Step 1>;
    fixed-address <an arbitrary IP address from the Step 2 range>;
}

In my case:

host ubuntu {
    hardware ethernet 00:0C:29:48:38:8C;
    fixed-address 192.168.95.132;
}
  • I have the 00:0C:29:48:38:8C MAC address.
  • I have the 192.168.95.128 - 192.168.95.254 range, and I have chosen the 192.168.95.132 IP address.

Step 4

Restart the «VMware DHCP Service» in your Windows host:


How to access a VMware Workstation's Ubuntu guest from a Windows host via SSH?
How to access a PostgreSQL database in a VMware Workstation guest from a Windows host?
How to access a Discourse web server in a VMware Workstation guest from a Windows host?
How to use VMware Workstation with Discourse: the most important articles
(Dmitry Fedyuk) #2

See also: