Thanks Philips. I was on vacation.<br><br><div class="gmail_quote"><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><br>
The set Statement<br>
<br>
set variable = expression;<br>
<br>
The set statement stores the result of evaluating expression in a variable named variable.  This variable is recorded on the lease that is being processed, if a lease is being processed, and persists across restarts of the DHCP server.  If no lease is being processed, the set statement has no effect.<br>


<br>
After a variable has been set on a lease, even the expiration of the lease cannot erase the variable; only the unset statement can remove it.  Currently only integer and string values can be stored in variables.  Variables are scoped to the lease, so every lease can have a variable with the same name, and each of these variables will be distinct.<br>


<br>
<br>
The unset Statement<br>
<br>
unset variable;<br>
<br>
The unset statement removes the variable named variable from the lease that is being processed, if a lease is being processed.  If a lease is not being processed, this statement has no meaning.<br></blockquote><div> </div>

<div>I didn't undestand the lease part. Is this applicable only if lease is used in conf file ?<br><br></div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">


I haven't used string variables in 'match if' statements but presumably the comparisons would also work as intended if the values in both the 'set' and 'match if' statements were quoted.<br>
<br></blockquote><div>I did try both, keep quotes all places and removing quotes, it doesn't work. <br></div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">


<br>
Ray<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>
</blockquote></div><br>