Netplan Static IP Address
Configuring Netplan for Static IP Address on Ubuntu
vim /etc/netplan/01-netcfg.yaml
network:
version: 2
renderer: networkd
ethernets:
ens160:
dhcp4: no
addresses: [192.168.1.224/24]
gateway4: 192.168.1.1
nameservers:
addresses: [192.168.1.1]
search: [example.com]
optional: true