To add some filter rules in conf file

Jeff Haran jharan at Brocade.COM
Tue Oct 20 17:20:59 UTC 2009



________________________________
From: dhcp-users-bounces at lists.isc.org [mailto:dhcp-users-bounces at lists.isc.org] On Behalf Of Ashmath Khan
Sent: Tuesday, October 20, 2009 9:51 AM
To: Users of ISC DHCP
Subject: Re: To add some filter rules in conf file

thanks Simon.
It will work for ANY combination of tests you want. If you look carefully then you've :

a class that matches if colour is red
a class that matches if colour isn't red and weight is fat
a class that matches if colour isn't red, weight isn't fat, and height is tall
and the fourth class that matches if none of the above are true.

Notice that the last class matches if none of the previous classes match - by definition ANY client will match exactly ONE class.

If you want a test for "option is not present" then you can do something like :
match if option colour is not present
match if option colour is present and colour is red
match if option colour is present and not colour is red and ...

But say I want to discard client(not to choose any pool) if  it matches a option and so on. How do I put that rule ? like this example:
rule 1 type dhcp-option
rule 1 dhcp-option 60
rule 1 match-str "*VIP*"
rule 1 match-action discard
etc

I assume you could construct the conditionals in the class statements such that those clients did not match any class. If all pools are conditional on membership in some class, then clients that don't match any class wouldn't get any lease.

Jeff Haran
Brocade


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.isc.org/pipermail/dhcp-users/attachments/20091020/794a5d6c/attachment.html>


More information about the dhcp-users mailing list