Console does not show actual subnet mask

Expected Behaviour:
When I view the Settings/System/Network Information pane in the web console, I will see my actual configured IP address and subnet mask of 172.31.0.3/21

Actual Behaviour:
The Pihole displays 172.31.0.3/24.

Debug Token:
https://tricorder.pi-hole.net/l4k8h7t98k

Additional details:
I configured a static IP address using the following entry in /etc/dhcpcd.conf:

interface eth0
static ip_address=172.31.0.3/21
static routers=172.31.0.1
static domain_name_servers=127.0.0.1
inform 172.31.0.3/21

From the command line, ip address and ifconfig both show the correct /21 subnet mask.

Seems it gets pulled from setupVars:

pi@noads:~ $ grep IPV4_ADDRESS /etc/pihole/setupVars.conf
IPV4_ADDRESS=10.0.0.2/24

Try run below one and select reconfigure:

pihole -r

Thanks, the reconfiguration run did the trick. I'm not sure why it didn't do it the first time, but at least it's working the way I expect it to now.

1 Like

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.