LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 04-21-2024, 09:26 AM   #1
linuxuser371038
LQ Newbie
 
Registered: Jan 2024
Posts: 26

Rep: Reputation: 0
Interface name for wlan changes randomly causing network manager to not be able to reconnect


Happens after things like closing laptop (sleep) and reopening and also when starting libvirtd, which seems to shunt other interface names to different names including wlan and mobile interface. Wlan0 become wlan1, then wlan2 etc.

How can I either stop the interfaces changing or make the network manager profile's interface name use something non mutable like how you do with hard drives in fstab using uuid and such? I looked in the nmcli man however did not see any pertinent information to do this though was not certain what searches to do to find. I searched under ifname but didn't find.

Currently I am having to go into the network manager profile and edit it to the new name and reload each time which stinks.

Last edited by linuxuser371038; 04-21-2024 at 09:29 AM.
 
Old 04-21-2024, 09:42 AM   #2
hazel
LQ Guru
 
Registered: Mar 2016
Location: Harrow, UK
Distribution: LFS, AntiX, Slackware
Posts: 7,597
Blog Entries: 19

Rep: Reputation: 4455Reputation: 4455Reputation: 4455Reputation: 4455Reputation: 4455Reputation: 4455Reputation: 4455Reputation: 4455Reputation: 4455Reputation: 4455Reputation: 4455
You don't say what distro you are using. Modern kernels by default use path-dependent and therefore predictable names for network interfaces. Some, like Slackware, still use the old names like wlan0. You may be using such a distro. Check your kernel command line: if it includes the option net.ifnames=0, remove this.
 
1 members found this post helpful.
Old 04-21-2024, 12:13 PM   #3
linuxuser371038
LQ Newbie
 
Registered: Jan 2024
Posts: 26

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by hazel View Post
You don't say what distro you are using. Modern kernels by default use path-dependent and therefore predictable names for network interfaces. Some, like Slackware, still use the old names like wlan0. You may be using such a distro. Check your kernel command line: if it includes the option net.ifnames=0, remove this.
I am using archlinux, which is said to be 'bleeding edge' eh? However indeed I do still have the wlan rather than other naming format. Recent install too within last few weeks. So strange that it is not using the way you say.

Ok based on your reply I just found my answer I think:

https://bbs.archlinux.org/viewtopic....79767#p1879767

Disabled due to iwd not being able to handle them apparently. Time to switch to another if that is the case. I also got this issue with mobile network interface name though which uses modemmanager so I hope not the case for that too as I want persistent names for both.

Ah thinking about it I guess this will suppress predictable naming system wide. Seems dumb to muck all that up just to add iwd into the mix as, while handy, is not that great a tool above wpa_supplicant. I will dump it out and go back to wpa_supplicant then.

Last edited by linuxuser371038; 04-21-2024 at 12:28 PM.
 
  


Reply



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
Fedora 32 wifi signal dropping randomly and unable to reconnect Thomastothuk Linux - Networking 7 01-02-2022 12:49 PM
network manager can't reconnect to WiFi network. igadoter Slackware 6 10-28-2021 08:19 AM
Internet disrupts ever 2-3 minutes causing me to have to disconnect/reconnect for service honestjoe Linux - Networking 10 09-09-2019 08:48 AM
Internet connection randomly being dropped - correct way to reconnect it? ljones0 Linux - Networking 10 10-04-2014 10:38 PM
network interface name causing problems android6011 Linux - Networking 2 09-16-2006 10:41 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 01:16 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
Open Source Consulting | Domain Registration