I use this code
Code: Select all
/ip arp remove [/ip arp find address=172.16.1.254 and mac-address=AC:7B:A1:B3:D4:77 and dynamic=no ]
but its work in wrong way and removes both (172.16.1.254 & 172.16.1.253) from ARP table
i don't know why?
/ip arp remove [/ip arp find address=172.16.1.254 and mac-address=AC:7B:A1:B3:D4:77 and dynamic=no ]
/ip arp remove [/ip arp find address="192.168.19.76" and mac-address ="00:00:00:00:00:12" and dynamic=no]
[/ip arp find address=172.16.1.254 and mac-address=AC:7B:A1:B3:D4:77 and dynamic=no ]
this is not my problemHmm,
Can you try put the arguments in " quotes and see if that helps?
What ROS are you running?
:local "hotspot_user" $user;
:local "hotspot_address" $address;
/ip firewall nat remove [/ip firewall nat find src-address=$address];
/ip arp remove [/ip arp find address=$address and mac-address=$"mac-address" and dynamic=no ];
:log info "User $user with ip-address $address and MAC $"mac-address" Interface $interface logged out!"
/ip firewall nat add action=masquerade chain=srcnat out-interface-list=Data hotspot=auth comment="NAT" src-address=$address;
:log info "User $user with ip-address $address and MAC $"mac-address" Interface $interface logged in!"
ip arp add interface=$interface address=$address mac-address=$"mac-address";
nop if u read the Doc for scriptingthis wouldnt work as you have put the quotes after the $
$"mac-address";
should be
"$mac-address";
:log info "User $user with ip-address $address and MAC $"mac-address" Interface $interface logged in!"