[Dnsmasq-discuss] DHCP for Multiple Subnets

Robert Sweetnam lists at fsck.eu
Wed May 29 10:57:53 BST 2013



----- Original Message -----
From: "Simon Kelley" <simon at thekelleys.org.uk>
To: dnsmasq-discuss at lists.thekelleys.org.uk
Sent: Wednesday, 29 May, 2013 10:50:40 AM
Subject: Re: [Dnsmasq-discuss] DHCP for Multiple Subnets

On 29/05/13 10:42, Robert Sweetnam wrote:
> Hello,
>
> I have been implementing dnsmasq on one host to serve multiple
> subnets. So far I have DNS configured and it is working perfectly.
> However for DHCP I am having difficulty in assigning a scope for each
> subnet.
>
> There are 3 subnets that I am trying to configure it for. However the
> host I have Dnsmasq running on only has one NIC.
>
> My dnsmasq has an IP address of 192.168.14.12 and my intention is to
> have it serve DHCP for subnets 192.168.13.0, .14.0 and .15.0
>
> The gateway for each of these is .254 so basically I'm wondering if
> for example a DHCP request comes from 192.168.13.254 it should
> acknowledge with an offer of an IP address in the 13.0 subnet.
>
>> From looking through the documentation and other configuration
>> examples I understand tagging might be of assistance. However I'm
>> not quite sure how this works. I've gotten as far as this and I'm
>> unsure what to do next:
>
> dhcp-range=set:snet13,192.168.13.100,192.168.13.250,12h
> dhcp-range=set:snet14,192.168.14.100,192.168.14.250,12h
> dhcp-range=set:snet15,192.168.15.50,192.168.15.100,12h
>
> Is what I am trying to achieve actually possible or is it necessary
> for each subnet to have its own interface?
>
> Many thanks in advance, Robert
>

Are your subnets all in the same broadcast-domain (ie the piece of 
virtual "wire" attached to eth0) or are they different physical networks 
connected via routers to the eth0 "wire"?

Cheers,

Simon.

Hi Simon,

They are the latter. That is they are different physical networks connected via routers. 

Best regards
Robert

> _______________________________________________ Dnsmasq-discuss
> mailing list Dnsmasq-discuss at lists.thekelleys.org.uk
> http://lists.thekelleys.org.uk/mailman/listinfo/dnsmasq-discuss
>


_______________________________________________
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