From owner-freebsd-net@FreeBSD.ORG Fri Dec 14 22:51:29 2012 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 7EC13B22 for ; Fri, 14 Dec 2012 22:51:29 +0000 (UTC) (envelope-from mjguzik@gmail.com) Received: from mail-wi0-f174.google.com (mail-wi0-f174.google.com [209.85.212.174]) by mx1.freebsd.org (Postfix) with ESMTP id F2C788FC12 for ; Fri, 14 Dec 2012 22:51:28 +0000 (UTC) Received: by mail-wi0-f174.google.com with SMTP id hm9so810321wib.13 for ; Fri, 14 Dec 2012 14:51:27 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=x-received:date:from:to:cc:subject:message-id:references :mime-version:content-type:content-disposition:in-reply-to :user-agent; bh=o6Dy8j/qq8zRon1q70c5Zr9rsnpkksGyPzt8cAT1YHw=; b=udJI6H0K1bcjnaegYhK4+m1CIqrHvJgvxDfwl5sJnL9kcdB6FgxpN4wjMGoAV6xf1o 8wbC+evgD4UlOYD2ZlHxpnY9gjLvnEi3tGxtsG0JKmKL/b2/B8m//B1Rz11+CH2MCuLk 3DtJdIrHuypbpYdaKQIk1GILejxA5I98rZFCn4cJnJ8CtCC0oCnk9VVGjfDFrdUofVF6 fXjYlO/94ECNWaNZmzCD3pLgLodCNNXGMar19UAEXeurw3sOEow+PvMwxoQ7eH/WfH8D vEokGvEwCz3A/nTb297I5CoWDAsGORJhyLotpXlcLBg7rz/60ZxklYdMcltoAVQmxdxH re0w== X-Received: by 10.180.87.39 with SMTP id u7mr5044804wiz.6.1355525487660; Fri, 14 Dec 2012 14:51:27 -0800 (PST) Received: from dft-labs.eu (n1x0n-1-pt.tunnel.tserv5.lon1.ipv6.he.net. [2001:470:1f08:1f7::2]) by mx.google.com with ESMTPS id d9sm4684657wiw.0.2012.12.14.14.51.25 (version=TLSv1/SSLv3 cipher=OTHER); Fri, 14 Dec 2012 14:51:26 -0800 (PST) Date: Fri, 14 Dec 2012 23:51:16 +0100 From: Mateusz Guzik To: Chris H Subject: Re: MAC cloning available like Linux has? Message-ID: <20121214225116.GA25128@dft-labs.eu> References: <22dff5a60850319d50ce4f1a07309562.authenticated@ultimatedns.net> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <22dff5a60850319d50ce4f1a07309562.authenticated@ultimatedns.net> User-Agent: Mutt/1.5.20 (2009-06-14) Cc: freebsd-net X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 14 Dec 2012 22:51:29 -0000 On Fri, Dec 14, 2012 at 02:46:33PM -0800, Chris H wrote: > > On Fri, Dec 14, 2012 at 12:11 PM, Chris H 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