How to change ubuntu ip address

In this article let’s discuss about How to change ubuntu ip address . Let’s go through the following methods without any delay.

Method 1:

#/etc/netplan/99_config.yaml
network:
  version: 2
  renderer: networkd
  ethernets:
    eth0:
      addresses: [10.10.10.2/24]
      gateway4: 10.10.10.1
      nameservers:
          search: [mydomain, otherdomain]
          addresses: [9.9.9.9, 1.1.1.1]

Hope the above solution works.

Realted Posts : How to know linux kernel type cli command