From owner-freebsd-usb@FreeBSD.ORG Sun Dec 16 01:30:01 2012 Return-Path: Delivered-To: freebsd-usb@smarthost.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 9A478BAA for ; Sun, 16 Dec 2012 01:30:01 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:1900:2254:206c::16:87]) by mx1.freebsd.org (Postfix) with ESMTP id 6DF058FC15 for ; Sun, 16 Dec 2012 01:30:01 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.5/8.14.5) with ESMTP id qBG1U1Wh016529 for ; Sun, 16 Dec 2012 01:30:01 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.5/8.14.5/Submit) id qBG1U1SF016528; Sun, 16 Dec 2012 01:30:01 GMT (envelope-from gnats) Resent-Date: Sun, 16 Dec 2012 01:30:01 GMT Resent-Message-Id: <201212160130.qBG1U1SF016528@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-usb@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Chris H Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id C2DEEA85 for ; Sun, 16 Dec 2012 01:26:53 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from red.freebsd.org (red.freebsd.org [IPv6:2001:4f8:fff6::22]) by mx1.freebsd.org (Postfix) with ESMTP id A02478FC13 for ; Sun, 16 Dec 2012 01:26:53 +0000 (UTC) Received: from red.freebsd.org (localhost [127.0.0.1]) by red.freebsd.org (8.14.5/8.14.5) with ESMTP id qBG1QrgU075289 for ; Sun, 16 Dec 2012 01:26:53 GMT (envelope-from nobody@red.freebsd.org) Received: (from nobody@localhost) by red.freebsd.org (8.14.5/8.14.5/Submit) id qBG1Qrba075288; Sun, 16 Dec 2012 01:26:53 GMT (envelope-from nobody) Message-Id: <201212160126.qBG1Qrba075288@red.freebsd.org> Date: Sun, 16 Dec 2012 01:26:53 GMT From: Chris H To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-3.1 Subject: usb/174464: clone MAC address(es) on usb networks cdce(4) && ue[0-9] -- no documentation (solution provided) X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 16 Dec 2012 01:30:01 -0000 >Number: 174464 >Category: usb >Synopsis: clone MAC address(es) on usb networks cdce(4) && ue[0-9] -- no documentation (solution provided) >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-usb >State: open >Quarter: >Keywords: >Date-Required: >Class: update >Submitter-Id: current-users >Arrival-Date: Sun Dec 16 01:30:00 UTC 2012 >Closed-Date: >Last-Modified: >Originator: Chris H >Release: RELENG_8 and RELENG_9 >Organization: >Environment: 8.3-STABLE/1386 9.0-STABLE/i386 >Description: I am evaluating a new ISP. The modem they provide has 2 ethernet ports -- one of which is USB. The modem caches the first device attached, and as a result, given that BSD creates random (fake) a MAC address for the USB port, I had to find a way to maintain a "fixed" MAC, that was the same as the one I used when installing FreeBSD from a net-install CD. Linux provides a "clone MAC" option in their Network Management. I had expected to find it in BSD. But my experiences were pretty dismal. I was unable to accomplish my need via any means of RC(8). It was possible manually, via a CLI. So I scoured the net, BSD forums, handbook. All without joy. So I subscribed to the net@ mailing list. While presented with several suggestions. None were fruitful. So, determined, I worked with both RELENG_8 && RELENG_9. Installing one, or the other, and experimenting until I could successfully get connected to the internet with the correct stanza's in rc.conf(5). I finally figured out how to make it always work (with DHCP, or STATIC IP). given there is no documentation on this. I'd like to present it here, so that it might make it to the handbook/man page. >How-To-Repeat: attempt to keep the same MAC address when using usb ethernet >Fix: **** ORDER IS IMPORTANT **** --- 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 only if using static IPv4 --- end rc,conf -------------------------------------------------------------- >Release-Note: >Audit-Trail: >Unformatted: