Change static IP in local network

Add new yaml config file for netplan:

sudo nano /etc/netplan/01-netcfg.yaml

By applying a new config, we override the action of the previous one

network:
  version: 2
  renderer: networkd
  ethernets:
    eno1:
      dhcp4: no
      addresses:
        - 192.168.1.72/24
      gateway4: 192.168.1.1
      nameservers:
          addresses: [8.8.8.8, 1.1.1.1]

Applying all configs in /etc/netplan:

sudo netplan apply

Сheck if everything was done correctly

ip addr show dev eno1