dhcpd option remove for specific client

dhcpd option remove for specific client

Post by iwet.. » Fri, 08 Jul 2005 03:49:33



hello

is there the possibility to remove a option of a subnet for a specific
client?

 
 
 

dhcpd option remove for specific client

Post by Chris Lowt » Mon, 11 Jul 2005 00:56:06



> hello

> is there the possibility to remove a option of a subnet for a specific
> client?

No - you cant specify options to "exclude" from specific clients
directly, but you can get similar effects. For example, here's a
dhcpd.conf file that gives different default routes to a handful of
different devices in the 192.168.0.x subnet - based on their MAC address...
[addresses mangled to protect the guilty]

subnet 192.168.0.0 netmask 255.255.255.0
{
         option subnet-mask 255.255.255.0;
         option domain-name "mydomain.com";

        # MOST people use 192.168.0.1 as their default route

         option routers 192.168.0.1;

         option domain-name-servers 192.168.0.222;
         range dynamic-bootp 192.168.0.100 192.168.0.110;
         default-lease-time 3600;
         max-lease-time 7200;

        # BUT a FEW use 192.168.0.201 instead..

         group {
                 option routers 192.168.0.201;

                 host one { hardware ethernet 00:0a:e6:xx:xx:xx; }
                 host two { hardware ethernet 00:10:60:xx:xx:xx; }
                 host fif* { hardware ethernet 00:40:d0:xx:xx:xx; }
         }

Quote:}

Chris
--
http://www.veryComputer.com/
   Free, GPL'ed blocking of P2P traffic using Linux, IpTables and the
   ROPE match-module development language.