how respond only to specific clients

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


>Date: Fri, 16 Jun 2006 09:55:25 +0800
>From: "Joey S. Eisma" <jeisma at pimes.com.ph>
>To: dhcp-users at isc.org
>Subject: how respond only to specific clients
>
>hi!
>
>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 
>server.
>
>anyone have sample configuration on this?
>
>
>thanks!
>
>
>joey
>

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 aa.bb.cc.dd.ee.ff; }
host foo2 { .... }
...

subnet 192.168.0.1 netmask 255.255.255.0 {
  pool {
    option routers 192.168.0.1;
    option ...
    ignore unknown-clients;
    range 192.168.0.10 192.168.0.254;
  }
}

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.

regards,
-glenn



More information about the dhcp-users mailing list