mikrotik script find mac address specific octet

Dear All,

I’m looking for a script that parses DHCP lease information and adds IP addresses to an address list if the corresponding MAC address matches the pattern: x[26AE]:xx:xx:xx:xx:xx.

Example:
xA:xx:xx:xx:xx:xx
xE:xx:xx:xx:xx:xx
x2:xx:xx:xx:xx:xx
x6:xx:xx:xx:xx:xx

Any assistance would be greatly appreciated.

Regards,

http://forum.mikrotik.com/t/bridge-filter-for-private-mac-addresses/166024/10

Also 3, 7, B and F have private bit on…

Just this:

:local test "0F:0C:DE:AD:BE:EF" ; :if ($test~"^.[2367aAbBeEfF]:") do={ :put "fkng private"}

The "even" numbers are multicast MAC addresses ... so in principle should not be used by "normal" devices for unicast communication (which is vast majority) ... and "randomised MAC" is used in context of unicast communications.

So depending on context of use case by @rabienz, seeing "even" numbers might be violation of standards.

Fresh topic, just for completness of disscusion: http://forum.mikrotik.com/t/doubts-on-mac-address-on-bridge-uniqueness-laa-etc/182230/1