[Dnsmasq-discuss] Single interface, multiple subnets...

richardvoigt at gmail.com richardvoigt at gmail.com
Mon Sep 27 19:24:33 BST 2010


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 <vivosomnio at comcast.net> 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:* richardvoigt at gmail.com [mailto:richardvoigt at gmail.com]
> *Sent:* Monday, September 27, 2010 10:35 AM
>
> *To:* Scott
> *Cc:* dnsmasq-discuss at lists.thekelleys.org.uk
> *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
> Dnsmasq-discuss at lists.thekelleys.org.uk
> http://lists.thekelleys.org.uk/mailman/listinfo/dnsmasq-discuss
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.thekelleys.org.uk/pipermail/dnsmasq-discuss/attachments/20100927/62dd182d/attachment-0001.htm 


More information about the Dnsmasq-discuss mailing list