EDIT (2022/01/03):
As per Douglas Kosovic's answer, updating to version 1.20.08 does indeed fix this issue.
For completeness, I manually added the repository for good measure beforehand.
sudo add-apt-repository ppa:nm-l2tp/network-manager-l2tp
sudo apt update
Ubuntu Version 22.04 LTS
Problem:
I am trying to setup an L2TP VPN connection with manual IP address, netmask, gateway and DNS. However, the manual IP address and netmask are not used when I connect to the VPN.
Expected outcome
The IP address should be of the form XXX.XX.XX.124 and the netmask should be XXX.XXX.XXX.224.
Actual outcome
The IP address is of the form XXX.XX.XX.100 and the netmask is of the form XXX.XXX.XXX.255.
Other information
I'm doing this via GUI having installed network-manager-l2tp-gnome
, with the manual settings shown in the screenshot.
Screenshot of manual settings
I have setup the same VPN connection successfully from my Macbook in the past so I don't believe any further manual changes are needed (e.g. routing).
Below is the output from ifconfig ppp0
(with censoring of the IP address and netmask done by me):
ifconfig ppp0
ppp0: flags=4305<UP,POINTOPOINT,RUNNING,NOARP,MULTICAST> mtu 1400
inet XXX.XX.31.100 netmask XXX.XXX.XXX.255 destination 1.0.0.1
ppp txqueuelen 3 (Point-to-Point Protocol)
RX packets 6 bytes 1094 (1.0 KB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 132 bytes 14714 (14.7 KB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
I'm not knowledgeable on networking issues so apologies if I've been over cautious in my redacting of bits of information and there's more information needed, do let me know if that's the case.
(Equally if I've shared too much then please also let me know!)
Thanks!