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= 192.168.1.250/16
hostname
clientid
persistent
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
/etc/dhcpcd.conf
instead (reverted interfaces to what it was) and no go.. every time I reboot my IP is169.254.141.114
– Rx7man Mar 04 '16 at 05:00/etc/network/interfaces
and others.169.254.141.114
is a link-local address so for some reason it is not getting an IP address. – Milliways Mar 04 '16 at 05:10/etc/dhcpcd.conf
starts with the linesinterface eth0 static ip_address= 192.168.1.250/16
– Rx7man Mar 04 '16 at 05:23interfaces(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/in$
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
– Rx7man Mar 04 '16 at 05:28