I didn’t mean anything, I only repeated what EdPA wrote here:
http://forum.mikrotik.com/t/bridge-auto-mac-issue/162131/1
This is the reason why we recommend setting bridge MAC manually, and all default configurations with bridge involved come out with the “admin-mac” set.
It means that the default (for devices with no configuration) is auto-mac=yes and admin-mac NOT set (empty, no value, the MAC is automatically generated because auto-mac=yes) , AND that since Mikrotik recommends setting bridge MAC manually, ANY device that has a default configuration (by Mikrotik) involving a bridge has the auto-mac=no and the admin-mac set to a value.
https://help.mikrotik.com/docs/spaces/ROS/pages/167706788/Default+configurations
example in RouterMode.txt:
/interface bridge
add name=bridge disabled=no auto-mac=yes protocol-mode=rstp comment=defconf;
:local bMACIsSet 0;
:foreach k in=[/interface find where !(slave=yes || name="ether1" || passthrough=yes || name="ether1" || name~"bridge")] do={
:local tmpPortName [/interface get $k name];
:if ($bMACIsSet = 0) do={
:if ([/interface get $k type] = "ether") do={
/interface bridge set "bridge" auto-mac=no admin-mac=[/interface get $tmpPortName mac-address];
:set bMACIsSet 1;
what this snippet does is:
- create a bridge interface (with auto-mac=yes)
- set a flag to 0
- loop through interfaces (excluding ether1)
- when an interface of type “ether” is found, if the flag is still 0:
4.1) set the bridge MAC to the found interface MAC
4.2) change auto-mac to no
4.3) set the flag to 1 (so that the MAC settings of the bridge is not changed when another interface of type ether is found in the loop)
These are pretty much equivalent to “manually set the MAC of the bridge to the current MAC of ether2”.