Community discussions

MikroTik App
 
mix359
just joined
Topic Author
Posts: 15
Joined: Fri Jan 04, 2013 8:20 pm

Dhcp server unaswered mac addresses

Thu Apr 09, 2020 10:09 pm

Hi to all,

I'm trying to find a way to obtain the last mac addresses that have requested an ip address to a dhcp server that is set to be static-only, to add it manually.

I know that I can temporary enable an address pool to see which address do the request and convert to static, but I doesn't want to give a false ip address that I need to change after, or catch the some other devices that is currently without ip (and I want to keep it in that state).

I've tried using the logs in debug mode for the dhcp section, but it's really hard to see only the unanswered query, because of the huge amount of renew request I get.
There's any better way? Something I can use to log only those request? Any tools or method?
Can I attach a script to some dhcp event type?

Thanks to all
Cheers
Daniele
 
pe1chl
Forum Guru
Forum Guru
Posts: 10568
Joined: Mon Jun 08, 2015 12:09 pm

Re: Dhcp server unaswered mac addresses

Thu Apr 09, 2020 10:49 pm

I did that in the past on ISC DHCP server but it involved having different pools and match classes.
Unfortunately this is a feature that the RouterOS DHCP server does not have...
(it does have vendor ID matching but that is more limited than what ISC DHCPD offers)