LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums 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 07-25-2020, 09:55 AM   #1
lq_usr_5million
LQ Newbie
 
Registered: Jul 2020
Posts: 1

Rep: Reputation: Disabled
NetworkManager wired connection will not autoconnect. connection.autoconnect is set to yes


I am having odd issue. Some details first. The issue is occuring on a VM with bridged networking, in addition the connection in question is also automatically connectiong to a VPN.

There is no issues on the host, but on the guest (Fedora 28) for some reason the connection has stopped autoconnecting on boot. If I rdp into the guest and issue the command nmcli con up, it will go up just fine. If I use the GUI, go in to edit the connection, then save and go out, it will go up just fine. connection.autoconnect is set to yes. I am not sure why it will not autoconnect.

The connection had worked fine for years. However, I needed to change the VPN connection. So I added a new VPN connection, took the connection down, deleted the old one. When I tried to bring the connection back up, it failed and I was kicked out of the session. I rebooted the VM and it would not autoconnect, but will work fine if I connect it manually.

Any help would be appreciated. Thank you.
 
Old 07-25-2020, 05:47 PM   #2
ferrari
LQ Guru
 
Registered: Sep 2003
Location: Auckland, NZ
Distribution: openSUSE Leap
Posts: 6,053

Rep: Reputation: 1179Reputation: 1179Reputation: 1179Reputation: 1179Reputation: 1179Reputation: 1179Reputation: 1179Reputation: 1179Reputation: 1179
Examine the NetworkManager logging. That should pinpoint where the issue lies. If necessary share the logging here (eg via https://pastebin.com/) for others to advise further.
 
Old 07-25-2020, 06:05 PM   #3
ferrari
LQ Guru
 
Registered: Sep 2003
Location: Auckland, NZ
Distribution: openSUSE Leap
Posts: 6,053

Rep: Reputation: 1179Reputation: 1179Reputation: 1179Reputation: 1179Reputation: 1179Reputation: 1179Reputation: 1179Reputation: 1179Reputation: 1179
FWIW, I just tested my VPN connection on my openSUSE (Leap 15.2, KDE Plasma) guest. To make it start automatically, there is an option in the underlying 'DHCP' connection to start the desired VPN connection. The VPN connection itself can't be configured to start automatically via its configuration. I'm not sure if this is a recent change or not. I recall a time when a dispatcher script was required to make this happen.

My DHCP connection has the following in it
Code:
[connection]
id=DHCP
uuid=a845233a-565e-39eb-b5a4-09fd41d7e581
type=ethernet
autoconnect-priority=-100
permissions=
secondaries=eaec652b-117f-4718-a718-e1a0c4c95fb5;
The secondary (VPN) connection is referenced by the last entry in the '[connection]' section of the config fie/

The uuid of my L2TP connection is shown below...
Code:
[connection]
id=VPN (L2TP)
uuid=eaec652b-117f-4718-a718-e1a0c4c95fb5
type=vpn
permissions=

Last edited by ferrari; 07-25-2020 at 06:07 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
NetworkManager - wifi autoconnect not working UNLESS "all users may connect to this network" enabled Poprocks Slackware 3 08-31-2019 02:30 PM
NetworkManager doesn't autoconnect WiFi although it is configured to do so berndbausch Linux - Networking 1 05-01-2019 09:51 PM
[SOLVED] F14 NetworkManager to autoconnect OpenVPN at startup sergani Linux - Networking 4 07-06-2011 12:39 PM
3D acceleration YES YES YES glxgears results props666999 Slackware 44 07-29-2005 08:40 PM
Yes Yes Yes! I Got Sound! shazam75 LinuxQuestions.org Member Success Stories 2 10-14-2004 04:11 AM

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

All times are GMT -5. The time now is 05:56 PM.

Contact Us - Advertising Info - Rules - Privacy - Donations - Contributing Member - LQ Sitemap - "Weather apps tell you it'll rain. Wyndo tells you when to go."
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