Nicolas
Whaaat? Is Raspberry Pi OS financed by Canonical? Wait.. I have a sneaking suspicion why Raspbian suddenly became Raspberry Pi OS.
:-(
Well, to the story: I didn't trust those nmcli commands and traveled to housing cellar - knowing that in the vicinity I have the Moodlebox access point as a backdoor. Then the network admin there proposed 'nmtui', the "Textual User Interface" of the NetworkManager as a compromise. It looked more familiar and did the intended address change - well, almost. We couldn't log in from the WAN, only LAN. The network setup in the data center is complicated, WAN access through Nginx reverse proxy, /24 network blocks withing 10.0.0.0/24 given to each customer. After close to an hour of debugging found that nmtui has decided the netmask of its own, overwritten 255.255.255.0 we put with 255.0.0.0. In hindsight it is clear: This "intelligent" tool saw the 10.x.x.x IP address and decided on the Class A netmask.
Compare that hulabooo with the conventional method:
Change
iface INTERFACE inet dhcp
to
iface INTERFACE inet static
address IPADDRESS
netmask NETMASK
gateway IPGATEWAY
and restart the networking daemon, that has worked 99% of the time for decades! I find no words to conclude.