To add some filter rules in conf file

Ashmath Khan hashmat.email at gmail.com
Mon Oct 26 16:09:52 UTC 2009


Thanks everybody for the replies. I was on vacation.
I did try with the not in the expression, it does seem to work. Need to try
different cases.
Here is what I tried:
 subnet 192.168.1.0 netmask 255.255.255.0 {
 default-lease-time 86500;  max-lease-time 86500;  option routers
192.168.1.254;

 class "rule1" {  match if substring (option vendor-class-identifier, 0, 4)
= "MSFT";  }


 pool {  option router-discovery off;  option domain-name-servers
192.168.1.254, 192.168.1.202;  range 192.168.1.87;  allow members of
"rule1";  }
 class "rule2" {  match if substring (option dhcp-option-overload, 0, 1) =
"N" and not (substring (option vendor-class-identifier, 0, 4) = "MSFT");  }
 pool {  option router-discovery off;  option domain-name-servers
192.168.1.111;  range 192.168.1.117;  allow members of "rule2";  }
 class "rule2-A" {  match if not exists dhcp-option-overload and not
(substring (option dhcp-option-overload, 0, 4) = "NSFT") and not (substring
(option vendor-class-identifier, 0, 4) = "MSFT");  }
 pool {  option router-discovery on;  option domain-name-servers
192.168.1.222;  option boot-size 512;  range 192.168.1.237;  allow members
of "rule2-A";  }

 } thanks
Ashmath
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.isc.org/pipermail/dhcp-users/attachments/20091026/df678eca/attachment.html>


More information about the dhcp-users mailing list