essa dica me ajudou:
So, in my case, I would use the interface designation enp0s25.
Next, edit your netplan file:
sudo nano /etc/netplan/01-netcfg.yaml
Amend the file to read:
network: version: 2 renderer: networkd ethernets: enp0s25: dhcp4: no addresses: [192.168.100.40/22] gateway4: 192.168.100.1 nameservers: addresses: [126.96.36.199,188.8.131.52]
Of course, susbstitue your exact details here. Spacing, indentation, etc. are crucial. Proofread carefully. Save (Ctrl+o followed by Enter) and close (Ctrl+x) the text editor.
sudo netplan apply sudo ip link set enp0s25 down sudo ip link set enp0s25 up
Did you get the requested IP address?
ip addr show
Can you ping?
ping -c3 184.108.40.206 ping -c3 www.ubuntu.com
If you get ping returns, you are all set.