set doesn't work when used for client classing

Ashmath Khan hashmat.email at gmail.com
Tue Oct 20 13:44:30 UTC 2009


I tried adding log:
log (info, kind);
Does anybody know where does it log to ? thanks.

On Tue, Oct 20, 2009 at 6:51 PM, Ashmath Khan <hashmat.email at gmail.com>wrote:

> Hello,
>
> Can somebody please let me know why set doesn't work in the following case
> ?
> I don't see any response from dhcpd, it should have choosen a pool for
> class "Crule1". Even if it didn't match it should have choosen from
> "Crule2A". But no response. Am I missing something ?
> Here is the conf file:
> subnet 192.168.1.0 netmask 255.255.255.0 {
>
> default-lease-time 86500;
> max-lease-time 86500;
> option routers 192.168.1.254;
>
> set kind = 0;
>
> if substring (option vendor-class-identifier, 0, 4) = "MSFT" {
> set kind = 1;
> } elsif substring (option dhcp-option-overload, 0, 4) = "MSFT" {
> set kind = 2;
> } elsif not exists dhcp-option-overload {
> set kind = 21;
> }
>
>
> class "Crule1" {
> match if kind = "1";
> }
>
> 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 "Crule1";
> }
>
> class "Crule2" {
> match if kind = "2";
> }
>
> pool {
> option router-discovery off;
> option domain-name-servers 192.168.1.111;
> range 192.168.1.117;
> allow members of "Crule2";
> }
>
> class "Crule2A" {
> match if kind = "0";
> }
>
> 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 "Crule2A";
> }
>
>
> }
>
> thanks
> Ashmath
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.isc.org/pipermail/dhcp-users/attachments/20091020/cf73a0db/attachment.html>


More information about the dhcp-users mailing list