Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Is it possible to have two DHCP Server on the same subnet for address two range of IP? Is it possible to configure one of this DHCP server to serve only a certain range of mac address ?

for example wanna to have the main DHCP Server that serve the range --> 100, and another DHCP with also a TFTP and PXE that server range ---> 250 that accept request only from a given list of range of mac addres ... Cani do this?

Is better to have only one DHCP Server on subnet and another TFTP/PXE Server, and then address the request from a list of given MAc address to this TFTP/PXE Server?

What's the best solution for assigning a range of IP and eventually a TFTP/PXE based on list of mac address ? Is it possible?

I use Linux and dhcp3-server...


share|improve this question
up vote 1 down vote accepted

You can do that in isc dhcpd using subclasses and pools. The man page has detailed examples.

   class "allocation-class-1" {
     match pick-first-value (option dhcp-client-identifier, hardware);

   class "allocation-class-2" {
     match pick-first-value (option dhcp-client-identifier, hardware);
     option root-path "samsara:/var/diskless/alphapc";
     filename "/tftpboot/netbsd.alphapc-diskless";

   subclass "allocation-class-1" 1:8:0:2b:4c:39:ad;
   subclass "allocation-class-2" 1:8:0:2b:a9:cc:e3;
   subclass "allocation-class-1" 1:0:0:c4:aa:29:44;

   subnet netmask {
     pool {
       allow members of "allocation-class-1";
     pool {
       allow members of "allocation-class-2";
share|improve this answer
Therefore is better use a single DHCP server insted of two ? – aleroot Aug 19 '10 at 7:23
You can do it any way because you should be able to prevent the leases from clashing. But i would go with one if not using failover just for the ease of management. – topdog Aug 19 '10 at 7:59

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.