Re: [GTALUG] How do I get wlan0 interface for WiFi with any MAC
On Mon, Oct 16, 2023 at 07:59:35AM -0400, Kevin Cozens via talk wrote: > On 2023-10-11 16:26, BCLUG via talk wrote: > > 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 > The strange thing about it is that dmesg tells me the WiFi was originally > assigned the interface name of wlan0 then it changed the name to one based > on the MAC address. Someone must have thought most people have a problem and > need this "feature" to make life easier but it has had the opposite effect > for me. One option might be a udev rule like this: SUBSYSTEM=="net", ACTION=="add", DRIVERS=="iwlwifi", NAME="wlan0" So when a device is added using the driver iwlwifi, rename it wlan0. Use the correct driver for your setup. Normally the persistent network udev rules are mac address or pci slot based, but they don't have to be. -- Len Sorensen --- Post to this mailing list talk@gtalug.org Unsubscribe from this mailing list https://gtalug.org/mailman/listinfo/talk
Re: [GTALUG] How do I get wlan0 interface for WiFi with any MAC
On 2023-10-11 16:26, BCLUG via talk wrote: 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 The strange thing about it is that dmesg tells me the WiFi was originally assigned the interface name of wlan0 then it changed the name to one based on the MAC address. Someone must have thought most people have a problem and need this "feature" to make life easier but it has had the opposite effect for me. -- Cheers! Kevin. https://www.patreon.com/KevinCozens | "Nerds make the shiny things that | distract the mouth-breathers, and Owner of Elecraft K2 #2172 | that's why we're powerful" #include | --Chris Hardwick --- Post to this mailing list talk@gtalug.org Unsubscribe from this mailing list https://gtalug.org/mailman/listinfo/talk
Re: [GTALUG] How do I get wlan0 interface for WiFi with any MAC
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... --- Post to this mailing list talk@gtalug.org Unsubscribe from this mailing list https://gtalug.org/mailman/listinfo/talk
[GTALUG] How do I get wlan0 interface for WiFi with any MAC
Greetings, all. I have an embedded system and WiFi works but the device name that is shown in ifconfig for it is wlx followed by the MAC address. 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? -- Cheers! Kevin. https://www.patreon.com/KevinCozens | "Nerds make the shiny things that | distract the mouth-breathers, and Owner of Elecraft K2 #2172 | that's why we're powerful" #include | --Chris Hardwick --- Post to this mailing list talk@gtalug.org Unsubscribe from this mailing list https://gtalug.org/mailman/listinfo/talk