ML0038 September 27, 2017 - 28 - Copyright 2017 Bitronics, LLC
Although the IP address can be obtained via the display, for versions that don’t have a
display (M651, M661, PPX II), Bitronics has created a utility program to request the IP
address for a specific MAC address on an Ethernet network. This program can be
used with the
M650 as well. The program is available on the company website
(
http://www.novatechweb.com/downloads/inarp/).
The program uses the Inverse Address Recognition Protocol to perform the lookup
and thus is called inarp. The InARP protocol definition can be found at
www.apps.ietf.org/rfc/rfc2390.html. The inarp utility can also scan an Ethernet
network for a range of MAC addresses, printing the IP address for any devices which
respond.
The general form of inarp is defined below, followed by some usage examples.
inarp usage:
inarp [-i <if_ipaddr>] [-n <cnt>] [-p <ms>] [-v] <mac-spec>
where
<if_ipaddr> := interface ip address (default is 1st Ethernet interface)
<cnt> := count of addresses to poll (default 1)
<ms> := period between polls (100ms)
<mac-spec> := <6ByteMac> | <[3-5]ByteMac> | <macRangeName>
<6ByteMac> := xx:xx:xx:xx:xx:xx - <cnt> can specify a range to scan
<5ByteMac> := xx:xx:xx:xx:xx - default <cnt> is 256
...
<3ByteMac> := xx:xx:xx - default <cnt> is 16,777,216
<macRangeName> := "50series"
50Series MAC base (00:d0:4F:03), default <cnt> is 65,536
-v := request verbose information
CTRL-C stops a scan.
The inarp utility requires the WinPcap and Packet libraries which are bundled in the
WinPcap "Installer for Windows." This can be downloaded from www.winpcap.org.
Installation requires Administrator privileges.
Examples:
to poll the 1st IPv4 interface,
inarp -v 50series
CTRL-C stops the scan
to poll the IPv4 interface associated with 192.168.1.1, use
inarp -v -i 192.168.1.1 50series
or to poll a specific mac, use
inarp -v -i 192.168.1.1 00:D0:4F:03:00:15