Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 6 Apr 2004 11:02:03 -0700 (PDT)
From:      Doug White <dwhite@gumbysoft.com>
To:        "Gill, James" <james.gill@mci.com>
Cc:        freebsd-sparc64@freebsd.org
Subject:   Re: local-mac-address
Message-ID:  <20040406105715.L89264@carver.gumbysoft.com>
In-Reply-To: <Pine.SOL.4.51.0404051658110.11491@haiti.corp.us.uu.net>
References:  <Pine.SOL.4.51.0403301609030.4976@haiti.corp.us.uu.net> <20040330220609.GB22027@electra.cse.Buffalo.EDU> <Pine.SOL.4.51.0404051658110.11491@haiti.corp.us.uu.net>

next in thread | previous in thread | raw e-mail | index | archive | help
On Mon, 5 Apr 2004, Gill, James wrote:

> 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?"

There's two ways of doing this.

1.  dhclient's config file allows you to put in ifconfig commands for,
say, setting the media type.  That could be abused to set the mac address.
2.  Netstart will execute the script /etc/start_if.foo0 in preference to
an ifconfig_foo0 rc.conf line.  Use that to set the address and call
dhclient manually.

> 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
> _______________________________________________
> freebsd-sparc64@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-sparc64
> To unsubscribe, send any mail to "freebsd-sparc64-unsubscribe@freebsd.org"
>

-- 
Doug White                    |  FreeBSD: The Power to Serve
dwhite@gumbysoft.com          |  www.FreeBSD.org



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20040406105715.L89264>