To add some filter rules in conf file

Simon Hobson dhcp1 at thehobsons.co.uk
Wed Oct 14 15:20:18 UTC 2009


Ashmath Khan wrote:

>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 ?

Did the client request those options ?

If not then the server won't send them. You can force it to (see the 
recent thread "how to get slp-directory-agent option working"). But 
if the client doesn't request it, there's a good chance it doesn't 
know what to do with it and will ignore it.

-- 
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.



More information about the dhcp-users mailing list