<div class="gmail_extra">uhm...in need two ip addresses on same interface, only wlan0 for example.<br><br><div class="gmail_quote">On Thu, Apr 26, 2012 at 9:46 PM, <a href="mailto:richardvoigt@gmail.com">richardvoigt@gmail.com</a> <span dir="ltr"><<a href="mailto:richardvoigt@gmail.com" target="_blank">richardvoigt@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">What is your interface configuration (`ip show address`)?  What<br>
interface is your laptop connected to?<br>
<br>
This allows you to reserve addresses for a computer on more than one<br>
subnet, i.e. if you connect to eth0 you get the reserved address in<br>
that network, if eth1, the reserved address from that network.  It's<br>
not two addresses at once.<br>
<br>
Your dhcp client only asks for one IP address, and hence dnsmasq will<br>
only give it one.<br>
<br>
On Thu, Apr 26, 2012 at 11:51 AM, Luca Postregna<br>
<div class="HOEnZb"><div class="h5"><<a href="mailto:luca.postregna@gmail.com">luca.postregna@gmail.com</a>> wrote:<br>
> thanks for help.<br>
><br>
> I added two dhcp-host line like this:<br>
><br>
> dhcp-host=00:22:5f:d1:7c:28,00:26:b9:03:bc:3b,10.0.1.1,jarod<br>
> dhcp-host=00:22:5f:d1:7c:28,00:26:b9:03:bc:3b,172.16.1.1,jarod<br>
><br>
> but dhcp server assign only first ip to my laptop. how can i solve?<br>
><br>
> On Thu, Apr 26, 2012 at 4:04 PM, <a href="mailto:richardvoigt@gmail.com">richardvoigt@gmail.com</a><br>
> <<a href="mailto:richardvoigt@gmail.com">richardvoigt@gmail.com</a>> wrote:<br>
>><br>
>> Just use multiple dhcp-host lines.<br>
>><br>
>> Also, the order is<br>
>><br>
>><br>
>> dhcp-host=[<hwaddr>][,id:<client_id>|*][,set:<tag>][,<ipaddr>][,<hostname>][,<lease_time>][,ignore]<br>
>><br>
>> That is, the hostname comes after the IP address.  And the netmask<br>
>> isn't specified explicitly, it's determined from the local interface<br>
>> configuration, or the DHCP proxy server.<br>
>><br>
>> On Thu, Apr 26, 2012 at 5:45 AM, Luca Postregna<br>
>> <<a href="mailto:luca.postregna@gmail.com">luca.postregna@gmail.com</a>> wrote:<br>
>> ><br>
>> > Hi all, is there a way to configure dnsmasq to lease multiple ips in<br>
>> > different networks to a client?<br>
>> ><br>
>> > my goal is similar to<br>
>> ><br>
>> > dhcp-host=11:22:33:44:55:66,hostmane,<a href="http://192.168.1.2/24,172.16.0.2/16" target="_blank">192.168.1.2/24,172.16.0.2/16</a><br>
>> ><br>
>> > can anybody help me about?<br>
>> > LP<br>
>> ><br>
>> > --<br>
>> ><br>
>> > <a href="http://luca.postregna.name" target="_blank">http://luca.postregna.name</a><br>
>> > Luca Postregna<br>
>> ><br>
>> ><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>
>> ><br>
><br>
><br>
><br>
><br>
> --<br>
><br>
> <a href="http://luca.postregna.name" target="_blank">http://luca.postregna.name</a><br>
> Luca Postregna<br>
><br>
</div></div></blockquote></div><br><br clear="all"><div><br></div>-- <br><div><br></div><a href="http://luca.postregna.name" target="_blank">http://luca.postregna.name</a><br>Luca Postregna<br><br>
</div>