Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 12 Jun 2005 18:44:38 -0500
From:      David Kelly <dkelly@HiWAAY.net>
To:        bdodson@scms.utmb.edu
Cc:        questions@freebsd.org
Subject:   Re: changing network card MAC address
Message-ID:  <1A2E1392-19FE-4F70-9C25-FB4B8099558E@HiWAAY.net>
In-Reply-To: <200506121726.02494.bdodson@scms.utmb.edu>
References:  <200506121726.02494.bdodson@scms.utmb.edu>

next in thread | previous in thread | raw e-mail | index | archive | help

On Jun 12, 2005, at 5:26 PM, M. L. Dodson wrote:

> Just set up a new box (5.4-RELEASE) as a home gateway and had to
> change the network card MAC address that does DHCP through the
> cable modem.  I put the following in /etc/rc.early, but this seems
> inelegant and possibly deprecated.  What is the proper way to do
> this on a DHCP interface?
>
> ifconfig rl1 ether 'aa:bb:cc:dd:ee:ff'

Go look at ifscript_up() in /etc/network.subr. What you want to do is  
put the above line in /etc/start_if.rl1 (just rename it, I'm  
guessing) and it will magically be applied before DHCP gets to it.

If it wasn't for DHCP you could put it on the appropriate ifconfig  
line in /etc/rc.conf.

--
David Kelly N4HHE, dkelly@HiWAAY.net
========================================================================
Whom computers would destroy, they must first drive mad.




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1A2E1392-19FE-4F70-9C25-FB4B8099558E>