[GTALUG] How do I get wlan0 interface for WiFi with any MAC
BCLUG
admin at bclug.ca
Wed Oct 11 16:26:24 EDT 2023
Kevin Cozens via talk wrote on 2023-10-11 12:05:
> What udev(?) rule do I need to add to have the WiFi device come up as
> wlan or wlan0 regardless of the MAC address that may be associated with
> the WiFi device?
My first thought: netplan, and found a link explaining it here:
https://askubuntu.com/questions/1317036/how-to-rename-a-network-interface-in-20-04
Basically, in /etc/netplan/10-my-config.yaml:
ethernets:
enp2s0:
match:
macaddress: $my_mac_address
set-name: eth0
Then, `netplan try`, and if the syntax is okay, there's a 120 second
timer to go to another terminal and `ip link` to see if you now have
`eth0`. It will auto-revert if one doesn't press [Enter] during the 120
second timer.
Worked for me...
More information about the talk
mailing list