spoofed MAC on a dhcp interface
Paul Schenkeveld
fb-net at psconsult.nl
Mon Jul 26 08:06:05 PDT 2004
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
More information about the freebsd-net
mailing list