[Dnsmasq-discuss] Serving Addresses on Multiple Subnets
Simon Kelley
simon at thekelleys.org.uk
Thu Feb 7 16:28:29 GMT 2013
On 07/02/13 16:17, John Stowers wrote:
>
>
> It's not.
>
> >
> > Do I still need to run a dhcp-relay?
>
> No, just an address for each of your camera networks to eth1 on the
> Debian box.
>
>
> Sorry, I'm not clear what you mean here.
>
> Do you mean eth1 in on the debian box should have multiple IP addresses
I mean exactly that.
> defined in /etc/network/interfaces?
> Is this possible?
/etc/network/interfaces wasn't too good at doing this, last time I
looked, even though the kernel considers it perfectly normal.
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 dev eth1
up ip addr add 192.168.22.2/24 dev eth1
etc
Cheers,
Simon.
>
> Thanks,
>
> John
>
>
>
> _______________________________________________
> 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