<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
</head>
<body bgcolor="#ffffff" text="#000066">
<tt>Is there a method to intelligently assign a 'fixed-address' based
on a client's 'dhcp-client-identifier'?<br>
<br>
dhcpd.conf says...<br>
<br>
</tt>
<pre><tt><strong>SETTING</strong> <strong>PARAMETER</strong> <strong>VALUES</strong> <strong>USING</strong> <strong>EXPRESSIONS</strong>
Sometimes it's helpful to be able to set the value of a DHCP server
parameter based on some value that the client has sent. To do this,
you can use expression evaluation. The <strong><a
href="http://www.daemon-systems.org/man/dhcp-eval.5.html">dhcp-eval(5)</a></strong> manual page
describes how to write expressions. To assign the result of an evalu-
ation to an option, define the option as follows:
<span class="underline">my-parameter</span> <strong>=</strong> <span
class="underline">expression</span> <strong>;</strong>
For example:
ddns-hostname = binary-to-ascii (16, 8, "-",substring (hardware, 1, 6));
But if I try similar assignment with fixed-address....
fixed-address = 10.100.20.(substring(option dhcp-client-identifier,2,1));
...I get the following error....
/etc/dhcpd.conf line 260: = (61): expecting IP address or hostname
fixed-address =
^
Configuration file errors encountered -- exiting
</tt></pre>
<tt><br>
</tt>
</body>
</html>