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, [EMAIL PROTECTED]
========================================================================
Whom computers would destroy, they must first drive mad.

_______________________________________________
[email protected] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"

Reply via email to