Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

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
add comment

1 Answer

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

share|improve this answer
1  
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
add comment

Your Answer

 
discard

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.