What is your interface configuration (`ip show address`)? What interface is your laptop connected to?
This allows you to reserve addresses for a computer on more than one subnet, i.e. if you connect to eth0 you get the reserved address in that network, if eth1, the reserved address from that network. It's not two addresses at once. Your dhcp client only asks for one IP address, and hence dnsmasq will only give it one. On Thu, Apr 26, 2012 at 11:51 AM, Luca Postregna <luca.postre...@gmail.com> wrote: > thanks for help. > > I added two dhcp-host line like this: > > dhcp-host=00:22:5f:d1:7c:28,00:26:b9:03:bc:3b,10.0.1.1,jarod > dhcp-host=00:22:5f:d1:7c:28,00:26:b9:03:bc:3b,172.16.1.1,jarod > > but dhcp server assign only first ip to my laptop. how can i solve? > > On Thu, Apr 26, 2012 at 4:04 PM, richardvo...@gmail.com > <richardvo...@gmail.com> wrote: >> >> Just use multiple dhcp-host lines. >> >> Also, the order is >> >> >> dhcp-host=[<hwaddr>][,id:<client_id>|*][,set:<tag>][,<ipaddr>][,<hostname>][,<lease_time>][,ignore] >> >> That is, the hostname comes after the IP address. And the netmask >> isn't specified explicitly, it's determined from the local interface >> configuration, or the DHCP proxy server. >> >> On Thu, Apr 26, 2012 at 5:45 AM, Luca Postregna >> <luca.postre...@gmail.com> wrote: >> > >> > Hi all, is there a way to configure dnsmasq to lease multiple ips in >> > different networks to a client? >> > >> > my goal is similar to >> > >> > dhcp-host=11:22:33:44:55:66,hostmane,192.168.1.2/24,172.16.0.2/16 >> > >> > can anybody help me about? >> > LP >> > >> > -- >> > >> > http://luca.postregna.name >> > Luca Postregna >> > >> > >> > _______________________________________________ >> > Dnsmasq-discuss mailing list >> > Dnsmasq-discuss@lists.thekelleys.org.uk >> > http://lists.thekelleys.org.uk/mailman/listinfo/dnsmasq-discuss >> > > > > > > -- > > http://luca.postregna.name > Luca Postregna > _______________________________________________ Dnsmasq-discuss mailing list Dnsmasq-discuss@lists.thekelleys.org.uk http://lists.thekelleys.org.uk/mailman/listinfo/dnsmasq-discuss