Community discussions

MikroTik App
 
Mirzaahmed
just joined
Topic Author
Posts: 1
Joined: Sun Nov 21, 2021 12:23 pm

Disabling ARP Entry

Sun Nov 21, 2021 12:25 pm

Hello.

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
 
ConnyMercier
Long time Member
Long time Member
Posts: 554
Joined: Tue Dec 17, 2019 1:08 pm

Re: Disabling ARP Entry

Tue Nov 23, 2021 2:24 am

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.
Exemple:
/ip arp print
 #    ADDRESS         MAC-ADDRESS       INTERFACE                                                                                                                                                
 0 DC 192.168.178.25 CA:25:07:F3:C9:A6 ether1   
 1 DC 192.168.178.26 CA:25:07:F3:C9:A7 ether1   
 2 DC 192.168.178.27 CA:25:07:F3:C9:A8 ether1 
 n DC 192.168.178.29 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 192.168.178.27 CA:25:07:F3:C9:A8 ether1
/ip arp remove numbers=2

Solution 2: Remove via "Identifier"

Exemple: Remove all with IP 192.168.88.66
/ip arp remove [find address=192.168.88.66]
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]
 
User avatar
k6ccc
Forum Veteran
Forum Veteran
Posts: 825
Joined: Fri May 13, 2016 12:01 am
Location: Glendora, CA, USA (near Los Angeles)

Re: Disabling ARP Entry

Wed Nov 24, 2021 6:52 pm

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.
RB4011iGS+, RB750Gr3, RB750r2, CRS326-24G-2S (in SwitchOS), CSS326-24G-2S, CSS106-5G-1S, RB260GS
Not sure if I beat them in submission, or they beat me into submission

Warning: I know enough to be dangerous...

Jim
 
ConnyMercier
Long time Member
Long time Member
Posts: 554
Joined: Tue Dec 17, 2019 1:08 pm

Re: Disabling ARP Entry

Wed Nov 24, 2021 7:46 pm

Sorry..

Who is online

Users browsing this forum: sniffs and 2 guests