From owner-freebsd-sparc64@FreeBSD.ORG Mon Apr 5 14:05:24 2004 Return-Path: Delivered-To: freebsd-sparc64@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 79C3116A4CE for ; Mon, 5 Apr 2004 14:05:24 -0700 (PDT) Received: from cmr2.ash.ops.us.uu.net (cmr2.ash.ops.us.uu.net [198.5.241.40]) by mx1.FreeBSD.org (Postfix) with ESMTP id C24D243D53 for ; Mon, 5 Apr 2004 14:05:23 -0700 (PDT) (envelope-from james.gill@mci.com) Received: from imr2.ash.ops.us.uu.net by cmr2.ash.ops.us.uu.net with ESMTP (peer crosschecked as: imr2.ash.ops.us.uu.net [153.39.43.15]) id QQqjdc23684; Mon, 5 Apr 2004 21:05:20 GMT Received: from haiti.corp.us.uu.net by imr2.ash.ops.us.uu.net with ESMTP (peer crosschecked as: haiti.corp.us.uu.net [153.39.146.95]) id QQqjdc16326; Mon, 5 Apr 2004 21:05:18 GMT Received: from localhost by haiti.corp.us.uu.net with ESMTP (peer crosschecked as: jamgill@localhost) id i35L5HH11759; Mon, 5 Apr 2004 17:05:17 -0400 (EDT) Date: Mon, 5 Apr 2004 17:05:17 -0400 (EDT) From: "Gill, James" X-X-Sender: jamgill@haiti.corp.us.uu.net To: Ken Smith In-Reply-To: <20040330220609.GB22027@electra.cse.Buffalo.EDU> Message-ID: References: <20040330220609.GB22027@electra.cse.Buffalo.EDU> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII cc: James.Gill@mci.com cc: freebsd-sparc64@freebsd.org Subject: Re: local-mac-address X-BeenThere: freebsd-sparc64@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: James.Gill@MCI.com List-Id: Porting FreeBSD to the Sparc List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 05 Apr 2004 21:05:24 -0000 On Tue, 30 Mar 2004, Ken Smith wrote: > On Tue, Mar 30, 2004 at 04:36:43PM -0500, Gill, James wrote: > > > > >From the archive (and my experience yesterday) it seems that setting > > local-mac-address? to true in the OpenBoot does not get seen by the OS yet > > (5.2.1-p3). I have a need to configure different MAC addresses for each > > interface on the system therefore, I need to manually set 'ifconfig > > hmeN ether 0a:0:20:00:00:N' for each of my interfaces at each boot. > > > > Now my question: where is the best place to do this? I've poked through > > the stuff in /etc/rc.d/ and /etc/defaults/rc.conf and don't see the > > obvious place for this. perhaps /usr/local/etc/rc.d/? > > I would try to do it in /etc/rc.conf first. You will see lines there > already that set up the network interfaces. Adding the "ether" command > line arguments there should work. Yes, it does. Setting this in /etc/rc.conf does configure this MAC address on this interface: ifconfig_hme1="ether 0a:0:20:00:fe:1" but, unfortunately, I also need these interfaces to get addressed via DHCP. I can't put both into one ifconfig statement either on the command line nor in /etc/rc.conf ... If that is possible, my question is "how?" If that is not, my question is again .. where would the _best_ place to set this be? I'm going to be doing this in at least a few instances and I'm not going to be the only admin to play with this, so I want to put it in the most obvious place (which might be a separate script somewhere and a comment in /etc/rc.conf, eh?) THanks, --gill ----------------------------------------------------- MCI/UUNET Network Security & Abuse * 1-800-900-0241,4 ----------------------------------------------------- v-net: desk = 806-3834 ; group = 806-8805