Sungju's Slow Life

Personal journal

How to use fixed DHCP address on VMware Fusion 4/5

There’s a time you want to use fixed address even for your NATed VM guest. In the case of VMware, you can achieve this by modifying configuration file in ‘/Library/Preferences/VMware Fusion/vmnet8’. vmnet8 is the virtual interface for NATed guests. You can find what ranges are currently applied for this virtual guests by checking dhcpd.conf.

$ cat '/Library/Preferences/VMware Fusion/vmnet8/dhcpd.conf'
subnet netmask {
        option broadcast-address;
        option domain-name-servers;
        option domain-name localdomain;
        default-lease-time 1800;                # default is 30 minutes
        max-lease-time 7200;                    # default is 2 hours
        option netbios-name-servers;
        option routers;

To set specific IP for a guest, you should check guest’s MAC address first. You can find it in the guest’s settings button or by running ‘ifconfig’ from the guest. In this case, I want to use for my guest. So, I added the below lines in dhcpd.conf.

$  sudo vi '/Library/Preferences/VMware Fusion/vmnet8/dhcpd.conf'
host ubuntu64-vm {
        hardware ethernet 00:0C:29:CC:A4:96;

Some document says it will be applied when you restart VMWare Fusion, but in my case, I had to restart the Mac.

Leave a Reply

Please log in using one of these methods to post your comment: Logo

You are commenting using your account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.

About Me

A software engineer who loves any technologies that makes life easier. That’s why I love Linux and Mac at the same time.


%d bloggers like this: