--On Friday, September 26, 2003 03:28:47 PM +0200 Nico Bayer
<[EMAIL PROTECTED]> wrote:

> Hello,
>  
> is there any function or command for linux to get the mac address out of
> an ipv6 address? An ipv6 address contains the mac address in the eui64
> format. So the function should convert it to the mac address.
> Maybe someone can help me with this problem.

Something like that?

$ ipv6calc -i -m fe80::280:c8ff:feb9:cef9
No input type specified, try autodetection...found type: ipv6addr
No output type specified, try autodetection...found type: ipv6addr
IPV6=fe80:0000:0000:0000:0280:c8ff:feb9:cef9
TYPE=unicast,link-local
IID=0280:c8ff:feb9:cef9
EUI48=00:80:c8:b9:ce:f9   <--!!!!
EUI48_SCOPE=global
EUI48_TYPE=unicast
OUI="D-LINK SYSTEMS, INC."
IPV6CALC_NAME=ipv6calc
IPV6CALC_VERSION=0.46
IPV6CALC_COPYRIGHT="(P) & (C) 2001-2003 by Peter Bieringer <pb (at)
bieringer.de>"

http://www.deepspace6.net/projects/ipv6calc.html

        Peter
-- 
Dr. Peter Bieringer                     http://www.bieringer.de/pb/
GPG/PGP Key 0x958F422D               mailto: pb at bieringer dot de 
Deep Space 6 Co-Founder and Core Member  http://www.deepspace6.net/
---------------------------------------------------------------------
The IPv6 Users Mailing List
Unsubscribe by sending "unsubscribe users" to [EMAIL PROTECTED]

Reply via email to