2

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

Milliways
  • 62,573
  • 32
  • 113
  • 225
Rx7man
  • 29
  • 1
  • 4

2 Answers2

1

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.

Elber CM
  • 286
  • 2
  • 13
1

Use:

auto eth0
iface eth0 inet static
address 192.168.1.250
subnet 255.255.0.0

Note the static instead of manual.

allo
  • 330
  • 3
  • 13