advanced dhcpd.conf
Rabin Yasharzadehe
rabin at rabin.io
Tue Jun 10 11:50:20 IDT 2014
not a answer, but you can try and use the log
<http://www.linuxmanpages.com/man5/dhcp-eval.5.php#lbAH> option to debug
your conf file,
and make sure each function return what you expecting it to return.
also you have tools like dhcping & dhcpdump
which can help you debug the problem.
*--Rabin*
On Mon, Jun 9, 2014 at 10:14 AM, Erez D <erez0001 at gmail.com> wrote:
> i'm trying to match ip to macs
>
>
> e.g.:
> mac 00:11:22:33:44:01 -> 10.0.5.1
> mac 00:11:22:33:44:02 -> 10.0.5.2
> mac 00:11:22:33:44:03 -> 10.0.5.3
> mac 00:11:22:33:44:04 -> 10.0.5.4
>
>
>
> it does not seem to work
> is it possible to do that ?
>
>
> highlights of dhcpd.conf:
>
> class "vm" {
> match if binary-to-ascii (16,8,":",substring(hardware, 1, 5)) =
> "0:11:22:33:44";
> set lastMacByte=binary-to-ascii (10,8,":",substring(hardware, 6, 1);
> set vmName=concat("VM-",lastMacByte);
> set vmIp=concat("10.0.5.",lastMacByte);
> }
>
> and
>
> host vmName {
> fixed-address vmIp;
> }
>
> _______________________________________________
> Linux-il mailing list
> Linux-il at cs.huji.ac.il
> http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.cs.huji.ac.il/pipermail/linux-il/attachments/20140610/3607e81a/attachment.html>
More information about the Linux-il
mailing list