[Dnsmasq-discuss] How to configure 2 different nets: 1 guestnet, 1 "known-host net"?

richardvoigt at gmail.com richardvoigt at gmail.com
Tue Feb 16 21:54:24 GMT 2010


On Tue, Feb 16, 2010 at 3:11 PM, Simon Kelley <simon at thekelleys.org.uk> wrote:
> richardvoigt at gmail.com wrote:
>
>>
>> I think it's this line, which appears in the dhcp-host description,
>> that is somewhat confusing:
>>
>> "--dhcp-host=lap,192.168.0.199 tells dnsmasq to always allocate the
>> machine lap the IP address 192.168.0.199. Addresses allocated like
>> this are not constrained to be in the range given by the --dhcp-range
>> option, but they must be on the network being served by the DHCP
>> server."
>>
>
> How about this:
>
> Addresses allocated like this are not constrained to be in the range
> given by the --dhcp-range option, but they must be
> in  a  subnet  which  has a dhcp-range associated with it. For subnets
> which don’t have a dynamically allocated address
> range, this is achieved by using the "static" keyword in the dhcp-range
> declaration.

I'd suggest replacing the last part with:

but they must be in the same subnet as some valid dhcp-range.  For
subnets which don’t need a pool of dynamically allocated addresses,
use the "static" keyword in the dhcp-range declaration.

Are tag (netname) conditions on the dhcp-range enforced on dhcp-hosts
falling in the same subnet?

>
> Cheers,
>
> Simon.
>



More information about the Dnsmasq-discuss mailing list