cd /etc/netplan
vim 1-network-manager-all.yaml
# Let NetworkManager manage all devices on this systemnetwork:
version: 2 renderer: NetworkManager
ethernets:
enp0s31f6:
dhcp4: no
addresses: [192.168.1.88/24] gateway4: 192.168.1.1
nameservers:
addresses: [114.114.114.114]sudo netplan apply