Subject: Re: Allowing ifconfig to automatically fill in IPv6 host ID
To: Hubert Feyrer <hubert.feyrer@informatik.fh-regensburg.de>
From: None <ww@styx.org>
List: tech-net
Date: 03/25/2002 23:14:45
On Tue, Mar 26, 2002 at 12:57:25AM +0100, Hubert Feyrer wrote:
> On Tue, 26 Mar 2002 itojun@iijlab.net wrote:
> > >How about merging it into ifconfig?
> > >	ifconfig fo0 inet6 prefix 1:2:3:4::
> > 
> > 	i don't like it... use script or whatever to grab 64bit interface
> > 	identifier...
> 
> Which raises the question how one gets that interface id? 
> I know how to calculate it for Ethernet MAC, but don't know for other
> media types... is there some interface to retrieve the EUI64 ID?

The sed script I posted should work for any type of interface that gets
assigned a fe80::/8 address during kernel initialization.

-w