From owner-freebsd-questions@FreeBSD.ORG Sun Jun 12 23:45:14 2005 Return-Path: X-Original-To: questions@freebsd.org Delivered-To: freebsd-questions@FreeBSD.ORG Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 422D616A41C for ; Sun, 12 Jun 2005 23:45:14 +0000 (GMT) (envelope-from dkelly@HiWAAY.net) Received: from smtp.knology.net (smtp.knology.net [24.214.63.101]) by mx1.FreeBSD.org (Postfix) with SMTP id B770A43D1D for ; Sun, 12 Jun 2005 23:45:13 +0000 (GMT) (envelope-from dkelly@HiWAAY.net) Received: (qmail 30553 invoked by uid 0); 12 Jun 2005 23:45:12 -0000 Received: from user-69-73-60-132.knology.net (HELO ?10.0.0.6?) (69.73.60.132) by smtp6.knology.net with SMTP; 12 Jun 2005 23:45:12 -0000 In-Reply-To: <200506121726.02494.bdodson@scms.utmb.edu> References: <200506121726.02494.bdodson@scms.utmb.edu> Mime-Version: 1.0 (Apple Message framework v730) Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed Message-Id: <1A2E1392-19FE-4F70-9C25-FB4B8099558E@HiWAAY.net> Content-Transfer-Encoding: 7bit From: David Kelly Date: Sun, 12 Jun 2005 18:44:38 -0500 To: bdodson@scms.utmb.edu X-Mailer: Apple Mail (2.730) Cc: questions@freebsd.org Subject: Re: changing network card MAC address X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 12 Jun 2005 23:45:14 -0000 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.