Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 01 Aug 2006 17:27:48 +0100
From:      Alex Zbyslaw <xfb52@dial.pipex.com>
To:        User Freebsd <freebsd@hub.org>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: Gotta start somewhere ... how many of us are really out there?
Message-ID:  <44CF8104.6080909@dial.pipex.com>
In-Reply-To: <20060801120058.O27679@ganymede.hub.org>
References:  <20060728164526.E27679@ganymede.hub.org>	<87slklj9hu.fsf@photon.homelinux.org>	<20060729021007.F27679@ganymede.hub.org> <44CD41EC.6030605@freebsd.org>	<20060730233839.I27679@ganymede.hub.org> <44CDAA98.3030702@freebsd.org>	<44CDE02F.4090604@dial.pipex.com>	<44CE7DD0.9070902@childeric.freeserve.co.uk>	<871ws1v261.fsf@photon.homelinux.org>	<20060731220830.B27679@ganymede.hub.org>	<ef10de9a0608010121j154c7ael7ece0997a479572e@mail.gmail.com> <20060801120058.O27679@ganymede.hub.org>

next in thread | previous in thread | raw e-mail | index | archive | help
User Freebsd wrote:

> Actually, using ifconfig wouldn't work ... it would give unique, but 
> as soon as you add another IP (ie. alias), the ID would change ... 
> you'd need to do something like:
>
> ifconfig | grep ether | sha256 | md5
>
> since the 'ether' would never change ...

I think you'd want

ifconfig | grep ether | head -1 | sha256 | md5

otherwise you are reliant on *none* of the ethernet cards changing 
rather than just the first not changing.

Also s/never/rarely/.  I don't change my ethernet cards every day, but 
every once in a while it will happen.  But I would have said that was 
good enough.

--Alex






Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?44CF8104.6080909>