You are not logged in.

#1 2022-11-27 11:18:32

lotor57917
Member
Registered: 2022-11-27
Posts: 3

[Solved] NetworkManager does not autoconnect (eth/wlan)

Hi folks,

every time I start my machine I need to manually connect to the network despite NM being configured to auto connect.

Please see here:

$ nmcli -f name,autoconnect connection

NAME                              AUTOCONNECT 
Azure VPN                         yes         
Wired (Dock)                      yes         
tun0                              no          

And also, both VPN and wired network have:

All users may connect to this network

Any idea of how to fix this?

Thank you.

Last edited by lotor57917 (2022-11-29 10:19:35)

Offline

#2 2022-11-27 12:14:12

Head_on_a_Stick
Member
From: London
Registered: 2014-02-20
Posts: 7,732
Website

Re: [Solved] NetworkManager does not autoconnect (eth/wlan)

Does this apply here?

If not can we see the output of

find /etc/systemd -type l -exec test -f {} \; -print | awk -F'/' '{ printf ("%-40s | %s\n", $(NF-0), $(NF-1)) }' | sort -f

Thanks!

Offline

#3 2022-11-27 12:53:07

lotor57917
Member
Registered: 2022-11-27
Posts: 3

Re: [Solved] NetworkManager does not autoconnect (eth/wlan)

Head_on_a_Stick wrote:

Does this apply here?

If not can we see the output of

find /etc/systemd -type l -exec test -f {} \; -print | awk -F'/' '{ printf ("%-40s | %s\n", $(NF-0), $(NF-1)) }' | sort -f

Thanks!

The article seems to worry only about VPN not connecting, my problem is a bit different given the whole connection does not work. However I can try that and give feedback, maybe failing the VPN is also failing the whole connection.

Head_on_a_Stick wrote:
find /etc/systemd -type l -exec test -f {} \; -print | awk -F'/' '{ printf ("%-40s | %s\n", $(NF-0), $(NF-1)) }' | sort -f
NetworkManager.service                   | multi-user.target.wants
NetworkManager-wait-online.service       | network-online.target.wants

Thank you for the help

Offline

#4 2022-11-27 13:31:22

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 21,736

Re: [Solved] NetworkManager does not autoconnect (eth/wlan)

That's almost certainly not the entirety of the command and filtering it for NetworkManager misses the point of why we want to see the output, post all of it

Offline

#5 2022-11-27 14:14:21

tucuxi
Member
From: Switzerland
Registered: 2020-03-08
Posts: 291

Re: [Solved] NetworkManager does not autoconnect (eth/wlan)

Post NetworkManager's log.

journalctl -b -u NetworkManager

Offline

#6 2022-11-29 10:19:07

lotor57917
Member
Registered: 2022-11-27
Posts: 3

Re: [Solved] NetworkManager does not autoconnect (eth/wlan)

@Head_on_a_Stick suggestion was spot on.

I tried to reboot after unticking "Automatically connect to this VPN" and that worked. Thanks. I will set up the dispatcher to connect as per wiki.

Offline

Board footer

Powered by FluxBB