I think that by default, dnsmasq will give out its own address as gateway to non-proxy requests, and the IP address of the proxy to proxied requests.
When that's not desirable, you've already discovered how to set the gateway option. The remaining piece of the puzzle is to assign a tag based-on the dhcp-range and match it in the gateway option. The syntax changes depending on which dnsmasq version you have, but it should be something like: dhcp-range=set:lowblock,192.168.1.8,192.168.1.127,255.255.255.128 dhcp-range=set:highblock,192.168.1.130,192.168.1.240,255.255.255.128 dhcp-option=tag:highblock,option:router,192.168.1.129 dhcp-option=tag:lowblock,option:router,192.168.1.1 On Mon, Sep 27, 2010 at 1:06 PM, Scott <[email protected]> wrote: > Sorry, typo on what I wrote here, the IP is 192.168.1.253. > > > > This did remind me though to ask, how do I specify a different gateway for > different dhcp ranges? > > > > *From:* [email protected] [mailto:[email protected]] > *Sent:* Monday, September 27, 2010 10:35 AM > > *To:* Scott > *Cc:* [email protected] > *Subject:* Re: [Dnsmasq-discuss] Single interface, multiple subnets... > > > > > > The interface eth0 is configured as such: > > Ip: 192.168.0.253 > > Mask: 255.255.255.128 > > Gateway 192.168.1.129 > > > > This configuration is wrong, unless you have more routing rules you're not > showing. The gateway needs to be local, which since eth0 is .0.253/25 means > something .0.xxx, not .1.xxx. > > > > > > Any help would be…helpful. ;-) > > > > Warm regards, > > Scott > > > _______________________________________________ > Dnsmasq-discuss mailing list > [email protected] > http://lists.thekelleys.org.uk/mailman/listinfo/dnsmasq-discuss > > >
