Community discussions

MikroTik App
 
cstm
just joined
Topic Author
Posts: 1
Joined: Thu Sep 16, 2021 3:05 pm

ip/mac address to dhcp lease

Thu Sep 16, 2021 3:16 pm

Hello all,

I was wondering if it's possible to create a code for getting from ARP List the ip's and mac addresses to add them to dhcp-server/lease
I am putting in the terminal this line: ip dhcp-server lease > add address=172.18.xx.xx mac-address=F8:CA:xx:xx:xx:xx
which works but I have to do it manually in this case for each address.
Is there any fragment code that I can use, so that it will automatically get all the ip and their mac addresses to leases?

I apologize if it's an easy part but I am only a beginner on this.
I searched the website for this question but i got a bit confused, not sure if it's possible.

Thank you in advance!

Who is online

Users browsing this forum: No registered users and 15 guests