Commissario
Interestingly, Pi-hole doesn't know how to set up a static address when being installed on Ubuntu 24.04
It creates a dhcpcd.conf file but dhcpcd isn't included with Ubuntu 24.04 so creating that doesn't actually do anything. I had to set it manually by editing /etc/netplan/50-cloud-init.yaml, changing the permissions on that file and then running sudo netplan apply.
It creates a dhcpcd.conf file but dhcpcd isn't included with Ubuntu 24.04 so creating that doesn't actually do anything. I had to set it manually by editing /etc/netplan/50-cloud-init.yaml, changing the permissions on that file and then running sudo netplan apply.
Code:
# 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:
version: 2
renderer: networkd
ethernets:
enp1s0:
dhcp4: no
addresses:
- 192.168.1.2/24
routes:
- to: default
via: 192.168.1.1
nameservers:
addresses: [8.8.8.8, 8.8.4.4]
wifis: {}