Can't get DHCPd to assign IPs to unknown clients

Posted by Jakobud on Server Fault See other posts from Server Fault or by Jakobud
Published on 2011-01-05T17:27:43Z Indexed on 2011/01/05 17:55 UTC
Read the original article Hit count: 324

Filed under:
|

I'm using Webmin to admin our DHCPd server. But I'm having a hard time getting it to assign IP addresses to unknown clients. The only way I can get it to assign an IP is to make sure a host is added to DHCPd as a host so that it gets a static-lease IP assigned to it.

I thought "Allow Unknown Clients" was the key, but it still isn't assigning IPs to unknown clients. I have a pool setup so that the unknown clients should get an IP between 10.20.0.200 - 10.20.0.249.

Here is the config file. What am I missing here?

allow unknown-clients;
# Primary DHCP server config

authoritative;
ddns-update-style none;

failover peer "dhcp-failover" {
    primary;
    address 10.20.0.30;
    port 647;
    peer address 10.20.0.25;
    peer port 647;
    max-response-delay 60;
    max-unacked-updates 10;
    load balance max seconds 3;
    mclt 3600;
    split 128;
}

subnet 10.20.0.0 netmask 255.255.255.0 {
    allow unknown-clients;
    option subnet-mask 255.255.255.0;
    option broadcast-address 10.20.0.255;
    option routers 10.20.0.100;
    option domain-name "ourdomain.com";
    option domain-name-servers 192.168.10.20;
    default-lease-time 86400;
    max-lease-time 86400;
    option ntp-servers 192.168.10.20;
    option time-offset -25200;
    pool {
        allow unknown-clients;
        failover peer "dhcp-failover";
        max-lease-time 86400;
        range 10.20.0.200 10.20.0.249;
        deny dynamic bootp clients;
        }
    host Server-myserver {
        option host-name "whatever.ourdomain.com";
        hardware ethernet 00:89:D4:35:4F:13;
        fixed-address 10.20.0.23;
        }

    }

© Server Fault or respective owner

Related posts about webmin

Related posts about dhcpd