<div dir="ltr"><span style="font-family:verdana,sans-serif">not a answer, but you can try and use the <a href="http://www.linuxmanpages.com/man5/dhcp-eval.5.php#lbAH">log</a> option to debug your conf file,<br>and make sure each function return what you expecting it to return.<br>
<br>also you have tools like dhcping & dhcpdump<br>which can help you debug the problem.</span><div class="gmail_extra"><br clear="all"><div><div dir="ltr"><b><font face="arial, helvetica, sans-serif">--<br>Rabin</font></b><br>
</div></div>
<br><br><div class="gmail_quote">On Mon, Jun 9, 2014 at 10:14 AM, Erez D <span dir="ltr"><<a href="mailto:erez0001@gmail.com" target="_blank">erez0001@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
i'm trying to match ip to macs<br>
<br>
<br>
e.g.:<br>
mac 00:11:22:33:44:01 -> 10.0.5.1<br>
mac 00:11:22:33:44:02 -> 10.0.5.2<br>
mac 00:11:22:33:44:03 -> 10.0.5.3<br>
mac 00:11:22:33:44:04 -> 10.0.5.4<br>
<br>
<br>
<br>
it does not seem to work<br>
is it possible to do that ?<br>
<br>
<br>
highlights of dhcpd.conf:<br>
<br>
class "vm" {<br>
match if binary-to-ascii (16,8,":",substring(hardware, 1, 5)) = "0:11:22:33:44";<br>
set lastMacByte=binary-to-ascii (10,8,":",substring(hardware, 6, 1);<br>
set vmName=concat("VM-",lastMacByte);<br>
set vmIp=concat("10.0.5.",lastMacByte);<br>
}<br>
<br>
and<br>
<br>
host vmName {<br>
fixed-address vmIp;<br>
}<br>
<br>
_______________________________________________<br>
Linux-il mailing list<br>
<a href="mailto:Linux-il@cs.huji.ac.il">Linux-il@cs.huji.ac.il</a><br>
<a href="http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il" target="_blank">http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il</a><br>
</blockquote></div><br></div></div>