Page 1 of 1

Disabling ARP Entry

Posted: Sun Nov 21, 2021 12:25 pm
by Mirzaahmed

At the ip arp print, I have dynamic entries, from dhcp, and static.

My question is, how to filter and remove ONLY ONE static entry using one command

Re: Disabling ARP Entry

Posted: Tue Nov 23, 2021 2:24 am
by ConnyMercier
Yes it it posible to remove a single Entry via CLI

Solution 1: Manually remove ARP-Entry
First you need to Print all entries via the "/ip arp print" command.
This will give you a list with a unique ID for each ARP-Element.
/ip arp print
 #    ADDRESS         MAC-ADDRESS       INTERFACE                                                                                                                                                
 0 DC CA:25:07:F3:C9:A6 ether1   
 1 DC CA:25:07:F3:C9:A7 ether1   
 2 DC CA:25:07:F3:C9:A8 ether1 
 n DC CA:25:07:F3:C9:A9 ether1  

After that you can delete the wanted ARP-Element via the ID
For exemple to remove 2 DC CA:25:07:F3:C9:A8 ether1
/ip arp remove numbers=2

Solution 2: Remove via "Identifier"

Exemple: Remove all with IP
/ip arp remove [find address=]
Exemple: Remove all with MAC CA:25:07:F3:C9:A8
/ip arp remove [find mac-address=CA:25:07:F3:C9:A8]
Exemple: Remove all from interface ether1
/ip arp remove [find interface=ether1]

Re: Disabling ARP Entry

Posted: Wed Nov 24, 2021 6:52 pm
by k6ccc
Note that Conny's answer is based on RouterOS. This is the SwitchOS part of the forum, so that would not help if the OP is using SwitchOS.

Re: Disabling ARP Entry

Posted: Wed Nov 24, 2021 7:46 pm
by ConnyMercier