[Dnsmasq-discuss] Two subnets same ethernet

Simon Kelley simon at thekelleys.org.uk
Sun Feb 12 21:55:07 GMT 2012


On 12/02/12 19:44, Pete Ashdown wrote:
> I'm trying to DHCP two subnets, one ingres and one routable.  The routable is
> reserved for some VoIP phones, and they all have the same first three values
> of their mac addresses - "00:04:f2".  The following configuration doesn't
> work, as the phones are always assigned addresses in the "other" range.  Any
> help is appreciated.
> 
>      domain-needed
>      bogus-priv
>      dhcp-range=other,10.20.20.10,10.20.20.250,255.255.255.0,12h

use
       dhcp-range=other,#phones,10.20.20.10,10.20.20.250,255.255.255.0,12h

here, to tell dnsmasq not to use this ranger when "phones" is set.

>      dhcp-range=phones,177.77.177.70,177.77.177.94,255.255.255.224,12h
>      dhcp-mac=phones,00:04:f2:*:*:*
>      dhcp-option=option:ntp-server,0.0.0.0
>      dhcp-boot=net:phones,"http://provision/phones/"
>      dhcp-option=net:phones,66,"http://provision/phones/"
> 

NB. you've used the old-fashioned syntax for tags, so I've done the
same, in case you're using an old version of dnsmasq which doesn't
understand the clearer "tag:" and "set:" stuff.


Cheers,

Simon.

> _______________________________________________
> 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