# Settings not saved via web interface

**URL:** <https://discourse.pi-hole.net/t/settings-not-saved-via-web-interface/3219>\
**Category:** Help\
**Created:** [May 17, 2017, 9:08pm UTC](https://discourse.pi-hole.net/t/settings-not-saved-via-web-interface/3219 "2017-05-17T21:08:29Z")\
**Posts on this page:** 5\
**Page:** 4

<div class="post-metadata">

**Author:** ![deHakkelaar](https://discourse-cdn.pi-hole.net/user_avatar/discourse.pi-hole.net/dehakkelaar/32/674_2.png) [@deHakkelaar](https://discourse.pi-hole.net/u/deHakkelaar)\
**Post date:** [May 22, 2017, 2:42pm UTC](https://discourse.pi-hole.net/t/settings-not-saved-via-web-interface/3219/61 "2017-05-22T14:42:21Z")

</div>

> [@Valiceemo](#):
>
> 2: eth0: \<BROADCAST,MULTICAST,UP,LOWER\_UP\> mtu 1500 qdisc pfifo\_fast state UP group default qlen 1000  
> link/ether b8:27:eb:a5:5c:dd brd ff:ff:ff:ff:ff:ff  
> inet 192.168.0.32/24 brd 192.168.0.255 scope global eth0:0  
> valid\_lft forever preferred\_lft forever  
> inet 192.168.0.33/24 brd 192.168.0.255 scope global secondary eth0

Something is wrong as you dont have two network interfaces "eth0" & "eth0:0".  
Instead you somehow managed to squeeze two IP addresses on one interface "eth0".

Whats in:

`cat /etc/network/interfaces`

And whats in:

`tail -10 /etc/dhcpcd.conf`

---

<div class="post-metadata">

**Author:** ![Valiceemo](https://discourse-cdn.pi-hole.net/user_avatar/discourse.pi-hole.net/valiceemo/32/2825_2.png) [@Valiceemo](https://discourse.pi-hole.net/u/Valiceemo)\
**Post date:** [May 22, 2017, 2:43pm UTC](https://discourse.pi-hole.net/t/settings-not-saved-via-web-interface/3219/62 "2017-05-22T14:43:34Z")

</div>

> [@Valiceemo](#):
>
> more problems with pi-hole
> 
> settings changed on the web interface are not being saved
> 
> eg, changing the upstream dns servers?  
> i can tick / untick boxes, click save and i get the confirmation message, but the boxes are still in their original state
> 
> im actually trying to set the dhcp server to on, but see the same behavior.
> 
> i have tried on multiple platforms, on multiple devices and still cannot get settings to be saved
> 
> i have alos ran `sudo puhole -r` and selected `repair` and no joy  
> i have cleared browser cache, and rebooted my pi.  
> all with no success
> 
> has anyone seen this?

```auto
pi@raspberrypi:~ $ cat /etc/network/interfaces
# interfaces(5) file used by ifup(8) and ifdown(8)
# Please note that this file is written to be used with dhcpcd
# For static IP, consult /etc/dhcpcd.conf and 'man dhcpcd.conf'

# Include files from /etc/network/interfaces.d:
source-directory /etc/network/interfaces.d

auto lo
iface lo inet loopback

iface eth0 inet manual

allow-hotplug wlan0
iface wlan0 inet manual
    wpa-conf /etc/wpa_supplicant/wpa_supplicant.conf
        post-up iw wlan0 set power_save off

allow-hotplug wlan1
iface wlan1 inet manual
    wpa-conf /etc/wpa_supplicant/wpa_supplicant.conf

auto eth0:0
allow-hotplug eth0:0
iface eth0:0 inet static
    address 192.168.0.32
    netmask 255.255.255.0
pi@raspberrypi:~ $ tail -10 /etc/dhcpcd.conf

# A hook script is provided to lookup the hostname if not set by the DHCP
# server, but it should not be run by default.
nohook lookup-hostname

interface eth0

static ip_address=192.168.0.33/24
static routers=192.168.0.1
static domain_name_servers=192.168.0.1
pi@raspberrypi:~ $

```

---

<div class="post-metadata">

**Author:** ![deHakkelaar](https://discourse-cdn.pi-hole.net/user_avatar/discourse.pi-hole.net/dehakkelaar/32/674_2.png) [@deHakkelaar](https://discourse.pi-hole.net/u/deHakkelaar)\
**Post date:** [May 22, 2017, 2:56pm UTC](https://discourse.pi-hole.net/t/settings-not-saved-via-web-interface/3219/63 "2017-05-22T14:56:20Z")

</div>

Sorry, I was mistaken, the "ip addr show" command is displaying the interfaces properly.

Am prepping some changed instructions but in meantime, whats output of below:

`sudo netstat -nltup | grep 'Proto\|lighttpd\|nginx\|dnsmasq\|dhcpcd\|pihole-FTL'`

---

<div class="post-metadata">

**Author:** ![Valiceemo](https://discourse-cdn.pi-hole.net/user_avatar/discourse.pi-hole.net/valiceemo/32/2825_2.png) [@Valiceemo](https://discourse.pi-hole.net/u/Valiceemo)\
**Post date:** [May 22, 2017, 2:57pm UTC](https://discourse.pi-hole.net/t/settings-not-saved-via-web-interface/3219/64 "2017-05-22T14:57:20Z")

</div>

> [@deHakkelaar](#):
>
> Sorry, I was mistaken, the "ip addr show" command is displaying the interfaces properly.
> 
> Am prepping some changed instructions but in meantime, whats output of below:
> 
> `sudo netstat -nltup | grep 'Proto\|lighttpd\|nginx\|dnsmasq\|dhcpcd\|pihole-FTL'`

please dont apologise!  
it should be me apologising!

```auto
pi@raspberrypi:~ $ sudo netstat -nltup | grep 'Proto\|lighttpd\|nginx\|dnsmasq\|dhcpcd\|pihole-FTL'
Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name
tcp 0 0 192.168.0.33:80 0.0.0.0:* LISTEN 2644/lighttpd
tcp 0 0 0.0.0.0:53 0.0.0.0:* LISTEN 30751/dnsmasq
tcp6 0 0 :::53 :::* LISTEN 30751/dnsmasq
udp 0 0 0.0.0.0:53 0.0.0.0:* 30751/dnsmasq
udp 0 0 0.0.0.0:67 0.0.0.0:* 30751/dnsmasq
udp 0 0 0.0.0.0:68 0.0.0.0:* 660/dhcpcd
udp6 0 0 :::546 :::* 660/dhcpcd
udp6 0 0 :::547 :::* 30751/dnsmasq
udp6 0 0 :::53 :::* 30751/dnsmasq

```

---

<div class="post-metadata">

**Author:** ![deHakkelaar](https://discourse-cdn.pi-hole.net/user_avatar/discourse.pi-hole.net/dehakkelaar/32/674_2.png) [@deHakkelaar](https://discourse.pi-hole.net/u/deHakkelaar)\
**Post date:** [May 22, 2017, 5:09pm UTC](https://discourse.pi-hole.net/t/settings-not-saved-via-web-interface/3219/65 "2017-05-22T17:09:01Z")

</div>

Helped out via WebEx.  
Turned out that the static IP addresses in the "intrerfaces" file are assigned before the ones in the "dhcpcd.conf" file.  
Leaving dnsmasq to think the one in the "intrerfaces" file (the alias interface) to be the primary one and the one in the "dhcpcd.conf" file (physical interface) to be the secondary.  
Only fix I could think of was move all the static IP address assignments from "dhcpcd.conf" into the "intrerfaces" file.  
Tried other way around but no go as dhcpcd5 didnt work on the alias interface.  
Stupid dhcpcd5 😉

[Previous page](https://discourse.pi-hole.net/t/settings-not-saved-via-web-interface/3219.md?page=3)
