From owner-freebsd-net@FreeBSD.ORG Sat Dec 15 22:12:08 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 50B40E74; Sat, 15 Dec 2012 22:12:08 +0000 (UTC) (envelope-from chris#@1command.com) Received: from udns.ultimateDNS.NET (24-113-197-124.wavecable.com [24.113.197.124]) by mx1.freebsd.org (Postfix) with ESMTP id 1BF938FC1E; Sat, 15 Dec 2012 22:12:07 +0000 (UTC) Received: from udns.ultimateDNS.NET (localhost [127.0.0.1]) by udns.ultimateDNS.NET (8.14.5/8.14.5) with ESMTP id qBFMC2F7021613; Sat, 15 Dec 2012 14:12:08 -0800 (PST) (envelope-from chris#@1command.com) Received: (from www@localhost) by udns.ultimateDNS.NET (8.14.5/8.14.5/Submit) id qBFMBvUB021607; Sat, 15 Dec 2012 14:11:57 -0800 (PST) (envelope-from chris#@1command.com) Received: from udns.ultimatedns.net ([24.113.197.124]) (UDNSMS authenticated user chrish) by ultimatedns.net with HTTP; Sat, 15 Dec 2012 14:11:57 -0800 (PST) Message-ID: <476652410abd01eff09cf38132ebd0f6.authenticated@ultimatedns.net> In-Reply-To: <09d1faaf95a2644e1819a042b65ca360.authenticated@ultimatedns.net> References: <22dff5a60850319d50ce4f1a07309562.authenticated@ultimatedns.net> <20121214230414.GF1959@glenbarber.us> <27119a9d879fd4fb124b517b1589d578.authenticated@ultimatedns.net> <20121215115343.GC1342@glenbarber.us> <31ed4a74f0e5c8f3156d725d86590379.authenticated@ultimatedns.net> <20121215181928.GC1344@glenbarber.us> <4206626b0eb77c1955c546d5cf91b4cc.authenticated@ultimatedns.net> <09d1faaf95a2644e1819a042b65ca360.authenticated@ultimatedns.net> Date: Sat, 15 Dec 2012 14:11:57 -0800 (PST) Subject: Re: MAC cloning available like Linux has? From: "Chris H" To: "Adrian Chadd" User-Agent: UDNSMS/2.0.3 MIME-Version: 1.0 Content-Type: text/plain;charset=utf-8 Content-Transfer-Encoding: 8bit X-Priority: 3 (Normal) Importance: Normal Cc: Glen Barber , 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: Sat, 15 Dec 2012 22:12:08 -0000 >> Hi, >> >> Please file a PR for this. I think this (and mac address > Greetings Adrian, and thank you for your reply. > >> setup/changing on net80211, similar issues) needs both some better >> documentation/FAQ entries and updates to the rc scripts. >> >> I think we may want to add an ifconfig_X_ether="" to set the L2 >> address appropriately for an interface. >> >> Thanks, >> >> >> >> Adrian > > Well, on a hunch regarding RC(8), I blew 9.0 off the drive, and > experimented with installing 8.2. But I think I stumbled onto > something. I don't know (yet) if this will carry over to 9.x yet. > But here's what I discovered: > > in rc.conf, adding the following (order is important!), everything > works as expected/desired/anticipated; > > --- begin rc,conf -------------------------------------------------------------- > ifconfig_ue0="ether ##:##:##:##:##:##" > > ifconfig_ue0_alias0="DHCP" > > *** or *** > > ifconfig_ue0_alias0="inet ip4.add.ress.anticipated netmask kno.wn.net.mask" > > followed by > defaultrouter="kno.wn.gate.way" --applies for static only > --- end rc,conf -------------------------------------------------------------- > > So. It appears this will be the answer. _However_ I can't swear to it > until I spin up && install a (fresh) copy of RELENG_9. > I'll do so, and report back. > > Thanks again, for your reply. > > --Chris OK. The results are in -- Using the RC(8) declarations I listed above work not only in RELENG_8, but also in RELENG_9. I just performed an install from the 9.0 CD I downloaded from freebsd.org on 12-12-14. Everything (both as STATIC, and as DHCP) worked as expected/anticipated. Is this still worth a PR(1)? Best wishes, and thanks again, to everyone that took the time to help! --Chris > > > >> >> On 15 December 2012 10:36, Chris H wrote: >>>> On Sat, Dec 15, 2012 at 10:11:41AM -0800, Chris H wrote: >>>>> Hello Glen, and thank you for your reply. >>>>> > On Fri, Dec 14, 2012 at 11:26:06PM -0800, Chris H wrote: >>>>> >> ifconfig_ue0="DHCP" >>>>> >> create_args_ue0="ether ##:##:##:##:##:##" >>>>> >> create_args is simply ignored. >>>>> >> >>>>> > >>>>> > Ignored how? What commands are you running to verify it works? >>>>> > For me, create_args_IFNAME works fine on my firewall. >>>>> >>>>> Unfortunately, it had no affect for me. >>>>> The ue0 maintained the same MAC it started with. >>>>> Out of desperation, I even tried it in /boot/loader.conf. >>>> >>>> It is not a loader(8) tunable, it is part of the rc(8) system. >>>> >>>> You did not answer the important part of what I asked - how are you >>>> testing? Are you rebooting the machine? Are you using the netif rc >>>> script? >>> >>> Ahh. Sorry, my bad. Rebooting. >>> >>> I have no difficulty issuing: >>> ifconfig ue0 down >>> ifconfig ue0 ether ##:##:##:##:##:## >>> dhclient ue0 >>> >>> This method will always return the expected/desired results. >>> >>>> >>>> Glen >>>> >>>> >>> Thanks for the reply. >>> >>> --Chris >>> >>> >>> _______________________________________________ >>> freebsd-net@freebsd.org mailing list >>> http://lists.freebsd.org/mailman/listinfo/freebsd-net >>> To unsubscribe, send any mail to "freebsd-net-unsubscribe@freebsd.org" >> > > _______________________________________________ > freebsd-net@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-net > To unsubscribe, send any mail to "freebsd-net-unsubscribe@freebsd.org" >