From owner-freebsd-arch Tue Apr 9 9:37:26 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 68DAC37B417 for ; Tue, 9 Apr 2002 09:37:22 -0700 (PDT) Received: (from rizzo@localhost) by iguana.icir.org (8.11.6/8.11.3) id g39GbHP63436; Tue, 9 Apr 2002 09:37:17 -0700 (PDT) (envelope-from rizzo) Date: Tue, 9 Apr 2002 09:37:17 -0700 From: Luigi Rizzo To: Nate Williams Cc: arch@FreeBSD.ORG Subject: Re: proposed code: automatic setting of hostname from MAC address Message-ID: <20020409093717.B63338@iguana.icir.org> References: <20020407035941.B37911@iguana.icir.org> <15538.12905.744914.71228@caddis.yogotech.com> <20020408235226.B57765@iguana.icir.org> <15539.3500.712066.51894@caddis.yogotech.com> <20020409092708.A63224@iguana.icir.org> <15539.5958.66973.551501@caddis.yogotech.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <15539.5958.66973.551501@caddis.yogotech.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 10:31:02AM -0600, Nate Williams wrote: ... > > Why do you define it "non standard", and call "not standard" > > the config files ? > > + yes, in the picobsd version the MAC<->hostname mapping was in > > /etc/hosts, but this will be moved to /etc/ethers which is the > > standard place for this stuff; > > /etc/ethers is for determining a network mask, not for determining a > host's IP address. Using it otherwise is non-standard. aren't you mistaking it for /etc/networks ? > man 5 ethers Formatting page, please wait...Done. ETHERS(5) FreeBSD File Formats Manual ETHERS(5) NAME ethers - ethernet address database DESCRIPTION The ethers database contains information regarding known 48-bit ethernet addresses of hosts on an Internetwork. The data is stored in a file called /etc/ethers in the following format: ethernet-address fully-qualified-host-name Items are separated by any number of blanks and/or tab characters. A ``#'' at the start of a line indicates the beginning of a comment that extends to the end of the line. A ``+'' at the start of a line will cause the ethers(3) library functions to use data stored in the NIS(4) ethers.byname and ethers.byaddr maps in addition to the data in the /etc/ethers file. An ethernet address is expressed in ASCII form as "x:x:x:x:x:x" where x is a hexadecimal value between 0x00 and 0xFF. The address values should be in network order. Hostnames specified in the /etc/ethers database should correspond to entries in the hosts(5) file. > /etc/rc.conf *is* the method for configuring each machine. You're > changing what was previously a machine-specific file into a > machine-independant file, totally changing the way things are done. (In > a more confusing/less flexible way I might add.) > > > > However, I don't have a better solution. What I did was rip out all of point taken. We disagree, but that's the beauty of diversity :) cheers luigi To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-arch" in the body of the message