<div dir="ltr"><div class="gmail_default" style="font-family:tahoma,sans-serif"><span style="font-family:arial">On 25 June 2014 06:24, Albert ARIBAUD </span><span dir="ltr" style="font-family:arial"><<a href="mailto:albert.aribaud@free.fr" target="_blank">albert.aribaud@free.fr</a>></span><span style="font-family:arial"> wrote:</span><br>

</div><div class="gmail_extra"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">Hi David,<br>


<br>
Le Tue, 24 Jun 2014 23:50:54 +0100, David Joslin <<a href="mailto:davidj@nkcc.org.uk">davidj@nkcc.org.uk</a>> a<br>
écrit :<br>
<div class=""><br>
> Thanks for the reply, Simon.<br>
><br>
> How would I do that?<br>
><br>
> I already use the --dhcp-host option to allocate IP addresses by MAC<br>
> address for certain clients but these are all machines with just one IP<br>
> address on one VLAN. How would I allocate static IP addresses to these<br>
> access points when they require a different IP address per VLAN but all<br>
> with the same MAC address? Each VLAN is associated with a LAN bridge on the<br>
> machine running dnsmasq and I allocate DHCP addresses to the different<br>
> VLANs using the tag option in the --dhcp-range statements - for<br>
> example: dhcp-range=tag:br3,10.10.70.101,10.10.70.200,255.255.255.0,1440m.<br>
> This works fine. But I can't see how to allocate static IP addresses based<br>
> on VLAN membership.<br>
><br>
> Am I missing something obvious?<br>
<br>
</div>I don't know about missing anything obvious, but i) can you also show<br>
the dhcp-host options you use for one host? Also, just in case, try<br>
with a tag that does not match the name of an interface (and make sure<br>
that you change it in the VLANs' dhcp-range options as well as in the<br>
hosts' dhcp-host options).<br></blockquote><div><br></div><div><div class="gmail_default" style="font-family:tahoma,sans-serif">​Here's the configuration for the DHCP range used on one VLAN (on interface br1).</div>

<div class="gmail_default" style="font-family:tahoma,sans-serif">  interface=br1</div><div class="gmail_default" style="font-family:tahoma,sans-serif">  dhcp-range=tag:br1,10.10.20.101,10.10.20.200,255.255.255.0,1440m</div>

<div class="gmail_default" style="font-family:tahoma,sans-serif">  dhcp-option=tag:br1,3,10.10.20.1​</div><br></div><div><div class="gmail_default" style="font-family:tahoma,sans-serif">​Here's the configuration for a couple of hosts on that VLAN.</div>

<div class="gmail_default" style="font-family:tahoma,sans-serif">  dhcp-host=60:03:08:9D:3D:08,10.10.20.99</div><div class="gmail_default" style="font-family:tahoma,sans-serif">  dhcp-host=F0:CB:A1:86:D1:6E,10.10.20.100​</div>

<div class="gmail_default" style="font-family:tahoma,sans-serif"><br></div><div class="gmail_default" style="font-family:tahoma,sans-serif">What I thought Simon was suggesting was to allocate specific static addresses to the access points that are outside the ranges that are allocated to other clients. This would avoid the problem of dnsmasq allocating addresses to other clients that had already been allocated to the access points. What I'm missing here is how to reserve several addresses for a particular access point when all the requests use the same mac address. The requests will arrive on different interfaces (br0, br1, br2 etc) but I can't see how to use that in the dhcp-host configuration. That's why I think I'm missing something!</div>

<div class="gmail_default" style="font-family:tahoma,sans-serif"><br></div><div class="gmail_default" style="font-family:tahoma,sans-serif">Thanks for your help.</div><div class="gmail_default" style="font-family:tahoma,sans-serif">

<br></div><div class="gmail_default" style="font-family:tahoma,sans-serif">David</div></div><div class="gmail_default" style="font-family:tahoma,sans-serif"><br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">


<span class=""><font color="#888888">--<br>
Albert.<br>
</font></span><div class=""><div class="h5"><br>
_______________________________________________<br>
Dnsmasq-discuss mailing list<br>
<a href="mailto:Dnsmasq-discuss@lists.thekelleys.org.uk">Dnsmasq-discuss@lists.thekelleys.org.uk</a><br>
<a href="http://lists.thekelleys.org.uk/mailman/listinfo/dnsmasq-discuss" target="_blank">http://lists.thekelleys.org.uk/mailman/listinfo/dnsmasq-discuss</a><br>
</div></div></blockquote></div><br></div></div>