Set a static IP on Ubuntu. All Ubuntu versions, from Ubuntu 22.04, and Ubuntu 20.04 down to Ubuntu 12.04, are covered in this tutorial. The guide explains setting a static IP on an Ubuntu system from the command line. It covers the network configuration for all recent Ubuntu versions and includes instructions to configure a static IP address, set the hostname, and configure name resolving.
Source: Howtoforge Linux Howtos und Tutorials – Read More