LinuxQuestions.org
Help answer threads with 0 replies.
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 11-15-2017, 07:10 PM   #1
dcroxton
Member
 
Registered: Apr 2004
Distribution: Ubuntu Jaunty
Posts: 91

Rep: Reputation: 16
How does network-manager determine which connection to use?


On the latest Ubuntu upgrade (last month), my network-manager stopped using the same saved connection automatically. It still opens an ethernet connection, but instead of using the one that I have defined (and marked as "automatically connect" and given it a priority of 20), it creates a new generic connection with every reboot. Since it doesn't have the DNS settings that I need, I have to manually connect to my saved connection.

I'm guessing there's something going on behind the scenes that perhaps I could change in a config file somewhere, I would be grateful if anyone could help.
 
Old 11-16-2017, 12:23 AM   #2
ferrari
LQ Guru
 
Registered: Sep 2003
Location: Auckland, NZ
Distribution: openSUSE Leap
Posts: 5,754

Rep: Reputation: 1137Reputation: 1137Reputation: 1137Reputation: 1137Reputation: 1137Reputation: 1137Reputation: 1137Reputation: 1137Reputation: 1137
The connection profiles are located in /etc/NetworkManager/system-connections/ and you can remove any that are unwanted of course.

The list of connections can be got via
Code:
nmcli c
What does the following report?
Code:
nmcli d
Is the ethernet interface being managed by NM? It won't manage any interfaces that are included in /etc/network/interfaces by default.
 
Old 11-16-2017, 08:13 AM   #3
dcroxton
Member
 
Registered: Apr 2004
Distribution: Ubuntu Jaunty
Posts: 91

Original Poster
Rep: Reputation: 16
Quote:
Originally Posted by ferrari View Post
The connection profiles are located in /etc/NetworkManager/system-connections/ and you can remove any that are unwanted of course.

The list of connections can be got via
Code:
nmcli c
What does the following report?
Code:
nmcli d
Is the ethernet interface being managed by NM? It won't manage any interfaces that are included in /etc/network/interfaces by default.
Thanks for that, ferrari. It turns out that I had a connection defined in /etc/network/interfaces, but that file also had a line "ensp0 default" (or whatever device the ethernet connection gets labelled as these days). My guess is that the upgrade stuck that line in there, probably I approved a merge without paying attention.

Derek
 
Old 11-16-2017, 11:10 PM   #4
ferrari
LQ Guru
 
Registered: Sep 2003
Location: Auckland, NZ
Distribution: openSUSE Leap
Posts: 5,754

Rep: Reputation: 1137Reputation: 1137Reputation: 1137Reputation: 1137Reputation: 1137Reputation: 1137Reputation: 1137Reputation: 1137Reputation: 1137
Ok, I assume all good now?
 
Old 11-19-2017, 09:15 AM   #5
dcroxton
Member
 
Registered: Apr 2004
Distribution: Ubuntu Jaunty
Posts: 91

Original Poster
Rep: Reputation: 16
Quote:
Originally Posted by ferrari View Post
Ok, I assume all good now?
Yes, thanks so much!
 
  


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
network connection manager vanbreukelingen Linux - Wireless Networking 1 03-11-2017 04:11 AM
connection manager system in network commm Linux - Networking 2 09-18-2010 11:26 AM
Network Manager Says There's A Network Connection When I Can't Ping Anything resuni Linux - Laptop and Netbook 3 06-11-2010 08:25 AM
wireless connection problems & now lost lan connection & network manager wont work Rainbowserpant Linux - Wireless Networking 2 09-02-2009 05:00 AM
network connection manager Tobitas SUSE / openSUSE 1 04-02-2006 10:22 AM

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

All times are GMT -5. The time now is 10:43 AM.

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