>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
>Class:          update
>Submitter-Id:   current-users
>Arrival-Date:   Sun Dec 16 01:30:00 UTC 2012
>Originator:     Chris H
>Release:        RELENG_8 and RELENG_9

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.

attempt to keep the same MAC address when using usb ethernet

--- begin rc,conf --------------------------------------------------------------

ifconfig_ue0="ether ##:##:##:##:##:##"


*** 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 --------------------------------------------------------------

freebsd-usb@freebsd.org mailing list
To unsubscribe, send any mail to "freebsd-usb-unsubscr...@freebsd.org"

Reply via email to