Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 26 Jul 2004 17:06:01 +0200
From:      Paul Schenkeveld <fb-net@psconsult.nl>
To:        freebsd-net@freebsd.org
Subject:   Re: spoofed MAC on a dhcp interface
Message-ID:  <20040726150601.GA29169@psconsult.nl>
In-Reply-To: <410455E9.8090106@schluting.com>
References:  <410455E9.8090106@schluting.com>

next in thread | previous in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20040726150601.GA29169>