Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I need to configure various linux flavor NAT'ed guest vm's to have static ip addresses provided by the Ubuntu host.

The vmware documentation punts on this topic, deferring to "see the man pages for your linux distribution". But the generic pages for "my linux distro" do not know about the special stuff for vmware e.g. vmnet8.

Pointers from someone who just knows how to do this would be much appreciated.

Here is the /etc/vmware/vmnet8/dhcpd/dhcpd.conf:

allow unknown-clients;
default-lease-time 1800;                # default is 30 minutes
max-lease-time 7200;                    # default is 2 hours

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;
host vmnet8 {
        hardware ethernet 00:50:56:C0:00:08;
        option domain-name-servers;
        option domain-name "";
        option routers;

Fromt the dhcpd.conf documentation, we are supposed to add an entry for static hosts similar to the following:

   host mystatichostonee
      hardware ethernet 00:20:6B:C7:9B:E4;
   host mystatichosttwo
      hardware ethernet 00:23:7a:C7:9c:F2;

But notice that the vmnet8 entry in the vmware-generated dhcpd.conf already is set to fixed-address. I don't know how to add the specifics for my hosts to that vmnet8 entry: do they become nested?

share|improve this question
up vote 4 down vote accepted

If you don't have to fiddle with the special stuff for vmware, then I recommend installing your own DHCP server under your Ubuntu host. I believe that is what "see the man pages for your linux distribution" actually means.

Don't be afraid, installing your own DHCP server under your Ubuntu is super easy. You just need to install dnsmasq then use dnsmasq to provide to static ip addresses to NAT'ed guest vm's, and provide their static DNS domain name at the same time too. See

for details.

Basically, all you need to specify are:

00:16:3e:00:00:01 natvm1
00:16:3e:00:00:02 natvm2

I.e., their MAC address, static DNS domain name, and static ip addresses, provided that you follow the instructions above.


share|improve this answer
Now you mention it, I recall having usd dnmasq in the past. I'll try that again. – javadba Jul 1 '13 at 18:59
good luck. feel free to pop back here for questions or comment on the blog. – xpt Jul 2 '13 at 16:19

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .