Personally, I was wondering why pihole needs a static IP address, if using the pihole v4 default blocking mode
. All my devices have a MAC assigned DHCP address. This ensures that all devices always get the same IP address, but allow me to change the DHCP options network wide, or assign specific options for specific hosts from a central point of administration (pfsense in my environment).
What might work is:
- copy dhcpcd.conf before installing pihole
- install pihole -> dhcpcd.conf now becomes static
- copy the original dhcpcd.conf over the one pihole wrote.
This would allow me to move the SD card between my production pi and my test pi's, Since they all have different MAC addresses, I know exactly which IP address to use to reach the different pi's.
Downside of course is you need to watch out for changes made by pihole -r
.
I've been using IPv6check.sh to handle the IPv6 address change.
I would very much like to be the static address assignment, during pihole installation, optional.