How to get MAC of host (not via ARP list)

Hello dear Mikrotik admins!

Is there a way how to get MAC address by IP via ping or something except “[/ip arp get [find address=$ipAddr] mac-address]” ?

Thanks!

Hey. You can look it in switch tab in active hosts. Try to implement it in your script with “get” function.

Hi. Can you tell me how exactly I can do it? I do not understand how can I can associate MAC’s from that table with particular IP.

You cannot, but it was not easy to understand that you wanted an IP<->MAC address maping from your original post given that the title of the topics doesn’t mention IP address at all.

In the arp table there are translations for active IP addresses; if the address has been inactive for some time, the mapping is dropped from the table. Describe in more detail why the method you have found is not satisfactory for you.

Yes, my question was not clear. Sorry for that:)

I am bridging network I am not in. It is transparent bridge. So ARP list is empty (only local addresses are there).

I need somehow get MAC address for particular IP, which is added to Firewall address list by firewall rule.

Is it possible? I can arp-ping that IP from router. Maybe there is a way to parse “/ping arp-ping” output?

You can use something like ip source guard implemented in Cisco switches. Or you have to know what is IP and associate it to mac you see in mac address table.