Using Netplan to set a static IP address https://www.linux.com/topic/distributions/how-use-netplan-network-configuration-tool-linux/ Match the netplan configuration to the below run sudo chmod 600 /etc/netplan/your_config_file.yaml run sudo netplan try if there are no errors accept the changes