Why does it seem impossible to set static ip via commandline

why does it seem impossible to set static ip via commandline?

Ubuntu documentation says to use netplan, but it isn’t installed. /etc/interfaces points to /etc/interfaces.d/ , but that is empty? What is going on. Not to gripe too much, but setting static IP used to be an easy task in Linux. No, I don’t want to use the GUI. I have 8 of these plugged into a switch and no desire to go round robin with the monitor. Please, help.

Thank you

NetworkManager sometimes replaces the old static configuration files. NetworkManager came about because of WiFi, and was designed to control network setup when different networks might become available or go away in some dynamic way.

Try using “sudo nm-connection-editor” to change this (you might need to “sudo apt-get install network-manager-gnome”). Usually knowing the MAC address of the device before starting helps (such as from “ifconfig”). There are some other similar tools which don’t require the GUI, but I find nm-connection-editor usually “just works”.

EDIT: Also, some network preferences only show up when a user logs in to the GUI. NetworkManager can change what it does depending on who logs in to the GUI.