To add some filter rules in conf file

Ashmath Khan hashmat.email at gmail.com
Wed Oct 14 10:55:45 UTC 2009


Hi,

I tried this:
class "rule1" {
match if substring (option dhcp-client-identifier, 0, 5) = 01:00:19:7d:72;
option time-offset -12345;
option boot-size 65000;
}
subnet 192.168.1.0 netmask 255.255.255.0 {
pool {
allow members of "rule1";
range 192.168.1.66;
}
default-lease-time 86400;
max-lease-time 86400;
option routers 192.168.1.254;
option domain-name-servers 192.168.1.254;
}

=> it didn't work completely. I did get dhcp offer message but the options:
time-offset and boot-size were not sent as part of dhcp offer. Any reasons ?
How do I make it work ?

thanks
Ashmath

On Tue, Oct 13, 2009 at 8:18 PM, Simon Hobson <dhcp1 at thehobsons.co.uk>wrote:

> Ashmath Khan wrote:
>
>  I want to add some filter rules into the configuration file.
>> For example, If I find string "Amino" in the option
>> dhcp-client-identifier, then the range would be  A, options B and if the
>> string is "Phone*" then the range would be C and options D.
>>
>
> Look at the section on classes in "man dhcpd.conf"
>
> --
> Simon Hobson
>
> Visit http://www.magpiesnestpublishing.co.uk/ for books by acclaimed
> author Gladys Hobson. Novels - poetry - short stories - ideal as
> Christmas stocking fillers. Some available as e-books.
> _______________________________________________
> dhcp-users mailing list
> dhcp-users at lists.isc.org
> https://lists.isc.org/mailman/listinfo/dhcp-users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.isc.org/pipermail/dhcp-users/attachments/20091014/fa4068b2/attachment-0001.html>


More information about the dhcp-users mailing list