To start, I'll say it's been nearly 2 decades since I've fiddled with *nix, and that was OBSD.. so to say I'm rusty is an understatement... And I'm new to Rpi.

So I've edited the /etc/network/interfaces file, and added my desired static IP and netmask, I exit, I pull the interface down and back up, and it is set and working.. I reboot, and I have some weird IP again, the file is as I left it... I must be missing something somewhere, what is it?

/etc/network/interfaces is GNU nano 2.2.6 File: /etc/network/interfaces

auto lo
iface lo inet loopback

auto eth0
allow-hotplug eth0
iface eth- inet manual

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

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

/etc/dhcpcd.conf is

interface eth0 static ip_address=




option rapid_commit

option domain_name_servers, domain_name, domain_search, host_name
option classless_static_routes

option ntp_servers

require dhcp_server_identifier

slaac private

nohook lookup-hostname

OK, I removed all the comments that seemed to be offensive to formatting

  • 1
    See the tutorial at How do I set up networking/WiFi/Static IP which explains why it doesn't work and how to fix it
    – Milliways
    Mar 4, 2016 at 4:29
  • I tried that now, and it certainly doesn't explain why it doesn't work... I edited /etc/dhcpcd.conf instead (reverted interfaces to what it was) and no go.. every time I reboot my IP is
    – Rx7man
    Mar 4, 2016 at 5:00
  • 1
    It does explain, but I guess this requires more understanding of Linux. If you want help paste the current contents of the files you changed into your question i.e. /etc/network/interfaces and others. is a link-local address so for some reason it is not getting an IP address.
    – Milliways
    Mar 4, 2016 at 5:10
  • /etc/dhcpcd.conf starts with the lines interface eth0 static ip_address=
    – Rx7man
    Mar 4, 2016 at 5:23
  • The rest of both files are as issued with the latest Raspbian-Jessie
    – Rx7man
    Mar 4, 2016 at 5:23

2 Answers 2


English is not my native language so please be patient.

Maybe is a typo error in your interfaces file, change the - for 0

auto eth0
allow-hotplug eth0
iface eth- inet manual ---> iface eth0 inet manual

I would advice to try first with dhcp, if you have a screen or you can check the I.P. from your router that the raspberry is leasing, then you can come back to the interfaces file and choose manual or even static set-up.



auto eth0
iface eth0 inet static

Note the static instead of manual.

  • This would work if Raspbian had networking enabled by default, which is unfortunately not the case. Apr 25, 2017 at 8:49

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.