sudo touch /etc/cloud/cloud-init.disabled
Add a file called 99_config.yaml
to the netplan (/etc/netplan
) folder with the following content.
IP Address should fit your CIDR block configured in your router.
network:
version: 2
renderer: networkd
ethernets:
eth0:
addresses:
- 192.168.1.10/24
gateway4: 192.168.1.1
nameservers:
addresses: [8.8.8.8, 1.1.1.1]