[Dnsmasq-discuss] Dnsmasq, multiple subnets/gateways and option 82

Chris Novakovic chris at chrisn.me.uk
Thu May 11 02:19:26 BST 2017


On 11/05/2017 01:40, Keith Lyons wrote:
> Currently I have  dhcp-option=3,10.192.4.1 set for the active subnet, I
> will need to add 10.192.5.1 and 10.192.6.1 for the others as they come
> online. I have seen some other posts about utilizing multiple nics, each
> assigned to one of the subnet, is this the best
> way to accomplish what I am attempting to do?

It's certainly the easiest. You'll find that the interface name can also
be used as a tag, allowing for the following setup:

interface=eth0,eth1,eth2
dhcp-range=tag:eth0,10.192.4.2,10.192.4.254,10m
dhcp-range=tag:eth1,10.192.5.2,10.192.5.254,10m
dhcp-range=tag:eth2,10.192.6.2,10.192.6.254,10m



More information about the Dnsmasq-discuss mailing list