warrenjb
(Warren)
December 8, 2020, 4:16pm
1
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!
gnagel
(Gunnar Nagel)
December 8, 2020, 6:04pm
3
Try this in /etc/dhcpcd.conf:
ipv4only
noipv6
noipv6rs
nodhcp
nodhcp6
warrenjb
(Warren)
December 8, 2020, 10:54pm
5
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?
rpwong
(Russ)
December 9, 2020, 12:03am
6
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).
warrenjb
(Warren)
December 10, 2020, 8:10pm
7
Thanks but my router doesn’t seem to support that.
system
(system)
Closed
January 21, 2021, 12:10pm
8
This topic was automatically closed 41 days after the last reply. New replies are no longer allowed.