Bug 174464 - clone MAC address(es) on usb networks cdce(4) && ue[0-9] -- no documentation (solution provided)
Summary: clone MAC address(es) on usb networks cdce(4) && ue[0-9] -- no documentation ...
Status: Open
Alias: None
Product: Base System
Classification: Unclassified
Component: usb (show other bugs)
Version: Unspecified
Hardware: Any Any
: Normal Affects Only Me
Assignee: freebsd-usb (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-12-16 01:30 UTC by GNATS administrator
Modified: 2017-12-31 22:29 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description GNATS administrator freebsd_committer 2012-12-16 01:30:00 UTC
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.

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 --------------------------------------------------------------
How-To-Repeat: attempt to keep the same MAC address when using usb ethernet
Comment 1 Eitan Adler freebsd_committer freebsd_triage 2017-12-31 08:00:27 UTC
For bugs matching the following criteria:

Status: In Progress Changed: (is less than) 2014-06-01

Reset to default assignee and clear in-progress tags.

Mail being skipped