By default, a device connected to your home router, whether it is connected via cable or Wi-Fi, will most likely receive a dynamic IP address. If you also use your managed Ubuntu VPS as an FTP or web server, you want to configure a static IP address for it so that you can reach the server using the same IP address. In this tutorial, we will show you how to configure a static IP address on Ubuntu 20.04. To set up a static IP address on Ubuntu:

  1. Open the Terminal by pressing Ctrl+Alt+T in Ubuntu or by clicking on the icon in the top left corner of your screen.
  2. Type in “sudo nano /etc/network/interfaces” and press Enter.
  3. Scroll down until you see “iface eth0” and delete everything after “auto”. This should leave you with something like this: iface eth0 inet static address 192.168.1.10 netmask 255.255.255.0 gateway 192.168.1.1
  4. Save and close the file by pressing Ctrl+X then Y then Enter .
  5. Restart your computer by typing “sudo reboot” into the Terminal window and press Enter . ..

Steps to Set a Static IP Address in Ubuntu

To open the Settings app on your iPhone, start by going to the application menu and selecting “Settings.” ..

To configure your wired network interface, click on the “Network” tab in the left sidebar and then click on the gear icon of the network interface you want to configure. In my case, I’m configuring my wired interface. ..

If you want to use a static IP address, you can change it to one.

To set the static IP address, you will need to select the IPv4 tab and change the Automatic setting to Manual.

Final Words

  1. In the Terminal, type: sudo apt-get update && sudo apt-get install static-ip
  2. Type: sudo nano /etc/network/interfaces and add the following line to it: static-ip=192.168.1.10
  3. Type: sudo reboot and press Enter