EtherVendors

This software package include utilities to work with MAC address. Utilities:

ethervendor

This little utility help to extract/identificate the corresponding Vendor/Manufacturer for a Ethernet MAC address. In order to do its job, macutil download from the IEEE web a list with the manufacturers OUIs.

The first three-octet from a Ethernet MAC address are the corresponding manufacturer OUI, so ethervendor lookup the manufacturer OUI using these octets from the MAC, and report the corresponding name.

Example

We want to identificate the manufacturer off our Ethernet interfaces, so we extract the corresponding hardware addresses using ifconfig

godzilla:~? ifconfig | grep HWaddr
eth0      Link encap:Ethernet  HWaddr 00:30:48:33:26:92
eth1      Link encap:Ethernet  HWaddr 00:30:48:33:26:93
eth2      Link encap:Ethernet  HWaddr 00:80:5A:61:78:06
eth3      Link encap:Ethernet  HWaddr 00:80:5A:61:78:EA

To identificate the first MAC we use the following command

godzilla:~# ethervendor 00:30:48:33:26:92
/usr/share/misc/mac.ids Not found

Is the first time we use ethervendor at this host, so we don't have the corresponding IEEE OUIs list. Se we update/download the list using the update-ethervendor.

godzilla:~# update-ethervendor
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100 1920k  100 1920k    0     0   137k      0  0:00:14  0:00:14 --:--:--  220k
Done.

Note For use update-ethervendor you need root privileges, so you may need to use sudo.

Now we have the list, so we can use ethervendor:

godzilla:~? ethervendor 00:30:48:33:26:92
Supermicro Computer, Inc.
godzilla:~? ethervendor 00:80:5A:61:78:06
TULIP COMPUTERS INTERNAT'L B.V

update-ethervendor

Download/update official Vendor IDs list from IEEE OUI registry. This list is saved in local to be used by other ethervendor scripts (ethervendor, ethervendorids, etc...).

Note For use update-ethervendor you need root privileges, so you may need to use sudo.

Use sample:

godzilla:~# update-ethervendor
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100 1920k  100 1920k    0     0   137k      0  0:00:14  0:00:14 --:--:--  220k
Done.

ethervendorsfind

TBD

Example

godzilla:~? ethervendorsfind motorola
MOTOROLA COMMUNICATION ISRAEL
WIRELESS DATA GROUP MOTOROLA
MOTOROLA
godzilla:~? ethervendorsfind motorola
MOTOROLA COMMUNICATION ISRAEL
WIRELESS DATA GROUP MOTOROLA
MOTOROLA
godzilla:~? ethervendorsfind comtren
COMTREND CO.
godzilla:~? ethervendorsfind Xero
XEROX CORP UNIV GRANT PROGRAM
XEROX CORPORATION
FUJI-XEROX CO. LTD.
godzilla:~? ethervendorsfind intel
APPLIED INTELLIGENT SYSTEMS, INC.
INTEL CORPORATION - HF1-06
INTELLICOM, INC.
INTELLIGENT DEVICES INC. (IDI
INTEL CORPORATION
INTELNET S.A.
INTELLIWORXX, INC.

ethervendorids

TBD

Example

godzilla:~? ethervendorids "INTEL CORPORATION"
00:0E:0C                                                      
00:AA:00                                                      
00:0C:F1                                                      
00:07:E9                                                      
00:19:D2                                                      
00:D0:B7                                                      
00:19:D1                                                      
00:16:76
00:90:27
00:AA:01
00:16:EA
00:16:EB
00:02:B3
00:11:11
00:AA:02
00:03:47
00:16:6F
00:18:DE
00:04:23
00:20:7B
godzilla:~? ethervendorids "XEROX CORPORATION"
00:00:08
00:00:09
00:00:04
00:00:05
00:00:06
00:00:07
00:00:00
00:00:01
00:00:02
00:00:03
00:00:AA

download

To download the svn development version from Alea Soluciones anonymous SVN execute the following command:

svn co http://oss.alea-soluciones.com/svn/ethervendors

For latest binary version, download the corresponding ethervendors deb package binary/

The package sources can be found at source/

Notes

To regenerate deb package from svn checkout dir use:

dpkg-buildpackage -i'\.svn' -I.svn -us -uc -rfakeroot

The -i and -I parameters remove the .svn dirs from the diff generated for deb source.