mac address model - OUI / group tracking #10489

Open
opened 2025-12-29 21:32:11 +01:00 by adam · 1 comment
Owner

Originally created by @ITJamie on GitHub (Nov 18, 2024).

NetBox version

v4.2-feature branch

Feature type

Data model extension

Triage priority

N/A

Proposed functionality

Extend the new MacAddress model (4.2) in NetBox to include the concept of MAC address prefixes or Organizationally Unique Identifiers (OUIs). This feature would allow users to:

  • Manage OUIs:
    • Create, edit, and delete OUIs with fields for the prefix (e.g., BC:24:11), oui name, and description.
  • Associate MAC Addresses with OUIs:
    • Link each MAC address to an OUI, helping track which addresses belong to specific oui's or subset of oui's.
  • Generate Next Available MAC Address:
    • Provide a function to generate the next available MAC address within a selected OUI when viewing its detail page.

Use case

This functionality benefits organizations that own custom OUIs and need to manage their MAC address allocations efficiently. By tracking OUIs and associated MAC addresses, users can:

  • Prevent Address Collisions:
    • Automatically generate MAC addresses within an OUI to avoid duplicates.
  • Enhance Tracking and Reporting:
    • Monitor the utilization of MAC addresses within each OUI for capacity planning and auditing purposes.

we for example assign subsets of OUI's to vps clusters so we know where vm's exist in our infrastructure just by looking up the mac oui even if that vm isnt documented in netbox.

Database changes

Create a New OUI Model/Table:

  • Fields: id, oui_prefix (e.g., 'BC:24:11'), oui_name, description.

Modify the Existing MacAddress Model:

  • Add a foreign key field oui linking to the new OUI model.

External dependencies

No response

Originally created by @ITJamie on GitHub (Nov 18, 2024). ### NetBox version v4.2-feature branch ### Feature type Data model extension ### Triage priority N/A ### Proposed functionality Extend the new MacAddress model (4.2) in NetBox to include the concept of MAC address prefixes or Organizationally Unique Identifiers (OUIs). This feature would allow users to: - Manage OUIs: - Create, edit, and delete OUIs with fields for the prefix (e.g., BC:24:11), oui name, and description. - Associate MAC Addresses with OUIs: - Link each MAC address to an OUI, helping track which addresses belong to specific oui's or subset of oui's. - Generate Next Available MAC Address: - Provide a function to generate the next available MAC address within a selected OUI when viewing its detail page. ### Use case This functionality benefits organizations that own custom OUIs and need to manage their MAC address allocations efficiently. By tracking OUIs and associated MAC addresses, users can: - Prevent Address Collisions: - Automatically generate MAC addresses within an OUI to avoid duplicates. - Enhance Tracking and Reporting: - Monitor the utilization of MAC addresses within each OUI for capacity planning and auditing purposes. we for example assign subsets of OUI's to vps clusters so we know where vm's exist in our infrastructure just by looking up the mac oui even if that vm isnt documented in netbox. ### Database changes Create a New OUI Model/Table: - Fields: id, oui_prefix (e.g., 'BC:24:11'), oui_name, description. Modify the Existing MacAddress Model: - Add a foreign key field oui linking to the new OUI model. ### External dependencies _No response_
Author
Owner

@sleepinggenius2 commented on GitHub (Nov 19, 2024):

It would be really nice if this could also allow loading in data from the IEEE registry:
MA-L - https://standards-oui.ieee.org/oui/oui.csv
MA-M - https://standards-oui.ieee.org/oui28/mam.csv
MA-S - https://standards-oui.ieee.org/oui36/oui36.csv

@sleepinggenius2 commented on GitHub (Nov 19, 2024): It would be really nice if this could also allow loading in data from the IEEE registry: MA-L - https://standards-oui.ieee.org/oui/oui.csv MA-M - https://standards-oui.ieee.org/oui28/mam.csv MA-S - https://standards-oui.ieee.org/oui36/oui36.csv
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#10489