Ask Ubuntu is a question and answer site for Ubuntu users and developers. 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 have a quick question. I have a bunch of virtual machines (VMWare Workstation) running on an Ubuntu server and have found that VMWare NAT (DHCP) service is unreliable and slow. I have to use NAT instead of bridging because the server is in a data-center that does not have DHCP and I don't have enough static IP's for all the VMs.

Is it possible to setup the host (Ubuntu) to be a DHCP server but only for the local virtual machines?

The server has two network interfaces, so I'd set eth0 to be a static IP, which connects to the outside world, and eth1 to listen for DHCP. Now, I am thinking if I don't want DHCP to broadcast I would just not connect a cable to eth1 and setup the VM's to use bridging on eth1. That way DHCP would not broadcast through my network but be listening on that interface.

Would that setup work?

share|improve this question

Take a look at dnsmasq - the man dnsmasq page says it does DHCP serving with static address assignments.

share|improve this answer
Well, @thiesdiggity did dnsmasq solve your problem? Did the answer actually WORK? – waltinator Dec 25 '11 at 17:56
poor answer.... – H_7 Mar 7 '12 at 4:48

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.