Linux.com

Dhcp server no free lease

Link to this post 17 Oct 13

I tried to run the dhcp server on ubuntu 13.04 but the server does not assign any address to my devices and this is the message from the server
ubuntu dhcpd: DHCPDISCOVER from 12:34:56:78:9a:bc via eth0: network 192.168.5.0/24: no free leases

this is my dhcpd.conf settings

authoritative;
DHCPDARGS=eth0;
max-lease-time 43200;
option ip-forwarding off;
option routers 192.168.5.x;
option domain-name-servers 192.168.5.x;
option domain-name "wifi.lan";
option subnet-mask 255.255.255.0;
option time-offset -6;


class "mojtel" {
match if binary-to-ascii(16,8,":",substring(hardware, 1, 6)) = "ab:cd:ef:12:34:56";
log (info, (binary-to-ascii (16,8,":",substring(hardware, 0, 4))));
}


class "android" {
match if (
( substring ( option host-name, 0, 7) = "Android" ) or
( substring ( option host-name, 0, 7) = "android" ) or
( substring ( option host-name, 0, 3) = "Z-P" )
);
}

subnet 192.168.5.0 netmask 255.255.255.0 {
# allow members of "mojtel";
pool {
deny unknown-clients;
# allow members of "android";
allow members of "mojtel";
range dynamic-bootp 192.168.5.xxx 192.168.5.yyy;
}
}

Who we are ?

The Linux Foundation is a non-profit consortium dedicated to the growth of Linux.

More About the foundation...

Frequent Questions

Join / Linux Training / Board