Sorry.. i missed that, client didn't request those options. Its working now. But I had these further:<br><br>1. Is it possible to group the options together so that I refer them by some name ? like in the below example instead of giving router-discovery and boot-size, I can just give a group name, which will select those options.<br>

<br>2.  is it possible to have wild chars in the search string ? like if I want to search the string "Phone*client" or "Alcatel?client" etc. I think i can use the existing eval expressions to search the strings, but then I need to parse these wild char strings, understand them, and apply eval expressions. Is there any direct method which would recognize wild chars ?<br>

<br>3. Say I have this rule below: And rule1 passes, rule2 fails, and I saw that it doesn't go into third pool i.e, rule2 deny one, which seems to be correct. It means once it finds a pool match, then it won't evaluate other pools. Is this understanding correct ? <br>

class "rule1" {<br>match if substring (option vendor-class-identifier, 0, 4) = "MSFT";<br>}<br><br>class "rule2" {<br>match if substring (option dhcp-option-overload, 0, 4) = "NSFT";<br>

}<br><br><br>subnet 192.168.1.0 netmask 255.255.255.0 {<br><br>pool {<br>option router-discovery off;<br>option domain-name-servers 192.168.1.254;<br>range 192.168.1.66;<br>allow members of "rule1";<br>}<br><br>

pool {<br>option router-discovery off;<br>option domain-name-servers 192.168.1.111;<br>range 192.168.1.100;<br>allow members of "rule2";<br>}<br><br>pool {<br>option router-discovery on;<br>option domain-name-servers 192.168.1.222;<br>

option boot-size 512;<br>range 192.168.1.200;<br>deny members of "rule2";<br>}<br><br><br>default-lease-time 86500;<br>max-lease-time 86500;<br>option routers 192.168.1.254;<br><br>}<br><br>thanks<br>Ashmath<br>

<br><br><div class="gmail_quote">On Wed, Oct 14, 2009 at 8:50 PM, Simon Hobson <span dir="ltr"><<a href="mailto:dhcp1@thehobsons.co.uk">dhcp1@thehobsons.co.uk</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">

<div class="im">Ashmath Khan wrote:<br>
<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
I tried this:<br>
class "rule1" {<br>
match if substring (option dhcp-client-identifier, 0, 5) = 01:00:19:7d:72;<br>
option time-offset -12345;<br>
option boot-size 65000;<br>
}<br>
subnet 192.168.1.0 netmask 255.255.255.0 {<br>
pool {<br>
allow members of "rule1";<br>
range 192.168.1.66;<br>
}<br>
default-lease-time 86400;<br>
max-lease-time 86400;<br>
option routers 192.168.1.254;<br>
option domain-name-servers 192.168.1.254;<br>
}<br>
<br>
=> 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 ?<br>
</blockquote>
<br></div>
Did the client request those options ?<br>
<br>
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.<div>

<div></div><div class="h5"><br>
<br>
-- <br>
Simon Hobson<br>
<br>
Visit <a href="http://www.magpiesnestpublishing.co.uk/" target="_blank">http://www.magpiesnestpublishing.co.uk/</a> for books by acclaimed<br>
author Gladys Hobson. Novels - poetry - short stories - ideal as<br>
Christmas stocking fillers. Some available as e-books.<br>
_______________________________________________<br>
dhcp-users mailing list<br>
<a href="mailto:dhcp-users@lists.isc.org" target="_blank">dhcp-users@lists.isc.org</a><br>
<a href="https://lists.isc.org/mailman/listinfo/dhcp-users" target="_blank">https://lists.isc.org/mailman/listinfo/dhcp-users</a><br>
</div></div></blockquote></div><br>