Translate MAC address to IP address

Lars Eggert larse at ISI.EDU
Wed Aug 13 08:43:56 PDT 2003


Nick Barnes wrote:

> [-net seems to be the right forum for this.]
> 
> I have some MAC addresses from a local Ethernet segment.  I want to
> convert them into IP addresses.  How can I do that programmatically?

net/arping from port:

[root at nik: ~] arping -i em1 00:07:e9:0a:23:91
ARPING 00:07:e9:0a:23:91
60 bytes from 128.9.168.57 (00:07:e9:0a:23:91): icmp_seq=0 time=5.453 msec
60 bytes from 128.9.168.57 (00:07:e9:0a:23:91): icmp_seq=1 time=9.980 msec
60 bytes from 128.9.168.57 (00:07:e9:0a:23:91): icmp_seq=2 time=9.981 msec
^C
--- 00:07:e9:0a:23:91 statistics ---
3 packets transmitted, 3 packets received,   0% unanswered

Lars
-- 
Lars Eggert <larse at isi.edu>           USC Information Sciences Institute
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/x-pkcs7-signature
Size: 3529 bytes
Desc: S/MIME Cryptographic Signature
Url : http://lists.freebsd.org/pipermail/freebsd-net/attachments/20030813/0efe6f3d/smime.bin


More information about the freebsd-net mailing list