Debian 12 – All of a sudden my USB3 LAN adapter gets assigned random MAC address at each reboot
3
votes
1
answer
803
views
I have various small NUCs with attached on each one some of this USB3 LAN adapters (because the NUCs have only one Ethernet,
so I added extra ones with USB3 adapters).
You can see an image of the product
.
All of a sudden, probably due to an unattended automatic upgrade,
these devices started getting random MAC addresses.
Before:
Each USB3 attached device had an address in the form:
00:0E:C6:XX:XX:XX
Each one was distinct and always the same (stable), surviving reboots.
Now they have address like:
eth1 - be:7d:ee:6a:26:ab
eth2 - be:7d:ee:6a:26:ab
eth3 - be:7d:ee:6a:26:ab
eth4 - be:7d:ee:6a:26:ab
eth5 - be:7d:ee:6a:26:ab
all sharing the same randomly picked address.
In short, troubles:
- **Each time the machine reboots, this random MAC address changes.**
- **They all share the same random MAC address.
Previously each one had a different and clearly distinct one.**
The devices are identified in

lsusb
as:
**ASIX Electronics Corp. AX88179 Gigabit Ethernet**
I have no idea what happened since latest automatic update, it's matter of the latest 2 days, 1h ago everything was working OK, after all these devices started to have this weird behaviour.
Could it be a problematic update?
Could it be a new driver been released
that randomizes the MAC address each time?
Could it be a feature from the Linux kernel or the distro or GRUB setting where USB LAN devices now get random MAC address each time?
But in this case, why all of them share the same?
They should be totally random....
I am seeking help and willing to do tests...
Regarding the OS:
Debian Version: **12.5**
Linux 6.1.0-20-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.85-1 (2024-04-11) x86_64 GNU/Linux
---
Workarounds suggested so far, including the final one always working thanks to @A.B:
- https://unix.stackexchange.com/questions/774706
- https://unix.stackexchange.com/questions/774748
- https://unix.stackexchange.com/questions/774865
Asked by user3450548
(3094 rep)
Apr 15, 2024, 04:59 PM
Last activity: Apr 22, 2024, 08:56 PM
Last activity: Apr 22, 2024, 08:56 PM