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

Reply via email to