What's new

DNSMasq - Group dhcp assignment by Mac header ?

  • SNBForums Code of Conduct

    SNBForums is a community for everyone, no matter what their level of experience.

    Please be tolerant and patient of others, especially newcomers. We are all here to share and learn!

    The rules are simple: Be patient, be nice, be helpful or be gone!

busch09

Regular Contributor
Hi,

I have a few hikvision cameras. They have only a few mac headers:
C4:2F:90
C0:56:E3
BC:AD:28
B4:A3:82
...

Is it possible to use dnsmasq to autoassign IP in a certain segment per these mac addresses?
Eg. all hikvision cameras get assigned an IP only between 192.168.1.100 and 192.168.1.200?

cheers
chris
 
According to the dnsmasq man page entry for --dhcp-host:
Ethernet addresses (but not client-ids) may have wildcard bytes, so for example --dhcp-host=00:20:e0:3b:13:*,ignore will cause dnsmasq to ignore a range of hardware addresses.
So it looks like it might be possible with a bit of work.
 

Sign Up For SNBForums Daily Digest

Get an update of what's new every day delivered to your mailbox. Sign up here!
Top