LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 03-12-2019, 09:10 AM   #1
zdolar
LQ Newbie
 
Registered: Jul 2009
Location: Slovenija
Distribution: Slackware
Posts: 27

Rep: Reputation: 1
slackware-current iwlwifi .. wlan125: renamed from wlan0


Slackware64-current, updated 7. 3. 2019

What is the reason and how to prevent this:

Code:
[/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
...
 
Old 03-12-2019, 09:19 AM   #2
ponce
Senior Member
 
Registered: Aug 2004
Location: Pisa, Italy
Distribution: Slackware
Posts: 4,663

Rep: Reputation: Disabled
you should have already a couple of lines like these in /etc/udev/rules.d/70-persistent-net.rules
Code:
# 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.
 
1 members found this post helpful.
Old 03-13-2019, 02:55 AM   #3
zdolar
LQ Newbie
 
Registered: Jul 2009
Location: Slovenija
Distribution: Slackware
Posts: 27

Original Poster
Rep: Reputation: 1
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?
 
Old 03-13-2019, 05:17 AM   #4
Thom1b
Member
 
Registered: Mar 2010
Location: France
Distribution: Slackware
Posts: 238

Rep: Reputation: 183Reputation: 183
Hi,
That's why I use "/etc/rc.d/rc.local" to remove "/etc/udev/rules.d/70-persistent-net.rules".
 
Old 03-14-2019, 08:51 AM   #5
zdolar
LQ Newbie
 
Registered: Jul 2009
Location: Slovenija
Distribution: Slackware
Posts: 27

Original Poster
Rep: Reputation: 1
Quote:
Originally Posted by Thom1b View Post
Hi,
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!)
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
wlan0 renamed to eth1 yozh Linux - Networking 2 12-15-2015 02:30 PM
[SOLVED] Wireless adapter interface renamed to long string instead of wlan0 goliber Linux - Networking 2 10-16-2015 07:47 AM
BUG Report: 64-current (july 18th) - eth0 renamed eth1 GazL Slackware 2 07-20-2012 08:08 AM
slackware 12.0 and intel iwlwifi 4965AGN diem Slackware 3 02-05-2008 10:48 AM
Suse 10.2: wlan0 keeps getting renamed eth0 xbennyboy SUSE / openSUSE 2 12-24-2006 01:52 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 11:39 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration