Subject: Re: 64 bit hostid
To: None <itojun@iijlab.net>
From: Al Snell <alaric@alaric-snell.com>
List: tech-kern
Date: 01/03/2001 12:08:25
On Wed, 3 Jan 2001 itojun@iijlab.net wrote:

> 	i don't quite understand what you are prposing - what is kern.eui64
> 	when you have multiple ethernet cards?

Whatever you set it to.

The initial value is either zero, or something derived from the guts of
the machine's ROM if that's available, flagged as a LOCAL INDIVIDUAL
id.

In your startup scripts, depending on your tastes, you can run:

hostid -m fxp0

...to set it from the MAC address of your chosen "primary" interface
according to the EUI64 standard for doing so, producing a UNIVERSAL
INDIVIDUAL id.

hostid -h

...to set it to the MD5 of your hostname, flahhed as a LOCAL INDIVIDUAL
id.

Or:

hostid <16 chars of hex>

(or a line in /etc/sysctl.conf setting it)

...to set it to some special value of your own imagining.

Or none of the above, to leave it at the initial value.

What I've written so far implements "hostid", "hostid -f", and "hostid <16
chars of hex>". "hostid -f" dumps the hostid, as per "hostid", but also
shows the state of the two flags.

> 
> itojun
> 

ABS

-- 
                               Alaric B. Snell
 http://www.alaric-snell.com/  http://RFC.net/  http://www.warhead.org.uk/
   Any sufficiently advanced technology can be emulated in software