RPI2 OpenHabian Static IP not setting - please help

lsb_release -a:
Raspbian GNU/Linux 10 (buster)

ifconfig:
eth0 inet 192.168.15.173

/etc/dhcpcd.conf:
interface eth0
static ip_address=192.168.15.35/24
static routers=192.168.15.1
static domain_name_servers=192.168.15.1 8.8.8.8

/etc/network/interfaces:
source-directory /etc/network/interfaces.d

Reboot

ifconfig:
eth0 inet 192.168.15.173

What am I missing? Thanks!

Try this in /etc/dhcpcd.conf:

ipv4only
noipv6
noipv6rs
nodhcp
nodhcp6

Tried gnagel’s suggestion but:
ifconfig:
eth0 inet 192.168.15.173

Tried Wolfgang_S’ suggestion and my system wouldn’t even reboot (had to remove sd card and correct in another computer)

Any other thoughts?

This isn’t a direct solution, but can you set the static IP in your router? I personally prefer to do that, so that the static IPs for my RPi and other devices are all in one place (and in case my router changes).

Thanks but my router doesn’t seem to support that.

This topic was automatically closed 41 days after the last reply. New replies are no longer allowed.