Question: How to fix the order of USB ethernet interface names on FreeBSD 11

Question

How to fix the order of USB ethernet interface names on FreeBSD 11

Answers 0
Added at 2016-12-24 01:12
Tags
Question

on FreeBSD 11 two identical USB ethernet card at boot time kernel are determined randomly. As a result, network interface names are reversed, and network addresses are assigned incorrectly

SMP: AP CPU #1 Launched!
SMP: AP CPU #2 Launched!
SMP: AP CPU #3 Launched!
Timecounter "TSC-low" frequency 1596052130 Hz quality 1000
Trying to mount root from ufs:/dev/ada0p2 [rw]...
uhub0: 22 ports with 22 removable, self powered
ugen0.2: <vendor 0x2001> at usbus0
ugen0.3: <vendor 0x2001> at usbus0
em0: link state changed to UP
axe0: <vendor 0x2001 product 0x1a02, rev 2.00/0.02, addr 1> on usbus0
axe1: <vendor 0x2001 product 0x1a02, rev 2.00/0.02, addr 2> on usbus0
ipfw2 initialized, divert loadable, nat loadable, default to deny, logging disabled
miibus0: <MII bus> on axe1
miibus1: <MII bus> on axe0
ukphy0: <Generic IEEE 802.3u media interface> PHY 16 on miibus0
ukphy1: <Generic IEEE 802.3u media interface> PHY 16 on miibus1
ukphy0:  none, 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto, auto-flow
ukphy1:  none, 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto, auto-flow
ue0: <USB Ethernet> on axe1
ue0: Ethernet address: e4:6f:13:f4:32:57
ue1: <USB Ethernet> on axe0
ue1: Ethernet address: e4:6f:13:f4:32:56

but after reboot

ue0: <USB Ethernet> on axe0
ue0: Ethernet address: e4:6f:13:f4:32:56
ue1: <USB Ethernet> on axe1
ue1: Ethernet address: e4:6f:13:f4:32:57

How can I fix the interface names regarding the usb port or MAC address?

Answers
Source Show
◀ Wstecz