From owner-freebsd-arch Tue Apr 9 3:34:50 2002 Delivered-To: freebsd-arch@freebsd.org Received: from iguana.icir.org (iguana.icir.org [192.150.187.36]) by hub.freebsd.org (Postfix) with ESMTP id 3568437B419 for ; Tue, 9 Apr 2002 03:34:47 -0700 (PDT) Received: (from rizzo@localhost) by iguana.icir.org (8.11.6/8.11.3) id g39AYiA59670; Tue, 9 Apr 2002 03:34:44 -0700 (PDT) (envelope-from rizzo) Date: Tue, 9 Apr 2002 03:34:44 -0700 From: Luigi Rizzo To: Terry Lambert Cc: Nate Williams , arch@FreeBSD.ORG Subject: Re: proposed code: automatic setting of hostname from MAC address Message-ID: <20020409033444.B59548@iguana.icir.org> References: <20020407035941.B37911@iguana.icir.org> <15538.12905.744914.71228@caddis.yogotech.com> <20020408235226.B57765@iguana.icir.org> <3CB2A989.6E09236C@mindspring.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <3CB2A989.6E09236C@mindspring.com> User-Agent: Mutt/1.3.23i Sender: owner-freebsd-arch@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Tue, Apr 09, 2002 at 01:42:49AM -0700, Terry Lambert wrote: > Luigi Rizzo wrote: > > The call to auto_set_hostname() in rc.conf will fetch the MAC address > > from the first ethernet card, > > I like the idea, except which etherent card is "first"? the first one listed by "ifconfig -l" :) In practice, in my databases i tend to put the MAC addresses of all cards installed, so the process is reasonably safe even if the probe order changes. Think only broke briefly when ifconfig stopped printing leading zeros in the MAC addresses, but this has been fixed now. cheers luigi To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-arch" in the body of the message