LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
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 02-13-2017, 09:54 PM   #1
upnort
Senior Member
 
Registered: Oct 2014
Distribution: Slackware
Posts: 1,893

Rep: Reputation: 1161Reputation: 1161Reputation: 1161Reputation: 1161Reputation: 1161Reputation: 1161Reputation: 1161Reputation: 1161Reputation: 1161
NetworkManager woes in 14.2


Slackware 14.2 64-bit.

What is the correct way to configure NetworkManager to handle multiple wired connections?

I have been using my laptop with Slackware 14.x and NetworkManager. More or less NM has worked but I only used the laptop at home. I configured both the wired and wireless to auto-connect. Simple arrangement. That worked fine when booting the laptop.

I now am using my laptop at home and work. I use both wired and wireless. Four connection points.

I prefer to configure all four points with auto-connect. That no longer works well when booting.

When I am at home and boot the laptop with the cable connected, NetworkManager always connects to the work connection because the name of the connection is alphabetically first. I have to wait for the laptop to finish booting, log in, and manually select my home wired connection.

Repeat ad nauseum.

With both wired connections configured not to auto-connect, booting with the cable connected results in NM connecting to eth0 rather than ignoring the cable. NM never creates a connection because auto-connect is disabled.

Seems there should be a sane timeout when a wired connection is unavailable and then try the next wired or wireless point.

Thus far my work-around is:

1) Disable the auto-connect on the wired connections.
2) Never connect the cable when booting.
3) Finish booting.
4) Insert the cable.
5) Use nmcli or nm-applet to select the desired wired connection.

Inconvenient. I am accustomed to several years at home when I toggle the cable that NM adjusts automatically. Seems I can't do that anymore.

I think I can leave the home wired to auto-connect, but then at work ensure I never connect the cable when booting. The caveat with that is should I connect the cable at work then NM will auto-connect to my home connection, which is unavailable.

I am not interested in wicd, et.al. I only want to know how to configure NM to better handle wired connections.

Thanks.
 
Old 02-14-2017, 08:51 AM   #2
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 16,289

Rep: Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322
You have the option not to use NetworkMisManager in Slackware. I certainly don't. I rarely met such a poor ratio of junk installed to performance. If you're even slightly out of the ordinary, it will barf and frustrate you.
 
3 members found this post helpful.
Old 02-14-2017, 09:41 AM   #3
hitest
Guru
 
Registered: Mar 2004
Location: Canada
Distribution: Void, Debian, Slackware
Posts: 7,342

Rep: Reputation: 3746Reputation: 3746Reputation: 3746Reputation: 3746Reputation: 3746Reputation: 3746Reputation: 3746Reputation: 3746Reputation: 3746Reputation: 3746Reputation: 3746
Another networking GUI that you can try is wicd; you can locate it in the /extra directory of your Slackware DVD.

Last edited by hitest; 02-14-2017 at 09:48 AM.
 
Old 02-14-2017, 09:45 AM   #4
Didier Spaier
LQ Addict
 
Registered: Nov 2008
Location: Paris, France
Distribution: Slint64-15.0
Posts: 11,057

Rep: Reputation: Disabled
Quote:
Originally Posted by upnort View Post
I am not interested in wicd, et.al. I only want to know how to configure NM to better handle wired connections.
This has been overlooked, it seems.
 
Old 02-14-2017, 11:52 AM   #5
upnort
Senior Member
 
Registered: Oct 2014
Distribution: Slackware
Posts: 1,893

Original Poster
Rep: Reputation: 1161Reputation: 1161Reputation: 1161Reputation: 1161Reputation: 1161Reputation: 1161Reputation: 1161Reputation: 1161Reputation: 1161
Quote:
This has been overlooked, it seems.
Was this directed to me or hitest, who seemed to ignore or not read the end of my original post?

Quote:
You have the option not to use NetworkMisManager in Slackware. I certainly don't. I rarely met such a poor ratio of junk installed to performance. If you're even slightly out of the ordinary, it will barf and frustrate you.
"NetworkMisManager"

What do you use?

NM works fine for me as long as I don't roam. Within the home, which has been the case until very recently, NM adjusts to whether I am on cable or wireless. No major complaints although I have struggled with dispatcher scripts working correctly to connect to my server.

NM seems to get confused when putting the laptop to sleep using one interface and then resuming from sleep with the other interface. I think the problem has been me with my dispatcher scripts, but I accepted the anomaly and don't change the interface until fully resumed from sleep.

NM works probably well enough with respect to choosing wireless points when roaming. There seems to be no thought put into handling wired in an sane manner. As I am new to roaming I got to the point of frustration with respect to wired connections. I am not above learning the problem is PEBKAC. I just want to know how to manage multiple wired connections in a sane manner. Perhaps there is no sane method with NM. I am sure many Slackers use a laptop in a similar manner. I hoped some would share how they manage going to and from multiple locations.

I accept that eth0 has precendence over wlan0. Fair enough. When booting seems to me NM should move to the next wired connection when there is no obvious response. Should take only one second to determine there is no gateway.

Part of the frustration is managing the firewall. Perhaps that too is PEBKAC. I use the alienbob online tool to generate the firewall rules for my rc.firewall. Those rules need to know the interface. Changing the interface means restarting the firewall. To avoid firewall issues perhaps I ought to hard-code both eth0 and wlan0 into the script although only one interface is used at any time.
 
Old 02-14-2017, 12:38 PM   #6
hitest
Guru
 
Registered: Mar 2004
Location: Canada
Distribution: Void, Debian, Slackware
Posts: 7,342

Rep: Reputation: 3746Reputation: 3746Reputation: 3746Reputation: 3746Reputation: 3746Reputation: 3746Reputation: 3746Reputation: 3746Reputation: 3746Reputation: 3746Reputation: 3746
Quote:
Originally Posted by upnort View Post
Was this directed to me or hitest, who seemed to ignore or not read the end of my original post?
This was directed at me. I didn't read the entire post. Sorry for wasting your time.
 
Old 02-14-2017, 12:44 PM   #7
Didier Spaier
LQ Addict
 
Registered: Nov 2008
Location: Paris, France
Distribution: Slint64-15.0
Posts: 11,057

Rep: Reputation: Disabled
Don't be sorry. I have done that way too often

Last edited by Didier Spaier; 02-14-2017 at 12:45 PM.
 
1 members found this post helpful.
Old 02-14-2017, 12:52 PM   #8
upnort
Senior Member
 
Registered: Oct 2014
Distribution: Slackware
Posts: 1,893

Original Poster
Rep: Reputation: 1161Reputation: 1161Reputation: 1161Reputation: 1161Reputation: 1161Reputation: 1161Reputation: 1161Reputation: 1161Reputation: 1161
Thanks, but no apology necessary. Besides, I am the last person who should get angry at somebody missing a point. The older I get the blinder I grow. I think the blindness is willful.

The reply could have been directed at me -- in the sense that Didier Spaier was trying to subtly say there is a solution as long as I do not close doors, er, my mind.

Perhaps I should test wicd. I wrote that line in my original post because I wanted to keep the discussion focused on NM not managing wired connections. I have no idea whether wicd does that better. I just don't know where I will find the time to test. That and the human tendency to stay with the devil we know rather than the devil we don't know.

Perhaps I should have started the thread differently. The problem might not be NM per se, but learning how to manage multiple locations. Roaming with my laptop is new to me.

Life is sooooo much simpler when only using rc.inet1.conf.
 
1 members found this post helpful.
Old 02-14-2017, 01:38 PM   #9
phenixia2003
Senior Member
 
Registered: May 2006
Location: France
Distribution: Slackware
Posts: 1,052

Rep: Reputation: 1008Reputation: 1008Reputation: 1008Reputation: 1008Reputation: 1008Reputation: 1008Reputation: 1008Reputation: 1008
Hello,

Quote:
Originally Posted by upnort View Post
Seems there should be a sane timeout when a wired connection is unavailable and then try the next wired or wireless point.
I guess that autoconnect-retries-default is what you're looking for :
Code:
The number of times a connection activation should be automatically tried before switching to 
another one. This value applies only to connections that can auto-connect and have a 
connection.autoconnect-retries property set to -1. If not specified, connections will 
be retried 4 times.
To take advantage of this feature, you'll need NetworkManager >=1.6.0 , which is included in -current (14.2 comes with 1.2.2).

--
SeB
 
1 members found this post helpful.
Old 02-14-2017, 03:24 PM   #10
upnort
Senior Member
 
Registered: Oct 2014
Distribution: Slackware
Posts: 1,893

Original Poster
Rep: Reputation: 1161Reputation: 1161Reputation: 1161Reputation: 1161Reputation: 1161Reputation: 1161Reputation: 1161Reputation: 1161Reputation: 1161
Quote:
I guess that autoconnect-retries-default is what you're looking for :
Interesting. If I find the time I'll try compiling the newer version on 14.2.

The description implies that after a default of 4 tries NM should bail or move another auto-connect connection. I wonder how much time is consumed between each try. The rc.firewall script executes rather quickly after NM is launched.
 
Old 02-14-2017, 05:42 PM   #11
BratPit
Member
 
Registered: Jan 2011
Posts: 250

Rep: Reputation: 100Reputation: 100
You can autoconnection priority in 14.2 without compile newer version.But I do not know is it what you want.

Check all priority is the same.

Quote:
nmcli -f NAME,UUID,AUTOCONNECT,AUTOCONNECT-PRIORITY c
add/change - default thay have the same 0 / priority on your sole decision to every autoconnection.

Quote:
nmcli c mod <con_name> connection.autoconnect.priority <add number priority>

Last edited by BratPit; 02-14-2017 at 05:44 PM.
 
Old 02-14-2017, 07:19 PM   #12
upnort
Senior Member
 
Registered: Oct 2014
Distribution: Slackware
Posts: 1,893

Original Poster
Rep: Reputation: 1161Reputation: 1161Reputation: 1161Reputation: 1161Reputation: 1161Reputation: 1161Reputation: 1161Reputation: 1161Reputation: 1161
Thanks.

I had run across the autoconnect-priority option. I wondered whether that might help. If I assign a priority higher than zero to the home wired connection, then when at home NM should not try to start the work wired connection. Because of the higher priority, when I am at work then I think NM will still try to start the home wired connection, which will give the same results I have at home as described in the original post.

I will tinker to be sure.
 
Old 02-15-2017, 02:52 PM   #13
SCerovec
Senior Member
 
Registered: Oct 2006
Location: Cp6uja
Distribution: Slackware on x86 and arm
Posts: 2,471
Blog Entries: 2

Rep: Reputation: 980Reputation: 980Reputation: 980Reputation: 980Reputation: 980Reputation: 980Reputation: 980Reputation: 980
Perhaps mark this thread as solved?
 
Old 02-15-2017, 05:18 PM   #14
upnort
Senior Member
 
Registered: Oct 2014
Distribution: Slackware
Posts: 1,893

Original Poster
Rep: Reputation: 1161Reputation: 1161Reputation: 1161Reputation: 1161Reputation: 1161Reputation: 1161Reputation: 1161Reputation: 1161Reputation: 1161
Quote:
Perhaps mark this thread as solved?
Based on?
 
Old 02-17-2017, 11:16 AM   #15
SCerovec
Senior Member
 
Registered: Oct 2006
Location: Cp6uja
Distribution: Slackware on x86 and arm
Posts: 2,471
Blog Entries: 2

Rep: Reputation: 980Reputation: 980Reputation: 980Reputation: 980Reputation: 980Reputation: 980Reputation: 980Reputation: 980
Oh, so no luck with Network manager after all?

I was under the impression that ordering by priority would be the solution?
 
  


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
[SOLVED] What is NetworkManager ??? czezz Slackware 9 09-01-2012 10:13 PM
NetworkManager Rory Glenn Pascua Linux - Software 3 06-15-2012 12:18 PM
[SOLVED] NetworkManager lopid Slackware 8 05-13-2012 12:22 PM
No NetworkManager! cynpeterson Linux - Wireless Networking 5 02-19-2012 10:05 PM
networkmanager giraf Ubuntu 7 05-05-2010 04:22 PM

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

All times are GMT -5. The time now is 09:24 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