$ cat /etc/netplan/50-cloud-init.yaml
# This file is generated from information provided by the datasource. Changes
# to it will not persist across an instance reboot. To disable cloud-init's
# network configuration capabilities, write a file
# /etc/cloud/cloud.cfg.d/99-disable-network-config.cfg with the following:
# network: {config: disabled}
network:
ethernets:
enp6s18:
addresses:
- 188.188.4.110/24
nameservers:
addresses:
- 223.5.5.5
search: []
routes:
- to: default
via: 188.188.4.1
version: 2
$ netplan apply
$ systemctl restart systemd-networkd