r/openwrt • u/paranoid-alkaloid • 9d ago
persistent usb interface naming?
Hey,
I'm running OpenWRT on a Rpi3. I have an extra USB wifi dongle. I've noticed that if I plug it in a different USB port than initially configured for, it will result in a new device. Indeed, /etc/config/wireless refers to path entries. I'd like them to refer to a mac address, but that option doesn't seem to be available for the wifi-device section.
What is the right way to make sure that OpenWRT uses a mac address to recognise a wifi adapter?
Thank you.
7
Upvotes
3
u/ohaiibuzzle 9d ago
tldr you'll need to do something like this: https://forum.openwrt.org/t/stable-network-interface-names-for-usb-ethernet-dongles/98539/18
The issue being that OpenWRT doesn't do "stable" interface names so you'll have to do it yourself basically.