I’ve just set a static IP for my RPi (which is where my Volumio runs):
root@volumio:~# cat /etc/network/interfaces
iface lo inet loopback
iface eth0 inet static
However, after about 20 min, the volumio IP address switches back to a new one given by my DHCP server, which in fact leases IP addresses every 20 min.
After I modified the above file I also ran:
sudo /etc/init.d/networking restart
In the end I succeeded in telling my router that my RPi had in fact a static address by doing the following:
- set static IP to my RPi
- switch my router off
- switch my RPi off
- switch my router on
- wait for my router to be up and running and then switch my RPi on
Is this normal behavior for a router or I have a particularly aggressive DHCP server embedded into it?
The concern here is that DHCP servers can switch IP’s while Volumio is running (happened to my) leading people believe that Volumio becomes unresponsive, when in fact it’s just changed IP address.