Date: Mon, 5 Apr 2004 17:05:17 -0400 (EDT) From: "Gill, James" <james.gill@mci.com> To: Ken Smith <kensmith@cse.Buffalo.EDU> Cc: freebsd-sparc64@freebsd.org Subject: Re: local-mac-address Message-ID: <Pine.SOL.4.51.0404051658110.11491@haiti.corp.us.uu.net> In-Reply-To: <20040330220609.GB22027@electra.cse.Buffalo.EDU> References: <Pine.SOL.4.51.0403301609030.4976@haiti.corp.us.uu.net> <20040330220609.GB22027@electra.cse.Buffalo.EDU>
next in thread | previous in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.SOL.4.51.0404051658110.11491>
