<div dir="ltr">Thanks a lot Albert. This helps.<div><br></div><div>Thanks,</div><div>Siva</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Apr 6, 2016 at 12:26 AM, Albert ARIBAUD <span dir="ltr"><<a href="mailto:albert.aribaud@free.fr" target="_blank">albert.aribaud@free.fr</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi Siva,<br>
<br>
Le Tue, 5 Apr 2016 22:57:10 -0700<br>
<span class="">Sivabalakrishnan M <<a href="mailto:sivabalakrishnan.m@gmail.com">sivabalakrishnan.m@gmail.com</a>> a écrit:<br>
<br>
</span><span class="">> Thanks much Albert for the reply. Sorry, I meant 6 bytes for MAC and<br>
> it was a typo. Please find more details below.<br>
><br>
> We use --dhcp-script & --leasefile-ro options for maintaining lease<br>
> database instead of the default dnsmasq leases file. The issue that am<br>
> facing is - the script is invoked by Dnsmasq daemon with mac address<br>
> of size of more than 6 bytes as you can see below. Our script<br>
> validates the mac address and since it exceeds the 6 byte, we return<br>
> error.<br>
><br>
> Dnsmasq logs:<br>
> Apr 1 21:59:34 dnsmasq-dhcp[620]: DHCPSOLICIT(5)<br>
> 00:01:00:01:1e:97:03:eb:00:50:56:96:42:c2<br>
> Apr 1 21:59:34 dnsmasq-dhcp[620]: DHCPADVERTISE(5) 20:1::1:1b7<br>
> 00:01:00:01:1e:97:03:eb:00:50:56:96:42:c2<br>
> Apr 1 21:59:35 dnsmasq-dhcp[620]: DHCPREQUEST(5)<br>
> 00:01:00:01:1e:97:03:eb:00:50:56:96:42:c2<br>
> Apr 1 21:59:35 dnsmasq-dhcp[620]: DHCPREPLY(5) 20:1::1:1b7<br>
> 00:01:00:01:1e:97:03:eb:00:50:56:96:42:c2<br>
><br>
> The mac address passed to script by Dnsmasq is also<br>
> 00:01:00:01:1e:97:03:eb:00:50:56:96:42:c2 for IPv6 address<br>
> 20:1::1:1b7. The actual mac address is :50:56:96:42:c2. But I don't<br>
> know how 00:01:00:01:1e:97:03:eb:00: gets prefixed to the real mac<br>
> address. This is the problem am facing now. Please let me know if<br>
> this is expected in any scenario or if not, what could be the issue<br>
> here? Any help on this is really appreciated.<br>
<br>
</span>Look up man dnsmasq, and more specifically the --dhcp-script option.<br>
You'll see that for IPv4 the MAC address is passed, but for IPv6, it is<br>
the DUID, which is 12 to 20 bytes depending on the exact situation --<br>
in your case it seems to be 14 bytes.<br>
<br>
> Thanks,<br>
<br>
NP, HTH.<br>
<span class=""><br>
> Siva<br>
><br>
> On Tue, Apr 5, 2016 at 10:40 PM, Albert ARIBAUD<br>
> <<a href="mailto:albert.aribaud@free.fr">albert.aribaud@free.fr</a>> wrote:<br>
><br>
> > Hi,<br>
> ><br>
> > Le Tue, 5 Apr 2016 18:48:37 -0700<br>
> > Sivabalakrishnan M <<a href="mailto:sivabalakrishnan.m@gmail.com">sivabalakrishnan.m@gmail.com</a>> a écrit:<br>
> ><br>
> > > Hi,<br>
> > ><br>
> > > Could anyone please share the sample output of dnsmasq.leases file<br>
> > > for IPv6 entries? Is it possible to have mac address with size<br>
> > > more than 8 bytes for IPv6? Please let me know.<br>
> ><br>
> > MAC addresses are standard, have 6 bytes, not 8, and do not differ<br>
> > in IPv6 from what they are in IPv6.<br>
> ><br>
> > Are you maybe referring to the EUI-64 format address in SLAAC ? But<br>
> > that too is fixed-format, so you cannot have an EIU-64 address<br>
> > longer (or shorter, for that matter) than 8 bytes.<br>
> ><br>
> > Can you expand on what the actual problem is that you are<br>
> > encountering?<br>
> ><br>
> > > Thanks,<br>
> > > Siva<br>
> ><br>
> > Amicalement,<br>
> > --<br>
> > Albert.<br>
> ><br>
<br>
<br>
<br>
</span>Amicalement,<br>
<span class="HOEnZb"><font color="#888888">--<br>
Albert.<br>
</font></span></blockquote></div><br></div>