-   Slackware (
-   -   slackware-current iwlwifi .. wlan125: renamed from wlan0 (

zdolar 03-12-2019 09:10 AM

slackware-current iwlwifi .. wlan125: renamed from wlan0
Slackware64-current, updated 7. 3. 2019

What is the reason and how to prevent this:


[/home/zd] # dmesg |grep wlan
iwlwifi 0000:02:00.0 wlan125: renamed from wlan0
iwlwifi 0000:02:00.0 wlan1: renamed from wlan125

I have only one WiFi card and one LAN card both active (bridge).
LAN card is named correctly eth0, but WiFi card is named wlan1.

I wish "normal" naming fir WiFi cards too:
first card wlan0
second card wlan1

ponce 03-12-2019 09:19 AM

you should have already a couple of lines like these in /etc/udev/rules.d/70-persistent-net.rules

# PCI device 0x168c:0x002b (ath9k)
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="f1:35:2f:ab:d6:1e", ATTR{dev_id}=="0x0", ATTR{type}=="1", KERNEL=="wlan*", NAME="wlan0"

and also another couple for wlan1.
if it's like this just delete/move away the /etc/udev/rules.d/70-persistent-net.rules file and reboot your computer: at the next boot it will be regenerated and your interface should be named correctly wlan0.

zdolar 03-13-2019 02:55 AM

Thank you ponce!

You are right. Looks system remember hardware.
I replaced wlan card with a better one and MAC in a mentioned file is from the older card.
So I wonder, why there is no rule for a wlan1, only for existing eth0 and obsolete wlan0?

Thom1b 03-13-2019 05:17 AM

That's why I use "/etc/rc.d/rc.local" to remove "/etc/udev/rules.d/70-persistent-net.rules".

zdolar 03-14-2019 08:51 AM


Originally Posted by Thom1b (Post 5973324)
That's why I use "/etc/rc.d/rc.local" to remove "/etc/udev/rules.d/70-persistent-net.rules".

Yes I've read the tread, where is that comment.

Also after reading udev descriptions, I realise there is no way to "switch off" that feature, except the above you suggesting. Strange. :(
After replacing a hardware you have to update a bunch of config files (and o god if forget one!)

All times are GMT -5. The time now is 01:25 PM.