Sanitized IEEE OUI Data (oui.txt)
The IEEE oui.txt file has become somewhat inconsistent over the years and subsequently requires subvention for use in network infrastructure documentation and reporting. In response to this we have produced a weekly sanitized edition and made it available for download in bzip2, gzip, Zip and ASCII text.
Our sanitizing process performs Title Case conversion of older all UPPERCASE OUI records, fixes for vendor name inconsistencies, spelling corrections, removal of superfluous and erroneous data artifacts that have crept into the original daily generated IEEE oui.txt over time.
Sanitized oui.txt.bz2 Sat, 26 May 2018 07:23:48 +0000 • (772,772 bytes) • bzip2
Sanitized oui.txt.gz Sat, 26 May 2018 07:23:48 +0000 • (1,054,821 bytes) • gzip
Sanitized oui.txt.zip Sat, 26 May 2018 07:23:51 +0000 • (1,054,959 bytes) • Zip
Sanitized oui.txt Sat, 26 May 2018 07:23:48 +0000 • (3,732,421 bytes) • ASCII
A juxtaposition comparison of the original and sanitized oui.txt files can be attained using sdiff from the GNU diffutils package.sdiff -Wia original_oui.txt sanitized_oui.txt | less
Nmap MAC Prefixes
We also maintain and have made available a nmap-mac-prefixes file created from the sanitized oui.txt edition with abridging vendor name logic applied.
nmap-mac-prefixes Sat, 26 May 2018 07:23:49 +0000 • (481,713 bytes) • ASCII
The nmap-mac-prefixes file is used by Nmap to output meaningful OUI vendor names for MAC addresses it detects by matching the three-byte prefix taken from the MAC address and looking for a match in nmap-mac-prefixes file. It's also used in other nmap features. The Nmap nmap-mac-prefixes file can typically be found in /usr/share/nmap/ on most Linux distributions.
An example of this can be seen by performing a nmap scan of a local network. In this example the 192.168.0.0/24 LAN segment is scanned using the following:nmap -n -sP -PS -PE -PP -PM 192.168.0.0/24 | grep MAC
ephor ~ # nmap -n -sP -PS -PE -PP -PM 192.168.0.0/24 | grep MAC MAC Address:
Arpwatch is an Ethernet monitor tool by Network Research Group (NRG). The ethercodes.dat distributed with the NRG Arpwatch package archive is somewhat dated, Jul 22, 2006. The format of this data file is similar enough to the nmap-mac-prefixes file that it is rather trivial to generate an updated ethercodes.dat from it.
The ethercodes.dat file can be found in /usr/share/arpwatch/ or /var/lib/arpwatch/ on most installations.
ethercodes.dat Sat, 26 May 2018 07:23:50 +0000 • (556,455 bytes) • ASCII
The arp-scan package provides a Perl script to update it's ieee-oui.txt file. The default URL is that of the original IEEE oui.txt data. The -u parameter for get-oui can be used to specify the URL to fetch the raw OUI data from instead of the default.
The arp-scan ieee-oui.txt data file in /usr/share/arp-scan/ or /usr/local/share/arp-scan/ can be updated with the latest sanitized oui.txt data with the following:cd /usr/share/arp-scan/ && get-oui -u https://linuxnet.ca/ieee/oui.txt
The arp-scan ieee-oui.txt file shares the same format as the nmap-mac-prefixes file thus it can be used with arp-scan using the --ouifile option.arp-scan --ouifile=/usr/share/nmap/nmap-mac-prefixes -lI eth0 luger ~ # arp-scan --ouifile=/usr/share/nmap/nmap-mac-prefixes -lI eth0 Interface: eth0, datalink type: EN10MB (Ethernet) Starting arp-scan 1.9 with 256 hosts (http://www.nta-monitor.com/tools/arp-scan/) 192.168.0.1