I have set up a yaml file in folder '/etc/netplan' following the template:
network:
version: 2
ethernets:
eth0:
dhcp4: false
addresses:
- my public ip from 'curl ipinfo.io/ip'
gateway4: my gateway ip from 'ip route | grep default', e.g. it is 192.168.1.1 for log...