I have two virtual machines:
- Debian (Router) with one Bridged Adapter and three Internal Network adapters
- 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:
Debian
/etc/network/interfaces
# 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 192.168.1.1
netmask 255.255.255.0
# administration auto eth2
iface eth2 inet
static address 192.168.2.1
netmask 255.255.255.0
# hotel guests
auto eth3
iface eth3 inet
static address 192.168.3.1
netmask 255.255.255.0
And /etc/dhcp/dhcpd.conf
subnet 192.168.3.0 netmask 255.255.255.0 {
eth3;
range 192.168.3.2 192.168.3.254;
option routers 192.168.3.1;
option domain-name-servers 192.168.1.2;
}
restart dhcp and networking - no error
Ubuntu machine:
/etc/network/interfaces
auto lo
iface lo inet loopback
auto eth1
iface eth1 inet dhcp
next, service networking restart
I get this message:
IP address is not assigned. Why? Give more information?