Set Static IP Address in Ubuntu

 How to Set Static IP Address in ubuntu

If you user of ubuntu 20.04 LTS and you need to connect your computer with network. use the following steps to set IP address on ubuntu.

How to configure a static IP address on Ubuntu 20.04 LTS Desktop using GNOME graphical user interface

1. Click on the top right network icon and select wired off.

2. Click on Wired settings.

3. Enable the wired and click on settings.

4. Click on IPv4 .

5. Select Manual.

6. Type IP address, Netmask and gateway, click on Apply.

You can also set the IP address on your ubuntu using command. for set the IP address using command use the following steps.

1.  first identify the name of the ethernet interface you want to configure.

Type command nmcli d and press enter

2. In Ubuntu 20.04 LTS version use Netplan for managing the network configuration. Netplan configuration are driven by .yaml files located in /etc/netplan directory.

Type command: cd /etc/netplan/

Type command: ls

Now type command: sudo nano /etc/netplan/01-network-manager-all.yaml and press enter

Type interface name, dhcp no, address, gateway4 and nameservers and save the file using ctrl +x. 

After save the file and apply the changes with using command

sudo netplan apply

Post a Comment