limit number of mac address with bridge.

Hi … every one.

I’m appreciated to pay if somebody can help me. :slight_smile:

I want a script that can limit number of mac address with bridge. For example my bridge contain port ether2, ether3. That script can limit this bridge communicate with maximum 1 mac address or 2 mac address.

If somebody have this script please contact me via info@corecasys.com. Thank you.

I emphasize again that I want to limit mac address on the bridge only not limit mac address in the ethernet interface. I used to use ARP in the interface. It was not available because when I set ARP to ‘reply only’. It work with the same subnet of the IP address in the ethernet interface. However in my bridge may contain many interface. Please accept my most extreme thanks for all your kindness in advanced.

I did find this using google. Not testet, but may work:

if ([:len [/ip arp find interface="Bridge1"]] > 2) do={
     /interface bridge set "Bridge1" arp=disabled
} else={
     /interface bridge set "Bridge1" arp=enabled
}

If number of arp on bridge “Bridge1” is higher than 2, disable arp on bridge, else enable arp.

bridge1 is the name of the interface bridge. I already do this script in the 'system > script' and then schedule it every 1 minute. It fail.

=========================================
if ([:len [/ip arp find interface="Bridge1"]] > 1) do={
/interface bridge set "Bridge1" arp=disabled
} else={
/interface bridge set "Bridge1" arp=enabled
}

Post your config. It may be other bride configuration.