[Dnsmasq-discuss] Serving Addresses on Multiple Subnets

Simon Kelley simon at thekelleys.org.uk
Thu Feb 7 16:40:33 GMT 2013


On 07/02/13 16:37, John Stowers wrote:
> 
> 
>     The trick to do it is to use "up" lines for the second and subsequent
>     addresses, so:
> 
>     iface eth1 inet static
>             address 192.168.1.1
>             netmask 255.255.255.0
>             network 192.168.1.0
>             broadcast 192.168.1.255
>             up ip addr add 192.168.21.2/24 <http://192.168.21.2/24> dev eth1
>             up ip addr add 192.168.22.2/24 <http://192.168.22.2/24> dev eth1
> 
> 
> Great, this seemed to work. Thanks for your help!
> 
> It is a minor annoyance that this cannot be accomplished in the dnsmasq
> config file - I was hoping to keep the configuration/association of
> cameras/ports in just one place.
> 
> Might that be possible in the future?
> 

The way to do it would be to introduce the concept of a "shared network"
to the dnsmasq configuration system, like ISC dhcpd has. That is
possibly in the future.


Cheers,

Simon.





More information about the Dnsmasq-discuss mailing list