Skip to content

Dealing with Locally Administered MAC (0x02) #2047

@bcookatpcsd

Description

@bcookatpcsd

Another software defines this as:

Enable this option to stop dynamic IP address allocation for clients with locally administered MAC addresses. MAC address with 0x02 bit set in the first octet indicate a locally administered MAC address which usually means that the device is not using its original MAC address.

in dnsmasq I create a single line entry for all addresses containing a [0-9 and a-f] *2, *6, *a, *e.

ex:

dhcp-host=02:*:*:*:*:*,ignore
dhcp-host=12:*:*:*:*:*,ignore
dhcp-host=22:*:*:*:*:*,ignore
dhcp-host=32:*:*:*:*:*,ignore
dhcp-host=42:*:*:*:*:*,ignore
dhcp-host=52:*:*:*:*:*,ignore
dhcp-host=62:*:*:*:*:*,ignore
dhcp-host=72:*:*:*:*:*,ignore
dhcp-host=82:*:*:*:*:*,ignore
dhcp-host=92:*:*:*:*:*,ignore
dhcp-host=a2:*:*:*:*:*,ignore
dhcp-host=b2:*:*:*:*:*,ignore
dhcp-host=c2:*:*:*:*:*,ignore
dhcp-host=d2:*:*:*:*:*,ignore
dhcp-host=e2:*:*:*:*:*,ignore
dhcp-host=f2:*:*:*:*:*,ignore
dhcp-host=06:*:*:*:*:*,ignore
dhcp-host=16:*:*:*:*:*,ignore
dhcp-host=26:*:*:*:*:*,ignore
dhcp-host=36:*:*:*:*:*,ignore
dhcp-host=46:*:*:*:*:*,ignore
dhcp-host=56:*:*:*:*:*,ignore
dhcp-host=66:*:*:*:*:*,ignore
dhcp-host=76:*:*:*:*:*,ignore
dhcp-host=86:*:*:*:*:*,ignore
dhcp-host=96:*:*:*:*:*,ignore
dhcp-host=a6:*:*:*:*:*,ignore
dhcp-host=b6:*:*:*:*:*,ignore
dhcp-host=c6:*:*:*:*:*,ignore
dhcp-host=d6:*:*:*:*:*,ignore
dhcp-host=e6:*:*:*:*:*,ignore
dhcp-host=f6:*:*:*:*:*,ignore

Is there a way to provide such functionality currently per scope, or could I make a request for the feature toggle..

(more example)

dhcp-name-match=set:allowed,CHRMBK-*
dhcp-name-match=set:allowed,SEP*
dhcp-name-match=set:allowed,ATA191
...
dhcp-name-match=set:deny,iPhone
dhcp-name-match=set:deny,iPad
dhcp-name-match=set:deny,iPhone-2
dhcp-name-match=set:deny,iPhone-4
dhcp-name-match=set:deny,iPhone-3

In this situation I only want to allow "known" mac addresses or presented names, I also do something with voice vlans by only allowing phone mac addresses, in cases where lldp/cdp is misused or left off..

ex:
(phone connected to wall, PC connected to phone, lldp-med is wrong and PC gets IP in voice vlan, ignoring non phone mac addresses PC will not get an IP which is more obvious than PC is in wrong vlan..)

(random but standalone complete example)

dhcp-name-match=set:customdns,android* 
dhcp-option=tag:customdns,option:dns-server,192.168.1.100

Looking for 'private/personal' devices which default 'Private Wireless Address' off of other networks.

Please let me know if this does not make sense as presented.

Thank you in advance for taking the time to read this.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions