I know that I can use the
For completeness: A "function" to check this is as easy as
>>> mac = netaddr.EUI('0123.4567.89ab') >>> mac_is_multicast = bool(mac.words & 0b01) # Is LSB set?
Similarly, you can check if a MAC address is locally administered with
>>> mac = netaddr.EUI('0123.4567.89ab') >>> mac_is_locally_administered = bool(mac.words & 0b10) # Is 2nd LSB set?