WH-2099/macdb
WH-2099/macdb has 44 GitHub stars and 9 forks. Star changes are not measured yet. Last checked 2026-11-09 22:14 UTC. Last push 2026-11-05.
MAC Address Database constructed based on IEEE official website data
实测星标增长
- 24小时
- 更新延迟
- 7天
- 更新延迟
- 15天
- 更新延迟
- 1个月
- 更新延迟
各周期内的星标净变化,周期相互重叠,并非每日新增。缺失的测量保持空白。星标代表关注度,不代表软件质量。
README_zh.md
原文MAC Address Database
MAC 地址厂商信息数据库
English | 中文
功能
通过 MAC 地址确定设备对应的制造商信息。
原理
常见的 48 位 MAC 地址事实上是由 IEEE(电气电子工程师学会)规定的,原本的正式名称是 EUI-48 (48 Bits Extended Unique Identifiers)。而 EUI-48 中包含有 OUI (Organizationally Unique Identifier),这是 IEEE 管理并分配给相关硬件制造商的唯一标识符,通过对此部分的识别可以确定设备的制造商。
EUI-48 和 EUI-64 标识符最普遍的用法是作为全球唯一的网络地址(有时称为 MAC 地址),如各种标准中规定的那样。例如,根据 IEEE 标准 802,EUI-48 通常被用作硬件接口的地址,历史上使用 "MAC-48"的名称。另一个例子是,根据 IEEE 标准 1588,EUI-64 可作为一个时钟的标识符。IEEE 标准 802 还规定了 EUI-64 用于 64 位全球唯一的网络地址。
EUI-48 and EUI-64 identifiers are most commonly used as globally unique network addresses (sometimes called MAC addresses), as specified in various standards. For example, an EUI- 48 is commonly used as the address of a hardware interface according to IEEE Std 802, historically using the name "MAC-48". As another example, an EUI- 64 may serve as the identifier of a clock, per IEEE Std 1588. IEEE Std 802 also specifies EUI-64 use for 64-bit globally unique network addresses.
本项目以 IEEE 官网作为数据源,整合数据库并每日自动同步。
使用说明
支持的数据格式
数据文件直接在仓库中提供:
- CSV (mac.csv)
字段说明
| 字段名 | 字段含义 | 原始字段 (IEEE) | 示例 |
|---|---|---|---|
registry |
分配的 OUI 类型 | Registry |
MA-L |
assignment |
IEEE 分配的唯一识别码 | Assignment |
002272 |
org_name |
制造商名称 | Organization Name |
American Micro-Fuel Device Corp. |
org_address |
制造商地址 | Organization Address |
2181 Buchanan Loop Ferndale WA US 98248 |
查询步骤
- 取 MAC 地址前 24 位(对应到常用的杠分十六进制表示就是前三组的 6 个 十六进制字符,如 AA-BB-CC-DD-EE-FF 的 AABBCC)
与数据库的assignment字段进行精确匹配。 - 若匹配结果的
org_name字段为IEEE Registration Authority,则继续进行下一步;
否则直接返回当前匹配结果。 - 取 MAC 地址前 28 位(对应到常用的杠分十六进制表示就是前三组的 7 个 十六进制字符,如 AA-BB-CC-DD-EE-FF 的 AABBCCD)
与数据库的assignment字段进行精确匹配。 - 若匹配结果的
org_name字段为IEEE Registration Authority,则继续进行下一步;否则直接返回当前匹配结果。 - 取 MAC 地址前 36 位(对应到常用的杠分十六进制表示就是前三组的 9 个 十六进制字符,如 AA-BB-CC-DD-EE-FF 的 AABBCCDDE)
与数据库的assignment字段进行精确匹配。 - 若有结果直接返回,无结果返回空。
Python 使用示例
你可以直接使用仓库中提供的 lookup.py 脚本进行查询:
# 使用方法
python lookup.py <MAC_ADDRESS>
# 示例
python lookup.py AA:BB:CC:00:11:22
官方查询页面
https://regauth.standards.ieee.org/standards-ra-web/pub/view.html
官方数据发布
- MAC Address Block Large (MA-L) TXT CSV
- MAC Address Block Medium (MA-M) TXT CSV
- MAC Address Block Small (MA-S) TXT CSV
官方匹配指导
如果前 24 位与分配给 IEEE RA 的 OUI 相匹配,那么对前 28 位或 36 位的搜索可能会显示出 MA-M 或 MA-S 的分配。
如果在 MA-S 搜索中没有发现 OUI-36,那么对前 24 位或 28 位的搜索可能会发现一个 MA-L 或 MA-M 分配,OUI-36 是由分配块的一个成员创建的。If the first 24 bits match an OUI assigned to the IEEE RA, then a search of the first 28 or 36 bits may reveal an MA-M or MA-S assignment. If the OUI-36 is not found in an MA-S search, then a search of the first 24 or 28 bits may reveal an MA-L or MA-M assignment from which the OUI-36 has been created from a member of the assigned block.
最终的查询结果也不总是完全准确的哦!
请您注意,所列的公司和编号在产品实施中可能并不总是很明显。一些制造商将部件制造分包出去,另一些制造商在其产品中包括注册公司的所有 MAC(MA-L、MA-M、MA-S)。
Your attention is called to the fact that the firms and numbers listed may not always be obvious in product implementation. Some manufacturers subcontract component manufacture and others include registered firms' All MAC (MA-L, MA-M, MA-S) in their products.
探索相关项目
Asabeneh/30-Days-Of-Python
30 Days of Python 编程挑战是一份循序渐进的指南,用于在 30 天内学习 Python 编程语言。这项挑战可能需要超过 100 天。请按自己的节奏进行。这些视频或许也有帮助:https://www.youtube.com/channel/UC7PNRuno1rzYPb1xLa4yktw
78,486 星标grafana/grafana
开放且可组合的可观测性与数据可视化平台。可对来自 Prometheus、Loki、Elasticsearch、InfluxDB、Postgres 等众多数据源的指标、日志和追踪进行可视化。
77,790 星标redis/redis
对于正在构建实时数据驱动应用的开发者而言,Redis 是首选、速度最快且功能最丰富的缓存、数据结构服务器和文档与向量查询引擎。
77,332 星标apache/superset
Apache Superset 是一个数据可视化与数据探索平台
75,455 星标