cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
13608
Views
1
Helpful
9
Replies

Cisco AnyConnect disconnects every 5 minutes then reconnects continuously on Ubuntu 20.04

zhs1824
Level 1
Level 1

I'm using Cisco AnyConnnect V4.8 as my VPN running Ubuntu 20.04 on my Dell latitude 5490 laptop. My VPN connects then disconnects every 5 minutes. Depending on the network sometimes the connection will stay longer periods of time when hardwired directly with ethernet wire but the problem still persists. I've been running into this problem ever since switching to Ubuntu 20.04 from Windows 10. Any help would be much appreciated! Thank you!

1 Accepted Solution

Accepted Solutions

Saurabh Dhakate
Cisco Employee
Cisco Employee

We have seen this problem on Ubuntu 20.04 if NetworkManager (NM) is on. Please test establishing VPN after disabling NM from Settings>Privacy>Connectivity. 

 

Regards/Saurabh

View solution in original post

9 Replies 9

marce1000
Hall of Fame
Hall of Fame

 

 - Check /var/log/messages when this happens (or around those time-frames), check if anything useful can be observed.

 M.



-- Each morning when I wake up and look into the mirror I always say ' Why am I so brilliant ? '
    When the mirror will then always repond to me with ' The only thing that exceeds your brilliance is your beauty! '

check MTU of your SP.

Saurabh Dhakate
Cisco Employee
Cisco Employee

We have seen this problem on Ubuntu 20.04 if NetworkManager (NM) is on. Please test establishing VPN after disabling NM from Settings>Privacy>Connectivity. 

 

Regards/Saurabh

This worked! Thank you so much :)!!

This solution doesn't work in either Ubuntu 20.04 or Ubuntu 22.04. Any other suggestions? I'm facing this issue in Ubuntu 22.04.3 LTS with Cisco Anyconnect (4.10.04071) downloaded from cisco 

Solved it. Disabling connectivity manager will not fix it. You have to remove it altogether in Ubuntu

sudo apt-get remove network-manager-config-connectivity-ubuntu

Fixed it for me. 10minutes so far and no network retries or drops!

This works for me. Thank you!

WARNING: Disabling and/or removing the network manager does fix the problem (at least for me), but it has a side-effect. When the system is rebooted, the network will not come back up (because there is no network manager to manage it), so the system comes up with no network. In order to resolve the issue, you now have to start the network manually using these commands (as root):

$ ifconfig <interface> up
$ dhclient <interface>

I just scripted these and added them to the system startup