[Dnsmasq-discuss] Listen to two interfaces?
richardvoigt at gmail.com
richardvoigt at gmail.com
Tue Nov 30 16:00:21 GMT 2010
On Tue, Nov 30, 2010 at 10:39 AM, Markus Bergholz <markuman at gmail.com> wrote:
> Ok, i've did this
>
>
> ###
> log-queries
> interface=eth0
> dhcp-range=192.168.1.2,192.168.1.99,12h
> dhcp-option=3,192.168.1.1
> resolv-file=/etc/resolv.conf.dnsmasq
> listen-address=127.0.0.1
> bind-interfaces
> cache-size=150
> interface=wlan0
> dhcp-range=192.168.1.102,192.168.1.199,12h
> dhcp-option=3,192.168.1.101
> ###
What is the IP address and netmask of each interface (eth0 and wlan0)?
Right now, it looks as if you are trying to use the same address block
on two different networks, which breaks routing. In such a scenario,
you must use bridging. Or, you can use different subnets for devices
connected via eth0 and those connected via wlan0, and route between
them.
Until you fix routing, the kernel may use the wrong interface to
transmit packets generated by dnsmasq, which means devices won't get
leases.
>
> and disable for testing shorewall, it seems that the server deliver
> one ip adress from dnsmasq, but it don't receive at the client
> http://nopaste.info/73551f0a00.html
> in the messages.log from the client dhcpcd is just mentioned in two line.
> dhcpcd[1315]: version 5.2.8 starting
> dhcpcd[1315]: wlan0: broadcasting for a lease
>
> thats all...any clues?
>
> greetings
> markus
>
> On Mon, Nov 29, 2010 at 10:48 PM, Simon Kelley <simon at thekelleys.org.uk> wrote:
>> On 28/11/10 18:59, Markus Bergholz wrote:
>>>
>>> Hi
>>> is it possible that dnsmasq is listning to two interfaces (without
>>> bridge-utils!), so that they using same dhcp server?
>>
>> It is.
>>>
>>> That what my config atm looks like.
>>>
>>> interface=eth0
>>> listen-address=127.0.0.1
>>> bind-interfaces
>>> dhcp-range=192.168.1.2,192.168.1.99,12h
>>> dhcp-option=3,192.168.1.1
>>> resolv-file=/etc/resolv.conf.dnsmasq
>>> log-queries
>>> cache-size=150
>>>
>>> just interface=eth0,wlan0
>>> don't work for me, the client don't get an ip-adress.
>>>
>> You need two dhcp-range lines, for each interface and network.
>>
>> HTH
>>
>> Simon.
>>
>>
>
>
>
> --
> icq: 167498924
> XMPP|Jabber: markuman at jabber.ccc.de
>
> _______________________________________________
> Dnsmasq-discuss mailing list
> Dnsmasq-discuss at lists.thekelleys.org.uk
> http://lists.thekelleys.org.uk/mailman/listinfo/dnsmasq-discuss
>
More information about the Dnsmasq-discuss
mailing list