Delete ARP trafic for arp table

From MikroTik Wiki
Jump to: navigation, search

Here are two scripts that blank ARP trafic and log the arp trafic. You have to scheduled the scripts.

   0    name="script1" owner="admin" 
        policy=ftp,reboot,read,write,policy,test,winbox,password run-count=0 
        source=
          {/ip arp print file=mauro; 
          :local i [/ip arp print count-only]; 
          :for a from=0 to=($i - 2) do={:log [/ip arp print $a ]}
   1   name="script2" owner="admin" 
       policy=ftp,reboot,read,write,policy,test,winbox,password 
       last-started=apr/20/2007 15:32:14 run-count=1 
        source=
           /ip arp print file=mauro; 
           :local i [/ip arp print count-only];
           :for a from= 0 to=($i - 2) do={[/ip arp remove $i]}