[Dnsmasq-discuss] Assign The IPs range accordingly to the MACs wildcard

Jima jima at beer.tclug.org
Fri Nov 2 00:33:48 GMT 2012


On 2012-11-01 18:04, marekjs wrote:
> Hi,
>
> I'm quite fresh with the Dnsmasq, that's why I'm asking... :)
>
> Is that possible to assign the range of IPs basis on the wildcard from
> the MAC range please?
> Exmpl.
> I would like to assign 192.168.0.2 to 10 to MACs 00:AA:*.*.*,* , then
> 192.168.0.11 to 20 to MACs 00:BB:*.*.*.* . only. "The rest of the World"
> should receive 192.168.0.21 to 255 for example.
>
> Could you help pls?

  Wouldn't it be approximately:

dhcp-mac=set:aa,00:aa:*:*:*:*
dhcp-mac=set:bb,00:bb:*:*:*:*
dhcp-range=tag:aa,192.168.0.2,192.168.0.10,255.255.255.0
dhcp-range=tag:bb,192.168.0.11,192.168.0.20,255.255.255.0
dhcp-range=192.168.0.21,192.168.0.254,255.255.255.0

  (You probably don't want to be using 192.168.0.255 as it'd typically 
be a broadcast address.)

  Add other config, season to taste, etc.

      Jima



More information about the Dnsmasq-discuss mailing list