Fresh install Openhab 4.2 on raspberry pi 4 and cant find how to set fix ip
I edit the file dhclient.conf and reboot but nothing changed
what I missing?
I assume you have bookworm installed. In this case the network manager changed.
If you want to change the IP address you need to do the following:
This gives you the name of the LAN connection:
nmcli c show
Probably “Wired connection 1”
Then do
nmcli c mod "Wired connection 1" ipv4.addresses 10.100.102.200/24 ipv4.method manual
nmcli c mod "Wired connection 1" ipv4.gateway 10.100.102.1
nmcli c mod "Wired connection 1" ipv4.dns 10.100.102.1
nmcli c down "Wired connection 1" && nmcli c up "Wired connection 1"