I'm writing simple program to configure and monitor DHCP server on my Ubuntu 12.04. What I'm trying to achieve that my physical machine will be DHCP server and my VM (virtual machine) get one lease (and I read that information in leases file).

I use isc-dhcp-server. I turned off network-manager during tests. I use VirtualBox to host VM, network is configured to use bridge adapter. Server starts OK, but when my VM is running I got following messages:

Jun 16 12:15:59 asus dhcpd: DHCPOFFER on to 08:00:27:15:26:a6 (ubuntu) via eth0
Jun 16 12:15:59 asus dhcpd: DHCPDISCOVER from 08:00:27:15:26:a6 (ubuntu) via eth0
Jun 16 12:15:59 asus dhcpd: DHCPOFFER on to 08:00:27:15:26:a6 (ubuntu) via eth0
Jun 16 12:16:12 asus dhcpd: DHCPDISCOVER from 08:00:27:15:26:a6 (ubuntu) via eth0

VM don't get any DHCPOFFERs at all. Any ideas how to solve this problem? Or different way to test DHCP server locally? I appreciate any help. Thanks in advance.


Here's my DHCP server configuration:


iface eth0 inet static  


ddns-update-style none;
default-lease-time 600;
max-lease-time 7200;

allow booting;
allow bootp;

subnet netmask {
  interface eth0;
  option routers;
  option subnet-mask;
  option broadcast-address;



Ok, I've found different solution. I use two virtual machines in Internal network. One of them use static IP address and has DHCP server configured. The second VM finds DHCP server and get IP from range.


I do not understand your question exactly. But If you want to config isc-dhcp-server on your host and also test that to know if your guest OS which you installed that on the Virtual box gets its ip address from your host. I suggest you to

1.set your guest to give its IP automatically.

2.set your connection to host only adapter

3.on the /etc/default/isc-dhcp-server change INTERFACES="eth0" to INTERFACES="vboxnet0"

4.on the /etc/dhcp/dhcp3 add all address based on the your vboxnet0 ip address. Also you can find some extra information in here but as I said you should change all the ip address based on the vboxnet0 ip address may bee

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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