Hi, On Sun, Oct 19, 2025 at 06:43:31PM +0300, Henrik Ahlgren wrote: > From the information he has provided to me off-list, it is indeed the > case that the ethernet-over-USB device in question (essentially a 4G > router I believe) IS changing MACs on each power cycle, so the names > are not predictable, without some sort of udev configuration or other > tricks.
Why can Richard not post this simple thing to the list so we are all on the same page? It is not even clear why Richard can't use vnstat anyway, as there isn't any indication that he does actually need to know the interface name, there was only a vague implication that he was confused because he had some documentation that didn't show interface names he recognised. I think it's quite likely that if he just tried to use it, it would work fine for logging the amount of monthly data through all interfaces. So, Richard, can you just: 1) Show us the output of "ip link show" that shows two different names for "enx…" (i.e. do it at least twice, showing different name after you've re-plugged it or whatever), and; 2) tell us where you are stuck with vnstat? We can indeed get into custom network device names with systemd .link files but given how hard it's been to get these simple things answered, that could be a very long road that perhaps we do not need to go down. Thanks, Andy -- https://bitfolk.com/ -- No-nonsense VPS hosting

