MAC地址(以太网ID)的前几位是其制造商/型号特有的。 我不会问什么是最好的方法来查看这些因为它是主观的…但我很想知道是否有任何这里find了一个特别有效的资源来做到这一点。
在线时我使用MAC_Find: – 如果你只查找一两个,这很有帮助。
如果你想查找一个更大的数量或MAC地址列表,运行一个脚本来抓取IEEE的OUI列表中的行(使用grep或类似的东西)会更容易。 请注意oui.txt文件通过破折号而不是冒号分隔MAC地址。
为了让生活更有趣,这里有一个shell脚本来获取制造商的任何arp会给你的东西:
#!/bin/sh # Get Mac Addresses, add missing 0s, only grab the first 8 characters, change to dashes and uppercase arp -a | awk {'print toupper($4)'} | sed 's/^[0-9A-F]:/0&/g' | sed 's/:\([0-9A-F]\):/:0\1:/g' | cut -c 1-8 | sed 's/:/-/g' > /tmp/arp.txt for line in `cat /tmp/arp.txt` do echo `grep $line /PATH/TO/oui.txt` done rm /tmp/arp.txt
输出示例:
00-00-5A (hex) SysKonnect GmbH 00-00-5A (hex) SysKonnect GmbH 00-03-93 (hex) Apple Computer, Inc. 00-17-F2 (hex) Apple Computer 00-17-F2 (hex) Apple Computer 00-0A-95 (hex) Apple Computer, Inc. 00-11-24 (hex) Apple Computer 00-16-CB (hex) Apple Computer 00-11-24 (hex) Apple Computer 00-17-F2 (hex) Apple Computer 00-16-CB (hex) Apple Computer
MAC地址的前6个字节表示OUI(组织唯一标识符) 。 这些是由IEEEpipe理的,所以我觉得最好总是去源: