Noah's picture

I keep trying to set a static ip address on turnkey linux but it always eventually gets a new one from DHCP. What am I doing wrong? My router is pfSense. Any help would be greatly appreciated.

Forum: 
Noah's picture

BTW: It does not have to reboot to get a new IP.


Jeremy Davis's picture

It certainly shouldn't be doing that! I assume you are using the confconsole to set your static IP? I have VMs that have had static IPs for months and it survives reboot as well. I can't think of anything that would be causing that behaviour, beyond not saving the static IP.

Noah's picture

Actually, I did it from webmin. It seems to be working now! Thank you!


Jeremy Davis's picture

I didn't even consider that you may be doing it from Webmin. I suspect what was happening was that whilst you set it in Webmin, confconsole was still using DHCP so they were fighting. It looks like confconsole was winning! :)

IMO though this is a bug. Ideally if you set a static IP in Webmin, confconsole should honor that. I have logged a bug here, although TBH it probably won't be high on their agenda as it's easy to workaround as you've discovered.

Add new comment