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
:
<?php
// Networking
if (isset($setupVars["PIHOLE_INTERFACE"])) {
$piHoleInterface = $setupVars["PIHOLE_INTERFACE"];
} else {
$piHoleInterface = "unknown";
}
if (isset($setupVars["IPV4_ADDRESS"])) {
$piHoleIPv4 = $setupVars["IPV4_ADDRESS"];
} else {
$piHoleIPv4 = "unknown";
}
$IPv6connectivity = false;
if (isset($setupVars["IPV6_ADDRESS"])) {
$piHoleIPv6 = $setupVars["IPV6_ADDRESS"];
sscanf($piHoleIPv6, "%2[0-9a-f]", $hexstr);
if (strlen($hexstr) == 2) {
// Convert HEX string to number
$hex = hexdec($hexstr);
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
system
Closed
February 1, 2020, 9:43am
5
This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.