nano /etc/netplan/00-installer-config.yam
network: ethernets: enp0s3: addresses: - 10.66.10.7/16 dhcp4: false routes: - to: default via: 10.66.10.1 nameservers: addresses: - 8.8.8.8 - 8.8.4.4 search: - workgroup version: 2
sudo netplan try
sudo netplan apply
References
https://technologyrss.com/how-to-configure-static-ip-address-on-ubuntu-22-04/