local-mac-address
Gill, James
james.gill at mci.com
Mon Apr 5 14:05:24 PDT 2004
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
More information about the freebsd-sparc64
mailing list