

For example Colon-Hexadecimal notation is used by Linux OS and Period-separated Hexadecimal.

By convention, these addresses are usually written in one of the following three formats, though there are variations. I might add a flag to the new() and convert() methods to do this. Traditional MAC addresses are 12-digit (6 bytes or 48 bits) hexadecimal numbers. ifconfig -a returns information on your systems network interfaces. Net::MAC doesn't reliably preserve case in a MAC address. Enter hostname and ifconfig -a in the terminal to get the. If you don't have an entry it will do a broadcast on your LAN (within the subnet you are in) to query for it. If you don't have a reverse lookup zone it will lookup in your local name cache. Example: 7.122.32.41.5 (should be 0.7.122.32.41.5)Īrguably, that's their problem and not mine, but maybe someday I'll get around to supporting that case as well. This will parse your reverse lookup zone in DNS. Net::MAC can't handle MAC addresses where whole leading zero octets are omitted. # Example: find out whether a MAC is base 16 or base 10Įlse BUGS Malformed MAC addresses 'base' => 10, # convert from base 16 to base 10 # Example: convert to a different MAC address format (dotted-decimal) First you would have to know the IP to find the MAC, the name will not help much with your MAC until to know the IP. Learn how to change it as needed by spoofing your address for privacy and security.

My $mac = Net::MAC->new('mac' => '08:20:00:AB:CD:EF') Your MAC address uniquely identifies the physical devices on Wi-Fi or LAN. The script takes as an input a list of interface names to skip/ignore when reporting interfaces where a MAC address is found. Net::MAC - Perl extension for representing and manipulating MAC addresses VERSION
