how respond only to specific clients

Glenn Satchell Glenn.Satchell at
Fri Jun 16 04:06:02 UTC 2006

>Date: Fri, 16 Jun 2006 09:55:25 +0800
>From: "Joey S. Eisma" <jeisma at>
>To: dhcp-users at
>Subject: how respond only to specific clients
>i need to configure dhcp to respond and give ip address only to specific 
>nic (mac addrs). if one nic requests for an address and is not on the 
>list. ignore this nic. this nic (client) should look for another dhcp 
>anyone have sample configuration on this?

All your hosts you want to supply dhcp to will need to be defined in a
host statement. You'll need one of these for each known host.

Something like this should do it:

host foo1 { hardware ethernet; }
host foo2 { .... }

subnet netmask {
  pool {
    option routers;
    option ...
    ignore unknown-clients;

Repeat for as many hosts and subnets as required.

You could also use classes if there was an easy way to classify your
desired hosts, eg by MAC prefix or client identifier or some other
unique thing. The the man page for dhcpd.conf and look for CLASSES and
SUB-CLASSES fo rexamples.


More information about the dhcp-users mailing list