Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 14 Dec 2012 23:51:16 +0100
From:      Mateusz Guzik <mjguzik@gmail.com>
To:        Chris H <chris#@1command.com>
Cc:        freebsd-net <freebsd-net@freebsd.org>
Subject:   Re: MAC cloning available like Linux has?
Message-ID:  <20121214225116.GA25128@dft-labs.eu>
In-Reply-To: <22dff5a60850319d50ce4f1a07309562.authenticated@ultimatedns.net>
References:  <fbb9a110e10541ca977e38c0078b8cd4.authenticated@ultimatedns.net> <dcf4605249a8bff03454b85056c62ba4.authenticated@ultimatedns.net> <CA%2BtpaK2ooetDd%2BNE3WNbAQ_3_Kcxit8jvyVf4X9X2wxUc9R4Rg@mail.gmail.com> <22dff5a60850319d50ce4f1a07309562.authenticated@ultimatedns.net>

next in thread | previous in thread | raw e-mail | index | archive | help
On Fri, Dec 14, 2012 at 02:46:33PM -0800, Chris H wrote:
> > On Fri, Dec 14, 2012 at 12:11 PM, Chris H <chris#@1command.com> wrote:
> >
> >> > Greetings,
> >> >  I attempted another BSD install on another piece of hardware the
> >> > other day. I'm evaluating a different ISP, and the gateway/router/modem
> >> > they provided, has 1 ether, which I currently use on my server, and 1
> >> > USB(3) port that I had intended to use with the new install. Problem I
> >> > ran into, was that BSD generates random (fake) MAC(3) addresses, when
> >> > utilizing the CDCE(4)/ue0. This worked just fine during the install.
> >> > But the modem "held" the MAC(3) generated during the install, and I
> >> > now have no idea how to tell BSD to use that MAC(3) when negotiating
> >> > with the modem. I had absolutely no difficulty assigning the MAC(3)
> >> > address when spinning up several "live" Linux distro(s) -- they provide
> >> > the following:
> >> > su
> >> > password: ***
> >> > ifconfig eth1 down
> >> > ifconfig eth0 hw ether ##:##:##:##:##:##
> >> > dhclient eth0
> >> > blah, blah, blah
> >> EDIT
> >> those _should_ have all read "eth1" in the session quoted above.
> >> Sorry.
> >> >
> >> > And I'm connected.
> >> > Couldn't manage that with BSD. What must I do? Is it even possible?
> >> > If so, can it be assigned for use on a permanent basis?
> >> >
> >> > Thank you for all your time, and consideration.
> >>
> >>
> > http://lmgtfy.com/?q=freebsd+change+mac+address
> 
> Further internet searches provided useless, incorrect information.
> So, just for kicks, I spun up, and installed a copy PC-BSD-9.
> The LXDE desktop provided a network applet that allowed to use
> the hardware MAC(3), or one of my choosing. I chose my own.
> But even that failed. So I attempted to use:
> 
>  # ifconfig ue0 ether ##:##:##:##:##:##
>  # ifconfig ue0
> ether ##:##:##:##:##:##
>  # dhclient ue0
> blah, blah, blah
>  # ping yahoo.com
> 64 bytes from 98.138.253.109: icmp_seq=0 ttl=53 time=48.867 ms
> 64 bytes from 98.138.253.109: icmp_seq=1 ttl=53 time=51.118 ms
> 64 bytes from 98.138.253.109: icmp_seq=2 ttl=53 time=80.145 ms
> 64 bytes from 98.138.253.109: icmp_seq=3 ttl=53 time=48.964 ms
> 
> OK. So it is possible with BSD. Let's try to make it permanent!
> adding any of the following attempts failed miserably:
> ifconfig_ue0="ether ##:##:##:##:##:## DHCP"
> 
> ifconfig_ue0="DHCP"
> ifconfig_ue0_alias0="ether ##:##:##:##:##:##"
> 
> So apparently it's not possible (for me) to accomplish this
> with anything but Linux. Bummer, have used BSD exclusively
> since the early 80's. Couldn't imagine having to use anything
> else. :(
> 
> 

ifconfig_ue0="ether ##:##:##:##:##:##; DHCP"

-- 
Mateusz Guzik <mjguzik gmail.com>



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