[Dnsmasq-discuss] Listen to two interfaces?

/dev/rob0 rob0 at gmx.co.uk
Tue Nov 30 19:04:23 GMT 2010


On Tue, Nov 30, 2010 at 12:52:08PM -0600, Frederick C. Damen wrote:
> Query: How does dnsmasq associate the interface with the 
> dhcp-range?
> 
> I do not detect an explicit connection, i.e. tags shared between 
> config entries.  I assume the implicit association is that the IP 
> address assigned to the interface outside of dnsmasq, e.g. 
> ifconfig, needs to be within the address range within dhcp-range 

Within the netblock, yes, but it should not be within the range 
itself. Refer to my example below:

> > # eth0 being 192.168.4.1/24
> > interface=eth0
> > dhcp-range=192.168.4.128,192.168.4.191,255.255.255.0,12h

192.168.4.1 and the entire range are within 192.168.4.0/24.

> > # wlan0 being 192.168.5.1/24
> > interface=wlan0
> > dhcp-range=192.168.5.64,192.168.5.127,255.255.255.0,12h

192.168.5.1 and the entire range are within 192.168.5.0/24.

> assigned within dnsmasq. (and dnsmasq marks the interfaces IP 
> address as used). What happens to the dhcp-range that does not 
> include one of the interfaces ip addresses?

I don't know, but I would expect it to be logged as an error.
-- 
    Offlist mail to this address is discarded unless
    "/dev/rob0" or "not-spam" is in Subject: header



More information about the Dnsmasq-discuss mailing list