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!