<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=us-ascii">
<META content="MSHTML 6.00.2900.5880" name=GENERATOR></HEAD>
<BODY>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff
size=2></FONT> </DIV><BR>
<BLOCKQUOTE dir=ltr
style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #0000ff 2px solid; MARGIN-RIGHT: 0px">
<DIV class=OutlookMessageHeader lang=en-us dir=ltr align=left>
<HR tabIndex=-1>
<FONT face=Tahoma size=2><B>From:</B> dhcp-users-bounces@lists.isc.org
[mailto:dhcp-users-bounces@lists.isc.org] <B>On Behalf Of </B>Ashmath
Khan<BR><B>Sent:</B> Tuesday, October 20, 2009 9:51 AM<BR><B>To:</B> Users of
ISC DHCP<BR><B>Subject:</B> Re: To add some filter rules in conf
file<BR></FONT><BR></DIV>
<DIV></DIV>thanks Simon.<BR>
<DIV class=gmail_quote>
<BLOCKQUOTE class=gmail_quote
style="PADDING-LEFT: 1ex; MARGIN: 0pt 0pt 0pt 0.8ex; BORDER-LEFT: rgb(204,204,204) 1px solid">It
will work for ANY combination of tests you want. If you look carefully then
you've :<BR><BR>a class that matches if colour is red<BR>a class that
matches if colour isn't red and weight is fat<BR>a class that matches if
colour isn't red, weight isn't fat, and height is tall<BR>and the fourth
class that matches if none of the above are true.<BR><BR>Notice that the
last class matches if none of the previous classes match - by definition ANY
client will match exactly ONE class.<BR><BR>If you want a test for "option
is not present" then you can do something like :<BR>match if option colour
is not present<BR>match if option colour is present and colour is
red<BR>match if option colour is present and not colour is red and ...
<DIV class=im><BR></DIV></BLOCKQUOTE>
<DIV>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:<BR>rule 1 type dhcp-option<BR>rule 1 dhcp-option 60<BR>rule 1
match-str "*VIP*"<BR>rule 1 match-action discard<BR>etc<BR><SPAN
class=144141717-20102009><FONT face=Arial color=#0000ff
size=2> </FONT></SPAN></DIV>
<DIV><SPAN class=144141717-20102009><FONT face=Arial color=#0000ff size=2>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.</FONT></SPAN></DIV>
<DIV><SPAN class=144141717-20102009><FONT face=Arial color=#0000ff
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=144141717-20102009><FONT face=Arial color=#0000ff size=2>Jeff
Haran</FONT></SPAN></DIV>
<DIV><SPAN class=144141717-20102009><FONT face=Arial color=#0000ff
size=2>Brocade</FONT></SPAN></DIV>
<DIV><SPAN class=144141717-20102009><FONT face=Arial color=#0000ff
size=2></FONT></SPAN> </DIV>
<DIV><SPAN
class=144141717-20102009> </SPAN></DIV></DIV></BLOCKQUOTE></BODY></HTML>