I have two virtual machines:

  1. Debian (Router) with one Bridged Adapter and three Internal Network adapters
  2. Ubuntu with one Internal Network adapter

I installed on Debian DHCP server, I'd like Ubuntu machine to get IP address from the DHCP server that is installed on Debian. But it is not working.

My configuration files:



#   The loopback network interface auto lo
iface lo inet loopback

#   The primary network interface allow-hotplug eth0
iface eth0 inet dhcp

#   servers
auto eth1
iface eth1 inet
static address

#   administration auto eth2

iface eth2 inet
static address

#   hotel guests
auto eth3
iface eth3 inet
static address 

And /etc/dhcp/dhcpd.conf

subnet netmask {
   option routers;
   option domain-name-servers;

restart dhcp and networking - no error

Ubuntu machine:


auto lo 
iface lo inet loopback

auto eth1
iface eth1 inet dhcp

next, service networking restart I get this message:

enter image description here

IP address is not assigned. Why? Give more information?

  • any ideas guys? – lukassz Dec 27 '15 at 16:08

How do you know that the NIC eth3 is attached to the same internal network as your Ubuntu Guest? Because of problems in NIC naming, you might very well have that eth3 is attached to a different internal network than your Ubuntu VM.

One way to solve this is to have your DHCP server listening on all internal interfaces, then the Ubuntu VM would probably get a DHCP offer.

Another solution is to specify, for the 4 adapters of the Debian VM, four different hardware implementations, then write appropriate udev rules to attach them to the appropriate names, eth1, eth2, eth3.

  • Ok, thanks for answer. How to put DHCP server to listen on all internal interfaces? – lukassz Jan 5 '16 at 9:40
  • @lukassz Which DHCP server are you using? Dnsmasq? Isc-dhcp-server? – MariusMatutiae Jan 5 '16 at 9:43
  • Isc-dhcp-server – lukassz Jan 5 '16 at 9:53
  • @lukassz Then modify the file /etc/default/isc-dhcp-server to contain a line like INTERFACES="eth1 eth2 ...". – MariusMatutiae Jan 5 '16 at 10:06
  • I do not mind it at this on eth1, eth2 (debian machine) addresses are set static? – lukassz Jan 5 '16 at 10:18

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.