I imported L2TP/IPsec VPN connection configuration file from Ubuntu mate 20.04 /etc/NetworkManager/system-connections/ to Ubuntu server 20.04 Next, on the Ubuntu server 20.04 PC, I check the nmcli connection "sudo nmcli con" in response I get an "empty field" How to solve this problem? enter image description here
Problem solved. I switched to Network-Manager in Netplan.
Since 17.10 Ubuntu Server, the Netplan utility has been used to manage the network configuration.
So, create this file:
And put this content and save:
Then disable the default configuration:
It may need a restart of the NetworkManager service or maybe a reboot.
IMPORTANT: before doing so, be sure that you have physical access to the server, since it may be not reachable after this change.