[Dnsmasq-discuss] multiple ips

richardvoigt at gmail.com richardvoigt at gmail.com
Thu Apr 26 21:12:52 BST 2012


Then you need to configure your client to make two requests (using two
locally-administered MAC addresses, probably).  The DHCPOFFER message
only carries one IP address.  That limitation isn't peculiar to
dnsmasq.

On Thu, Apr 26, 2012 at 2:48 PM, Luca Postregna
<luca.postregna at gmail.com> wrote:
> uhm...in need two ip addresses on same interface, only wlan0 for example.
>
>
> On Thu, Apr 26, 2012 at 9:46 PM, richardvoigt at gmail.com
> <richardvoigt at gmail.com> wrote:
>>
>> 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.postregna at 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, richardvoigt at gmail.com
>> > <richardvoigt at 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.postregna at 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 at lists.thekelleys.org.uk
>> >> > http://lists.thekelleys.org.uk/mailman/listinfo/dnsmasq-discuss
>> >> >
>> >
>> >
>> >
>> >
>> > --
>> >
>> > http://luca.postregna.name
>> > Luca Postregna
>> >
>
>
>
>
> --
>
> http://luca.postregna.name
> Luca Postregna
>



More information about the Dnsmasq-discuss mailing list