[Dnsmasq-discuss] Listen to two interfaces?

/dev/rob0 rob0 at gmx.co.uk
Tue Nov 30 17:50:43 GMT 2010


On Tue, Nov 30, 2010 at 05:12:40PM +0100, Markus Bergholz wrote:
> i want
> dhcp-range=192.168.1.2,192.168.1.1,255.255.255.0,12h
> for both. but everytime i try to bridge, the hole network on server
> side don't work anymore.
> so i want to try without bridge.

Fine, just use separate netblocks for each physical segment. No need 
for bridging.

> could
> interface=eth0
> dhcp-range=192.168.1.2,192.168.1.1,255.255.0.0,12h
> interface=wlan0
> dhcp-range=192.168.2.2,192.168.2.1,255.255.0.0,12h
> work?

You have the end-addr argument numerically less than the start-addr. 
This is supposed to be a RANGE of addresses. Also, you have set each 
in a /16 (255.255.0.0 netmask), so those netblocks are overlapping.

You might need to read up a bit on IP networking basics: addresses, 
netmasks/CIDR and subnetting. This might work for what you want:

# eth0 being 192.168.4.1/24
interface=eth0
dhcp-range=192.168.4.128,192.168.4.191,255.255.255.0,12h
# wlan0 being 192.168.5.1/24
interface=wlan0
dhcp-range=192.168.5.64,192.168.5.127,255.255.255.0,12h

In that example I use addresses on subnetting boundaries rather than 
decimal numbering boundaries. The eth0 range could be described in 
CIDR terms as 192.168.4.128/26, and wlan0 range is 192.168.5.64/26. 
For NAT purposes, 192.168.4.0/23 covers them both.
-- 
    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