From owner-freebsd-questions@FreeBSD.ORG Wed Apr 19 14:46:52 2006 Return-Path: X-Original-To: freebsd-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 1DE6B16A404 for ; Wed, 19 Apr 2006 14:46:52 +0000 (UTC) (envelope-from dkelly@Grumpy.DynDNS.org) Received: from smtp.knology.net (smtp.knology.net [24.214.63.101]) by mx1.FreeBSD.org (Postfix) with ESMTP id 72AB843D49 for ; Wed, 19 Apr 2006 14:46:51 +0000 (GMT) (envelope-from dkelly@Grumpy.DynDNS.org) Received: (qmail 6979 invoked by uid 0); 19 Apr 2006 14:35:24 -0000 Received: from user-69-73-60-132.knology.net (HELO Grumpy.DynDNS.org) (69.73.60.132) by smtp7.knology.net with SMTP; 19 Apr 2006 14:35:24 -0000 Received: by Grumpy.DynDNS.org (Postfix, from userid 928) id B48D12840A; Wed, 19 Apr 2006 09:46:49 -0500 (CDT) Date: Wed, 19 Apr 2006 09:46:49 -0500 From: David Kelly To: Dave Message-ID: <20060419144649.GA39458@Grumpy.DynDNS.org> References: <002601c663ad$84e72270$0200a8c0@satellite> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <002601c663ad$84e72270$0200a8c0@satellite> User-Agent: Mutt/1.4.2.1i Cc: freebsd-questions@freebsd.org Subject: Re: changing a nic's mac address, freebsd6 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: Wed, 19 Apr 2006 14:46:52 -0000 On Wed, Apr 19, 2006 at 08:33:53AM -0400, Dave wrote: > Hello, > I've got an rl0 nic on a freebsd6 machine that i need to change it's mac > address on a tempoary basis. I will want to change it back when my testing > is complete. I read this was feasible with opbnbsd, and was wondering if > the capability was available in fbsd6? Also, does it matter which tempoary > mac address i give the card? Presumably if one needed to change a MAC address one would already know the MAC address one needed to change to. Otherwise make sure you are not using an address currently in use on your network or the next router over. Probably best to increment your current MAC by one. Once Upon A Time I initialized a cable modem connection at a remote office using my Mac PowerBook then replaced it with a FreeBSD machine dedicated to serve as that office's router, firewall, and VPN gateway. Rather than reinitialize the cable modem service with the FreeBSD interface's MAC I left it using my PowerBook's MAC. The detriment was I could no longer use my PowerBook in that office because it confused the FreeBSD machine which saw another using its MAC address. To set the MAC address before any other networking starts (such as DHCP) create /etc/start_if. #/bin/sh ifconfig lladdr 00:11:22:33:44:55 If you make up an address the first octet probably should be 0 as there are bits in that field which have special meaning. -- David Kelly N4HHE, dkelly@HiWAAY.net ======================================================================== Whom computers would destroy, they must first drive mad.