MAC cloning available like Linux has?

Chris H chris# at 1command.com
Sat Dec 15 20:56:33 UTC 2012


Hello Warren, and thank you for your reply.

> On Sat, 15 Dec 2012, Chris H wrote:
>
>> Greetings Warren, and thank you for your reply.
>>
>>> On Fri, 14 Dec 2012, Chris H wrote:
>>>
>>>> with: ifconfig_ue0="ether ##:##:##:##:##:##; DHCP"
>>>> the ether isn't honored (ignored)
>>>
>>> Remove the semicolon.  I don't know if the order of parameters there
>>> matters, but think that the rc scripts just look for the presence of
>>> DHCP.
>>>
>>> This just worked in a VM here.
>>>
>>
>> I'm afraid I didn't have the same experience trying that. :(
>> Out of curiosity, what version did you use? I used the CD
>> image of 9.0 I downloaded from freebsd.org yesterday.
>
> 9.0-RELEASE.  The string I have in rc.conf:
>
>    ifconfig_le0="ether 80:01:01:01:01:01 DHCP"
>
> dhclient runs, and the MAC address is set to that according to ifconfig
> output.
>
> Is it possible that USB Ethernet adapters (or drivers) don't allow
> changing the MAC address?  Seems silly, but...
>

Well, as I mentioned in my OP; works perfect in Linux, and also if I
apply it manually at a CLI. But was a no-go via RC(8).

However, I stumbled onto something that seems to work consistently
(see my reply to Adrian's post).

Thanks again, for taking the time to respond.

--Chris



More information about the freebsd-net mailing list