Posts: 131
Joined: Thu Mar 07, 2013 9:05 am
Location: Brisbane QLD
Contact: Website

Static ip won't stick

Sun Jun 26, 2016 9:47 am


Edited /etc/networks/interfaces

Eth0 static address static

Went back to DHCP

Also how do I turn of wlan0 on a raspberry Pi 3 ?
Andrew Rich
email: [email protected]
http://www.tech-software.net/ ( hobby website ) ( Raspberry Pi ADS-B server ) RTL SDR

Posts: 7138
Joined: Fri May 31, 2013 9:28 pm
Location: Mansfield UK

Re: Static ip won't stick

Sun Jun 26, 2016 10:04 am


You have not stated which operating system you are using but guessing its raspbian and Jessie full or lite.

If this is correct you should not be editing "/etc/networks/interfaces" any more to set static IP address you should now be using "/etc/dhcpcd.conf"
you should return your interfaces file to how it was before you edited it and then make the changes in dhcpcd.conf
a google search for "static ip jessie" will generate plenty of results but just in case here's one such result

https://pi-hole.net/faq/how-do-i-set-a- ... cpcd-conf/

and a post from this very forum
We want information… information… information........................no information no help
The use of crystal balls & mind reading are not supported

Posts: 477
Joined: Thu Oct 23, 2014 12:14 am
Location: Texas
Contact: Website

Re: Static ip won't stick

Sun Jun 26, 2016 9:18 pm

I wrote a Java GUI program to set up a static IP. Find it here: http://knutejohnson.com/ipconfig. You can even use it to fix what you've done to your /etc/interfaces file.

Return to “General discussion”