From owner-freebsd-net@FreeBSD.ORG Mon Jul 26 15:06:05 2004 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 56EAC16A4CE for ; Mon, 26 Jul 2004 15:06:05 +0000 (GMT) Received: from phuket.psconsult.nl (ps226.psconsult.nl [213.222.19.226]) by mx1.FreeBSD.org (Postfix) with ESMTP id 816B443D67 for ; Mon, 26 Jul 2004 15:06:03 +0000 (GMT) (envelope-from fb-net@psconsult.nl) Received: from phuket.psconsult.nl (localhost [127.0.0.1]) by phuket.psconsult.nl (8.12.8p2/8.12.8) with ESMTP id i6QF62Ye029375 for ; Mon, 26 Jul 2004 17:06:02 +0200 (CEST) (envelope-from fb-net@psconsult.nl) Received: (from paul@localhost) by phuket.psconsult.nl (8.12.8p2/8.12.8/Submit) id i6QF62mE029374 for freebsd-net@freebsd.org; Mon, 26 Jul 2004 17:06:02 +0200 (CEST) Date: Mon, 26 Jul 2004 17:06:01 +0200 From: Paul Schenkeveld To: freebsd-net@freebsd.org Message-ID: <20040726150601.GA29169@psconsult.nl> Mail-Followup-To: freebsd-net@freebsd.org References: <410455E9.8090106@schluting.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <410455E9.8090106@schluting.com> User-Agent: Mutt/1.5.6i Subject: Re: spoofed MAC on a dhcp interface X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 26 Jul 2004 15:06:05 -0000 Hi, On Sun, Jul 25, 2004 at 05:52:57PM -0700, Charlie Schluting wrote: > Hi :) > > /etc/rc.conf: > ifconfig_xl0="ether 00:11:11:11:11:11" > ifconfig_xl0="DHCP" The last assignment takes precedence over the previous one. > The above doesn't work.. > I'm trying to set the mac, and then dhcp.. is this the correct way? Set iconfig_xl0="DHCP" in rc.conf, then use a /etc/start_if.xl0 script to set the MAC address: #!/bin/sh ifconfig xl0 ether 00:11:11:11:11:11 > With this config, its not getting the mac assigned to xl0, so I have to > stop dhclient, run "ifconfig ether 00:11:11:11:11:11" manually, then > dhcp again. > > Thanks! > -Charlie $0.02 Regards, Paul Schenkeveld, Consultant PSconsult ICT Services BV