This image uses Netplan to configure the network manager which is "Networkmanager".
Setting the IP address using ifconfig will NOT be applied persistently, and can/will be overridden periodically by Networkmanager
This manages network conflicts for controlling IP networks like Ethernet and WiFi.
Network Manger has several command line utilities
nmcli to get current network status
nmui is a termnial user interface to modify connections