VMware Interfaces/IP Addressing

December 19th, 2009

In testing some virtual machines with multiple network cards under VMware (namely Fusion, but this information seems to apply to all variants of VMware Workstation on all platforms), I found I needed to use the NAT’d and Host-Only network interfaces.  While under other platforms, it may be easier to find, I had a hard time determining which interface was what, and what IP subnet it used (I was needing static IPs on the VM’s network cards).

As it appears, this information is stored in configuration files, as it is normally used for DHCP purposes on those interfaces.

The proper subnets can be found as follows.  I have only tested this on Mac OS X, the Linux information is merely provided for reference, as I found it mentioned elsewhere.

Linux:
/etc/vmware/vmnet1/dhcp/dhcp.conf (Host-Only)
/etc/vmware/vmnet8/dhcp/dhcp.conf (NAT)

Mac OS X:
/Library/Application Support/VMware Fusion/vmnet1/dhcpd.conf (Host-Only)
/Library/Application Support/VMware Fusion/vmnet8/dhcpd.conf (NAT)

These files will show you the DHCP subnet and range on those interfaces in the event you need to know/use IPs in those subnets in your VMs.

Tags: , , , , , ,
Posted in Tech Stuff | Comments (0)

Leave a Reply

You must be logged in to post a comment.

Recent Posts