spoofed MAC on a dhcp interface

James Housley jim at Thehousleys.net
Mon Jul 26 04:13:13 PDT 2004


Charlie Schluting wrote:
> Hi :)
> 
> /etc/rc.conf:
> ifconfig_xl0="ether 00:11:11:11:11:11"
> ifconfig_xl0="DHCP"
> 
> The above doesn't work..
> I'm trying to set the mac, and then dhcp.. is this the correct way?
> 
> 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.

I needed to do the exact thing so I could switch to replace dead NIC 
without having to involve my Cable company.

/etc/rc.conf:
ifconfig_xl0="DHCP"             # DHCP on external interface

The key was created /etc/start_if.xl0:
#!/bin/sh
#
# Needed to fake my MAC at Comcast
#
/sbin/ifconfig xl0 ether 00:80:c8:de:1a:50
/sbin/ifconfig xl0 up

Jim

-- 
/"\   ASCII Ribbon Campaign  .
\ / - NO HTML/RTF in e-mail  .
  X  - NO Word docs in e-mail .
/ \ -----------------------------------------------------------------
jeh at FreeBSD.org      http://www.FreeBSD.org     The Power to Serve
jim at TheHousleys.Net  http://www.TheHousleys.net
---------------------------------------------------------------------
A Microsoft Certified Systems Engineer is to computing what
     a McDonalds Certified Food Specialist is to fine cuisine.
       -- Jack O'Neill
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/x-pkcs7-signature
Size: 3228 bytes
Desc: S/MIME Cryptographic Signature
Url : http://lists.freebsd.org/pipermail/freebsd-net/attachments/20040726/ee8e31cc/smime.bin


More information about the freebsd-net mailing list