Export ip & MAC

Hello all,

I would like some help. I need to get ip and mac address of all dhcp leases to import them
to another mikrotik or export all info in a file format easy to process it.

Any ideas please.


Thank you

/ip dhcp-server lease export exports all statically configured items in a format directly applicable for re-import. With a file=something modifier, it will generate a file something.rsc which you can download, upload to the other router, and import there using /import something.rsc. The import does not gracefully resolve duplicities and other conflicts so use it with care.

/ip dhcp-server lease print detail displays all items, statically configured or dynamically assigned, in a slightly different format which you’ll need to modify using some text processor to make it usable for import as a static configuration. With a file=something modifier, it will generate a file something.txt which you can download.