sudo netplan generate
sudo vim /etc/netplan/xxxx.ymal
network: ethernets: enp0s3: addresses: [192.168.199.101/24, ] dhcp4: no dhcp6: no gateway4: 192.168.199.1 nameservers: addresses: [8.8.8.8, 9.9.9.9] version: 2
sudo netplan apply